A135484 a(n) = Sum_{i=1..n} i^prime(i), where prime(i) denotes i-th prime number.
1, 9, 252, 16636, 48844761, 13109538777, 232643623525984, 144347831699381856, 8863082467484200477785, 100000008863082467484200477785, 192043424966613562971631041769596
Offset: 1
Keywords
Links
- G. C. Greubel, Table of n, a(n) for n = 1..75
Programs
-
Mathematica
f[n_] := Sum[i^Prime@i, {i, n}]; Array[f, 12] (* Robert G. Wilson v, Feb 12 2008 *) Accumulate[Table[n^Prime[n],{n,15}]] (* Harvey P. Dale, Nov 30 2023 *)
-
PARI
a(n) = sum(k=1, n, k^prime(k)); \\ Michel Marcus, Oct 15 2016
Extensions
Edited and extended by Robert G. Wilson v, Feb 12 2008