|
Search: id:A077280
|
|
|
| A077280 |
|
Sum of next a(n) successive primes is a square. |
|
+0 4
|
| |
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
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.
|
|
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
|
Cf. A077281, A077282, A077283.
Sequence in context: A084874 A133681 A051232 this_sequence A041147 A041144 A086759
Adjacent sequences: A077277 A077278 A077279 this_sequence A077281 A077282 A077283
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Zak Seidov (zakseidov(AT)yahoo.com), Nov 02 2002
|
|
EXTENSIONS
|
a(9) and a(10)>2500000 from Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 03 2002
|
|
|
Search completed in 0.002 seconds
|