|
Search: id:A108753
|
|
|
| A108753 |
|
Difference between the n-th partial sum of the squares (A000330) and the n-th partial sum of the primes (A007504). |
|
+0 1
|
|
| -1, 0, 4, 13, 27, 50, 82, 127, 185, 256, 346, 453, 581, 734, 912, 1115, 1345, 1608, 1902, 2231, 2599, 3004, 3450, 3937, 4465, 5040, 5666, 6343, 7075, 7862, 8696, 9589, 10541, 11558, 12634, 13779, 14991, 16272, 17626, 19053, 20555, 22138, 23796, 25539, 27367
(list; graph; listen)
|
|
|
OFFSET
|
1,3
|
|
|
COMMENT
|
Numbers congruent to {0, 3, 8, 11} mod 12.
|
|
EXAMPLE
|
a(4)=A000330(4)-A007504(4)=(1+4+9+16)-(2+3+5+7)=30-17=13.
|
|
MATHEMATICA
|
f[n_] := n(n + 1)(2n + 1)/6 - Sum[Prime[i], {i, n}]; Table[ f[n], {n, 15}] (from Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 25 2005)
|
|
CROSSREFS
|
Cf. A000330, A007504.
Adjacent sequences: A108750 A108751 A108752 this_sequence A108754 A108755 A108756
Sequence in context: A024809 A049729 A119652 this_sequence A024970 A079430 A056107
|
|
KEYWORD
|
base,easy,sign
|
|
AUTHOR
|
Alexandre Wajnberg (alexandre.wajnberg(AT)ulb.ac.be), Jun 23 2005
|
|
EXTENSIONS
|
Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 25 2005
|
|
|
Search completed in 0.002 seconds
|