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.

A138408 a(n) = prime(n)^6 - prime(n).

Original entry on oeis.org

62, 726, 15620, 117642, 1771550, 4826796, 24137552, 47045862, 148035866, 594823292, 887503650, 2565726372, 4750104200, 6321363006, 10779215282, 22164361076, 42180533582, 51520374300, 90458382102, 128100283850
Offset: 1

Views

Author

Artur Jasinski, Mar 19 2008

Keywords

Crossrefs

Programs

  • Magma
    [NthPrime((n))^6 - NthPrime((n)): n in [1..30] ]; // Vincenzo Librandi, Jun 17 2011
  • Mathematica
    a = {}; Do[p = Prime[n]; AppendTo[a, p^6 - p], {n, 1, 50}]; a
    #^6-#&/@Prime[Range[20]] (* Harvey P. Dale, Jun 09 2013 *)
  • PARI
    forprime(p=2,1e3,print1(p^6-p", ")) \\ Charles R Greathouse IV, Jun 16 2011
    

Formula

a(n) = A030516(n) - A000040(n). - Elmo R. Oliveira, Jan 28 2023