login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A165549 a(1) = 7; for n > 1, a(n) = smallest prime strictly greater than sum of previous terms. 1
7, 11, 19, 41, 79, 163, 331, 653, 1307, 2617, 5231, 10463, 20929, 41863, 83717, 167437, 334877, 669763, 1339523, 2679037, 5358083, 10716163, 21432317, 42864671, 85729367, 171458671, 342917357, 685834729, 1371669443, 2743338881 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

MATHEMATICA

a=7; b=11; s=a+b; lst={a, b}; Do[i=1; While[ !PrimeQ[s+i], i++ ]; c=s+i; AppendTo[lst, c]; a=b; b=c; s+=c, {n, 2*4!}]; lst

nxt[{t_, a_}]:=Module[{c=NextPrime[t]}, {t+c, c}]; NestList[nxt, {7, 7}, 30][[All, 2]] (* Harvey P. Dale, Aug 03 2017 *)

PROG

(PARI) {m=30; s=0; v=vector(m); v[1]=7; for(n=2, m, s+=v[n-1]; v[n]=nextprime(s+1)); v} \\ Klaus Brockhaus, Sep 25 2009

CROSSREFS

Cf. A064934, A070218.

Sequence in context: A133425 A103802 A038984 * A055939 A154555 A285016

Adjacent sequences:  A165546 A165547 A165548 * A165550 A165551 A165552

KEYWORD

nonn

AUTHOR

Vladimir Joseph Stephan Orlovsky, Sep 21 2009

EXTENSIONS

Edited by Klaus Brockhaus, Sep 25 2009

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 24 01:16 EST 2020. Contains 332195 sequences. (Running on oeis4.)