The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A073022 Each term is the smallest prime > the sum of the previous 2 terms. 2
1, 1, 3, 5, 11, 17, 29, 47, 79, 127, 211, 347, 563, 911, 1481, 2393, 3877, 6271, 10151, 16427, 26591, 43019, 69623, 112643, 182279, 294923, 477209, 772139, 1249361, 2021501, 3270863, 5292367, 8563237, 13855607, 22418849, 36274471, 58693331 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n+1)=nextprime(a(n)+a(n-1))
EXAMPLE
After 1,1, the next prime >2 is 3.
MATHEMATICA
nxt[{a_, b_}]:={b, NextPrime[a+b]}; NestList[nxt, {1, 1}, 40][[All, 1]] (* Harvey P. Dale, Apr 14 2022 *)
PROG
(PARI) l=1; h=1; print1("1, 1, "); while(l<2^32, t=l+h+1; while(!isprime(t), t+=1); print1(t, ", "); l=h; h=t)
CROSSREFS
Cf. A055498.
Sequence in context: A361275 A342230 A023218 * A129694 A147015 A147023
KEYWORD
nonn
AUTHOR
Phil Carmody, Aug 15 2002
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 June 1 05:22 EDT 2024. Contains 373010 sequences. (Running on oeis4.)