login
A071292
Call f(n) the sum of the first n primes then a(n) is the number of squares between f(n) and f(n+1).
0
1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2
OFFSET
1,8
COMMENTS
a(n)>=1.
LINKS
MATHEMATICA
squareQ[n_] := IntegerQ[Sqrt[n]] f[n_] := Sum[Prime[i], {i, 1, n}] a[n_] := Length[Select[Table[i, {i, a[n], a[n + 1]}], squareQ]]
CROSSREFS
Sequence in context: A109495 A164295 A035214 * A088569 A246144 A192763
KEYWORD
nonn
AUTHOR
Santi Spadaro, Jun 11 2002
STATUS
approved