cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A088385 a(n) = prime(n+1)^prime(n+1) - prime(n)^prime(n).

Original entry on oeis.org

23, 3098, 820418, 285310847068, 302589794921642, 827239959011230171924, 1977592415398427252359802, 20880466021428256374041443786588, 2567686153140330666561980302696661093572902
Offset: 1

Views

Author

Christopher M. Tomaszewski (cmt1288(AT)comcast.net), Nov 08 2003

Keywords

Examples

			a(5) = prime(6)^prime(6) - prime(5)^prime(5) = 13^13 - 11^11 = 302589794921642.
		

Crossrefs

Programs

  • Magma
    P:=NthPrime; [P(n+1)^P(n+1) - P(n)^P(n): n in [1..20]]; // G. C. Greubel, Dec 12 2022
    
  • 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 *)
  • 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

Formula

a(n) = A051674(n+1) - A051674(n). - R. J. Mathar, Apr 26 2007