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!)
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 (list; graph; refs; listen; history; text; internal format)
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

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 19 13:40 EDT 2024. Contains 371792 sequences. (Running on oeis4.)