cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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).

Original entry on oeis.org

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

Views

Author

Keywords

Examples

			To get a(3) we compute PreviousPrime(7)=5, 5*7-1=34, greatest prime factor of 34 is 17, so a(3)=17.
		

Crossrefs

Programs

  • 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 *)

Extensions

More terms from James Sellers