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.

A179321 Numbers m such that the sum of the first k odd primes = m-th odd prime.

Original entry on oeis.org

1, 30, 74, 94, 792, 852, 1037, 1178, 1395, 1557, 2468, 3602, 3725, 5064, 5361, 5514, 6461, 8979, 9765, 11005, 16503, 19798, 20090, 21254, 22475, 24686, 30480, 30822, 37614, 44243, 44668, 45528, 49999, 50924, 53241, 61613, 64721, 65236
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Jan 06 2011

Keywords

Examples

			30 is a term because A007504(6) - 2 = 127 = A000040(31).
		

Crossrefs

Programs

  • Maple
    A:= NULL: p:= 2: s:= 0: q:= 2: count:= 0: i:= 0:
    while count < 100 do
      if s = q then count:= count+1; A:= A,i;  fi;
      if s <= q then p:= nextprime(p);  s:= s+p
      else q:= nextprime(q); i:= i+1
      fi;
    od:
    A; # Robert Israel, Aug 28 2023

Formula

A007504(k) - 2 = A000040(a(n)+1).
A000040(a(n)+1) = A071151(n).