OFFSET
1,1
COMMENTS
a(n) <= A070218(n).
If we introduce k in the name "(sum of all previous terms)/k", then cases k=1,2 correspond to A070218, A196375, and in general case, the sequence begins with k 2's, with gradually (not monotonically) decreasing multiplicity of terms; e.g., at case k=10 the sequence begins: 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 5, 5, 5, 5, 7, 7, 7, 11, 11, 11, 11, 13, 17, 17, 17, 19, 23, 23, 29, 29, 31, 37, 41.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Nest[Append[#, NextPrime[Total[#]/2]]&, {2}, 100]
nxt[{hs_, a_}]:=With[{sp=NextPrime[hs]}, {hs+sp/2, sp}]; NestList[nxt, {1, 2}, 50][[;; , 2]] (* Harvey P. Dale, Oct 16 2025 *)
PROG
(PARI) print1(s=2); for(i=2, 99, print1(", ", t=nextprime(s/2)); s+=t) \\ Charles R Greathouse IV, Dec 31 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 28 2011
STATUS
approved
