OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10
FORMULA
MATHEMATICA
lpf[n_]:=Module[{p=Prime[Prime[n]]}, FactorInteger[p^p-1][[-1, 1]]]; Array[lpf, 6] (* Harvey P. Dale, Nov 09 2017 *)
PROG
(PARI) piptopipm1(n) = { local(x, y); for(x=1, n, y=pip(x)^pip(x)-1; print1(bdiv(y)", "); ) }
pip(n) = { return(prime(prime(n))) }
bdiv(n) = { local(x); x=ifactor(n); return(x[length(x)]) }
ifactor(n, m=0) = { local(f, j, k, flist); flist=[]; f=Vec(factor(n, m)); for(j=1, length(f[1]), for(k = 1, f[2][j], flist = concat(flist, f[1][j]) ); ); return(flist) }
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Cino Hilliard, Mar 06 2005
EXTENSIONS
a(6) corrected by Harvey P. Dale, Nov 09 2017
STATUS
approved