login
A088385
a(n) = prime(n+1)^prime(n+1) - prime(n)^prime(n).
2
23, 3098, 820418, 285310847068, 302589794921642, 827239959011230171924, 1977592415398427252359802, 20880466021428256374041443786588, 2567686153140330666561980302696661093572902
OFFSET
1,1
LINKS
FORMULA
a(n) = A051674(n+1) - A051674(n). - R. J. Mathar, Apr 26 2007
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