[go: up one dir, main page]

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!)
A291140 Sum of the n-th powers of the first n primes. 1
2, 13, 160, 3123, 181258, 6732437, 493478344, 24995572327, 2255433009730, 470444892889497, 38714638073629150, 7749166585021832891, 1203906832960860262108, 121893712541593098356317, 17161342484454585041813494 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = prime(1)^n + prime(2)^n + ... + prime(n)^n.
EXAMPLE
a(3) = 2^3 + 3^3 + 5^3 = 160.
MAPLE
f:= n -> add(ithprime(i)^n, i=1..n):
map(f, [$1..20]); # Robert Israel, Aug 20 2017
MATHEMATICA
Table[Total[Prime[Range@ n]^n], {n, 15}] (* Michael De Vlieger, Aug 19 2017 *)
PROG
(PARI) a(n) = sum(i=1, n, prime(i)^n) \\ Felix Fröhlich, Aug 18 2017
CROSSREFS
Sequence in context: A316701 A062593 A347051 * A192563 A014507 A132614
KEYWORD
nonn
AUTHOR
Vojtech Strnad, Aug 18 2017
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 August 29 23:34 EDT 2024. Contains 375520 sequences. (Running on oeis4.)