OFFSET
1,2
FORMULA
EXAMPLE
For n = 4 the 4th prime is 7 and the sum of the first four nonnegative powers of 7 is 7^0 + 7^1 + 7^2 + 7^3 = 1 + 7 + 49 + 343 = 400, so a(4) = 400.
PROG
(PARI) a(n) = sum(k=0, n-1, prime(n)^k); \\ Michel Marcus, Sep 13 2018
CROSSREFS
Main diagonal of A319076.
Cf. A000079, A000244, A000351, A000420, A001020, A001022, A001026, A001029, A009967, A009973, A009975, A009981, A009985, A009987, A009991.
KEYWORD
nonn
AUTHOR
Omar E. Pol, Sep 11 2018
STATUS
approved