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.

A138406 a(n) = prime(n)^5 - prime(n)^3.

Original entry on oeis.org

24, 216, 3000, 16464, 159720, 369096, 1414944, 2469240, 6424176, 20486760, 28599360, 69293304, 115787280, 146928936, 229241184, 418046616, 714718920, 844369320, 1349824344, 1803871440, 2072682576, 3076563360, 3938468856
Offset: 1

Views

Author

Artur Jasinski, Mar 19 2008

Keywords

Programs

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