login
A218460
a(n) = prime(n)^(prime(n + 1) - prime(n)).
1
2, 9, 25, 2401, 121, 28561, 289, 130321, 148035889, 841, 887503681, 1874161, 1681, 3418801, 10779215329, 22164361129, 3481, 51520374361, 20151121, 5041, 151334226289, 38950081, 326940373369, 3936588805702081, 88529281, 10201, 112550881, 11449, 141158161
OFFSET
1,1
LINKS
FORMULA
a(n) = A000040(n)^A001223(n).
EXAMPLE
a(2) = 9 because, the second prime being 3, 3^(5 - 3) = 3^2 = 9.
a(3) = 25 because, the third prime being 5, 5^(7 - 5) = 5^2 = 25.
a(4) = 2401 because, the fourth prime being 7, 7^(11 - 7) = 7^4 = 2401.
MATHEMATICA
Table[Prime[n]^(Prime[n + 1] - Prime[n]), {n, 20}] (* Alonso del Arte, Oct 29 2012 *)
PROG
(PARI) a(n)=my(p=prime(n)); p^(nextprime(p+1)-p) \\ Charles R Greathouse IV, Oct 30 2012
(Magma) [p^(NextPrime(p)-p): p in PrimesUpTo(110)]; // Bruno Berselli, Oct 30 2012
CROSSREFS
Sequence in context: A305351 A101051 A356401 * A085070 A083383 A221574
KEYWORD
nonn
AUTHOR
Giovanni Teofilatto, Oct 29 2012
STATUS
approved