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.

A138405 a(n) = prime(n)^5 - prime(n)^2.

Original entry on oeis.org

28, 234, 3100, 16758, 160930, 371124, 1419568, 2475738, 6435814, 20510308, 28628190, 69342588, 115854520, 147006594, 229342798, 418192684, 714920818, 844592580, 1350120618, 1804224310, 2073066264, 3077050158, 3939033754, 5584051528, 8587330848, 10510090300
Offset: 1

Views

Author

Artur Jasinski, Mar 19 2008

Keywords

Crossrefs

Programs

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

Formula

a(n) = A001248(n)*(A030078(n) - 1). - Elmo R. Oliveira, Jan 14 2023
From Alois P. Heinz, Jan 17 2023: (Start)
a(n) = 2 * A138431(n).
a(n) = A050997(n) - A001248(n). (End)