The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A218213 Number of n-digit primes representable as sums of consecutive squares. 2
1, 4, 13, 30, 69, 187, 519, 1401, 3889, 10861, 31640, 90735 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
There are no common representations of two, three or six squares for n < 13, so
a(n) = A218207(n) + A218209(n) + A218211(n); n < 13.
LINKS
FORMULA
a(n) = A218214(n) - A218213(n-1).
MATHEMATICA
nn = 8; nMax = 10^nn; t = Table[0, {nn}]; Do[k = n; s = 0; While[s = s + k^2; s <= nMax, If[PrimeQ[s], t[[Ceiling[Log[10, s]]]]++]; k++], {n, Sqrt[nMax]}]; t (* T. D. Noe, Oct 23 2012 *)
CROSSREFS
Sequence in context: A206806 A022913 A232228 * A075880 A042487 A154753
KEYWORD
nonn,base
AUTHOR
Martin Renner, Oct 23 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 21 22:16 EDT 2024. Contains 372741 sequences. (Running on oeis4.)