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.

A138404 a(n) = prime(n)^5 - prime(n).

Original entry on oeis.org

30, 240, 3120, 16800, 161040, 371280, 1419840, 2476080, 6436320, 20511120, 28629120, 69343920, 115856160, 147008400, 229344960, 418195440, 714924240, 844596240, 1350125040, 1804229280, 2073071520, 3077056320, 3939040560
Offset: 1

Views

Author

Artur Jasinski, Mar 19 2008

Keywords

Comments

Subsequence of A061167. - Bernard Schott, Feb 06 2023

Crossrefs

Programs

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

Formula

a(n) = A050997(n) - A000040(n). - Elmo R. Oliveira, Jan 27 2023
From Bernard Schott, Feb 09 2023: (Start)
a(n) = A061167(A000040(n)).
a(n) = 30 * A138430(n).
a(n) = A000040(n) * A006093(n) * A008864(n) * A066872(n). (End)