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”).

A062412
a(n) = Sum_{k=1..n} (k^n + (prime(k) - 1)^n).
1
2, 10, 109, 1923, 113258, 4103972, 315764017, 15871339589, 1481092410586, 327513561563174, 26675659416361181, 5516357252651388375, 864424420824670346866, 86799914926048613598024
OFFSET
1,1
REFERENCES
D. M. Burton, Elementary Number Theory, Allyn and Bacon, Inc., Boston, MA, 1976. p. 169.
LINKS
EXAMPLE
a(3) = 109 because 1^3 + 2^3 + 3^3 + 1^3 + 2^3 + 4^3 = 109.
PROG
(PARI) a(n)={sum(k=1, n, (k^n) + (prime(k) - 1)^n)}
CROSSREFS
Sequence in context: A343307 A003167 A240625 * A212491 A364409 A006608
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Jul 09 2001
STATUS
approved