login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
AUTHOR
Christopher M. Tomaszewski (cmt1288(AT)comcast.net), Nov 08 2003
STATUS
approved