login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A096225 a(0) = 1; for n >= 0, a(n+1) = smallest prime factor of a(n)! + 1. 2
1, 2, 3, 7, 71, 6653, 25469, 15750503 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
EXAMPLE
71!+1 is the product of 6653 and a large prime.
MATHEMATICA
a[1] = 2; a[n_] := Block[{p = PrimePi[a[n - 1]] + 1, r = a[n - 1]! + 1}, While[ Mod[r, Prime[p]] != 0, p++ ]; Prime[p]]; Do[ Print[ a[n]], {n, 7}] (* Robert G. Wilson v, Aug 12 2004 *)
NestList[FactorInteger[#!+1][[1, 1]]&, 1, 7] (* Harvey P. Dale, Sep 20 2016 *)
CROSSREFS
Sequence in context: A090870 A088542 A075840 * A333132 A035094 A084729
KEYWORD
nonn,more,hard,nice
AUTHOR
N. J. A. Sloane, Aug 09 2004
EXTENSIONS
a(6) and a(7) from Robert G. Wilson v, Aug 12 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)