%I #16 Aug 29 2023 08:57:25
%S 1,30,74,94,792,852,1037,1178,1395,1557,2468,3602,3725,5064,5361,5514,
%T 6461,8979,9765,11005,16503,19798,20090,21254,22475,24686,30480,30822,
%U 37614,44243,44668,45528,49999,50924,53241,61613,64721,65236
%N Numbers m such that the sum of the first k odd primes = m-th odd prime.
%H Robert Israel, <a href="/A179321/b179321.txt">Table of n, a(n) for n = 1..1600</a>
%F A007504(k) - 2 = A000040(a(n)+1).
%F A000040(a(n)+1) = A071151(n).
%e 30 is a term because A007504(6) - 2 = 127 = A000040(31).
%p A:= NULL: p:= 2: s:= 0: q:= 2: count:= 0: i:= 0:
%p while count < 100 do
%p if s = q then count:= count+1; A:= A,i; fi;
%p if s <= q then p:= nextprime(p); s:= s+p
%p else q:= nextprime(q); i:= i+1
%p fi;
%p od:
%p A; # _Robert Israel_, Aug 28 2023
%Y Cf. A000040, A007504, A071151.
%K nonn
%O 1,2
%A _Juri-Stepan Gerasimov_, Jan 06 2011
|