login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A316322
Sum of piles of first n primes: a(n) = Sum(prime(i)*(2*i-1): 1<=i<=n).
2
2, 11, 36, 85, 184, 327, 548, 833, 1224, 1775, 2426, 3277, 4302, 5463, 6826, 8469, 10416, 12551, 15030, 17799, 20792, 24189, 27924, 32107, 36860, 42011, 47470, 53355, 59568, 66235, 73982, 82235, 91140, 100453, 110734, 121455, 132916, 145141, 158000, 171667, 186166, 201189, 217424, 234215, 251748
OFFSET
1,1
LINKS
EXAMPLE
............................................ 7
........................... 5 ............ 7 5 7
............ 3 .......... 5 3 5 ........ 7 5 3 5 7
2 ........ 3 2 3 ...... 5 3 2 3 5 .... 7 5 3 2 3 5 7
a(1)=2 ... a(2)=11 .... a(3)=36 ...... a(4)=85.
MATHEMATICA
nxt[{n_, a_}] := {n + 1, a + Prime[n + 1] (2 n + 1)}; NestList[nxt, {1, 2}, 50][[All, 2]] (* Harvey P. Dale, Jul 05 2018 *)
PROG
(PARI) a(n) = sum(i=1, n, prime(i)*(2*i-1)); \\ Michel Marcus, Jan 22 2022
CROSSREFS
Cf. A083215.
Sequence in context: A078982 A154416 A184538 * A238706 A071244 A005583
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 03 2018, based on Reinhard Zumkeller's A083215.
STATUS
approved