This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A129726 a(n) = a(n-1)+2+prime(n)-prime(n-1). 1
 2, 5, 9, 13, 19, 23, 29, 33, 39, 47, 51, 59, 65, 69, 75, 83, 91, 95, 103, 109, 113, 121, 127, 135, 145, 151, 155, 161, 165, 171, 187, 193, 201, 205, 217, 221, 229, 237, 243, 251, 259, 263, 275, 279, 285, 289, 303, 317, 323, 327 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 COMMENTS The sequence shows 36 primes in the first 100 entries; the largest run of primes in these has length 4. LINKS Vincenzo Librandi, Table of n, a(n) for n = 1..1000 FORMULA a(n) = a(n-1)+A001223(n-1)+2. MAPLE A129726 := proc(n)     option remember;     if n = 1 then         2 ;     else         procname(n-1)+2+ithprime(n)-ithprime(n-1) ;     end if; end proc: seq(A129726(n), n=1..80) ; # R. J. Mathar, Feb 01 2014 MATHEMATICA P[1] = 2; P[n_] := P[n] = P[n - 1] + Prime[n] - Prime[n - 1] + 2; Table[P[n], {n, 1, 50}] RecurrenceTable[{a[1]==2, a[n]==a[n-1]+2+Prime[n]-Prime[n-1]}, a, {n, 50}] (* Harvey P. Dale, Apr 02 2018 *) CROSSREFS Sequence in context: A130235 A267531 A219647 * A122489 A120615 A038707 Adjacent sequences:  A129723 A129724 A129725 * A129727 A129728 A129729 KEYWORD nonn,easy AUTHOR Roger L. Bagula, May 12 2007 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.

Last modified June 25 10:10 EDT 2019. Contains 324351 sequences. (Running on oeis4.)