OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..75
FORMULA
EXAMPLE
a(5) = prime(6)^prime(6) - prime(5)^prime(5) = 13^13 - 11^11 = 302589794921642.
MATHEMATICA
With[{P=Prime}, Table[P[n+1]^P[n+1]-P[n]^P[n], {n, 30}]] (* Vladimir Joseph Stephan Orlovsky, Mar 01 2009 *)
Differences[Table[p^p, {p, Prime[Range[10]]}]] (* Harvey P. Dale, Nov 20 2024 *)
PROG
(Magma) P:=NthPrime; [P(n+1)^P(n+1) - P(n)^P(n): n in [1..20]]; // G. C. Greubel, Dec 12 2022
(SageMath) P=nth_prime; [P(n+1)^P(n+1) - P(n)^P(n) for n in range(1, 21)] # G. C. Greubel, Dec 12 2022
CROSSREFS
KEYWORD
easy,nonn,changed
AUTHOR
Christopher M. Tomaszewski (cmt1288(AT)comcast.net), Nov 08 2003
STATUS
approved