|
Search: id:A066527
|
|
|
| A066527 |
|
Triangular numbers which for some k are also the sum of the first k primes. |
|
+0 1
|
|
| 10, 28, 133386, 4218060, 54047322253, 14756071005948636
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
a(n) = A000217(i) = A007504(j) for appropriate i, j.
These are the 4, 7, 516, 2904, 328777, ... -th triangular numbers and are the sums of the first 3, 5, 217, 1065, 93448, ... prime numbers respectively.
|
|
EXAMPLE
|
a(2) = 28, as A000217(7) = 1+2+3+4+5+6+7 = 28 = 2+3+5+7+11 = A007504(5).
|
|
MAPLE
|
a066527(m) = local(d, ds, p, ps); d=1; ds=1; p=2; ps=2; while(ds<m, if(ds==ps, print1(ds, ", "); d++; ds=ds+d; p++; p=nextprime(p); ps=ps+p, if(ds<ps, d++; ds=ds+d, p++; p=nextprime(p); ps=ps+p))) a066527(10^11)
|
|
MATHEMATICA
|
s = 0; Do[s = s + Prime[n]; t = Floor[ Sqrt[2*s]]; If[t*(t + 1) == 2s, Print[s]], {n, 1, 10^6} ]
|
|
CROSSREFS
|
Sequence in context: A076712 A116973 A003665 this_sequence A103423 A102542 A098751
Adjacent sequences: A066524 A066525 A066526 this_sequence A066528 A066529 A066530
|
|
KEYWORD
|
nonn,nice,more
|
|
AUTHOR
|
Reinhard Zumkeller (reinhard.zumkeller(AT)lhsystems.com), Jan 06, 2002
|
|
EXTENSIONS
|
One more term from Klaus Brockhaus (klaus-brockhaus(AT)t-online.de) and Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 07 2002
One more term from Philip Sung (philip_sung(AT)hotmail.com), Jan 25 2002
|
|
|
Search completed in 0.002 seconds
|