login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A031441
a(0) = 3; for n > 0, a(n) is the greatest prime factor of PreviousPrime(a(n-1))*a(n-1)-1 where PreviousPrime(prime(k))=prime(k-1).
5
3, 5, 7, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23, 109, 17, 11, 19, 23
OFFSET
0,1
LINKS
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
Sequence in context: A078683 A099863 A112092 * A078150 A276044 A114265
KEYWORD
nonn,easy,nice
EXTENSIONS
More terms from James A. Sellers
STATUS
approved

  NODES
orte 1
see 1
Story 1