OFFSET
0,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
EXAMPLE
To get a(3) we compute PreviousPrime(7)=5, 5*7-1=34, greatest prime factor of 34 is 17, so a(3)=17.
MATHEMATICA
a[0] = 3; a[n_] := a[n] = FactorInteger[ NextPrime[ a[n-1], -1]*a[n-1] - 1][[-1, 1]]; Table[a[n], {n, 0, 66}] (* Jean-François Alcover, Mar 09 2012 *)
NestList[FactorInteger[NextPrime[#, -1]*#-1][[-1, 1]]&, 3, 70] (* Harvey P. Dale, Dec 13 2012 *)
CROSSREFS
KEYWORD
nonn,easy,nice
AUTHOR
EXTENSIONS
More terms from James A. Sellers
STATUS
approved