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!)
A077280 Sum of next a(n) successive primes is a square. 4
9, 163, 155, 232, 12, 4599, 1474, 9156, 138429 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Partition the sequence of primes into groups so that sum of terms in each group is a square: {2-23}, {29-1021}, {1031-2179}, {2203-4051}, {4057-4153}, {4157-50377}, {50383-66643}, {66653-173647}, {173651-2076913}, {2076917-???}, ...
A077280(n) gives the number of terms in n-th group; A077281(n)^2 gives the sum of terms in n-th group; A077282(n) gives the first term in n-th group; A077283(n) gives the last term in n-th group.
a(10) > 2500000. - Robert G. Wilson v, Nov 03 2002
LINKS
EXAMPLE
a(1)=9 because sum of first nine primes 2+...+23=100 is a square; a(2)=163 because sum of next 163 successive primes 29+...+1021=80089=283^2 is a square.
MATHEMATICA
f[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; p = 1; c = d = 0; Do[s = 0; While[p = f[p]; c++; s = s + p; !IntegerQ[Sqrt[s]], ]; Print[c - d]; d = c, {n, 1, 50}]
CROSSREFS
Sequence in context: A051232 A362900 A157574 * A297436 A041147 A041144
KEYWORD
nonn
AUTHOR
Zak Seidov, Nov 02 2002
EXTENSIONS
a(9) from Robert G. Wilson v, Nov 03 2002
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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)