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.

A138448 a(n) = (prime(n)^6 - prime(n)^2)/15.

Original entry on oeis.org

4, 48, 1040, 7840, 118096, 321776, 1609152, 3136368, 9869024, 39654832, 59166848, 171048336, 316673504, 421424080, 718614208, 1477623888, 2812035344, 3434691376, 6030558512, 8540018592, 10088948064, 16205829952, 21796024432
Offset: 1

Views

Author

Artur Jasinski, Mar 19 2008

Keywords

Crossrefs

Programs

  • Maple
    A138448:=n->(ithprime(n)^6-ithprime(n)^2)/15: seq(A138448(n), n=1..40); # Wesley Ivan Hurt, Apr 14 2017
  • Mathematica
    a = {}; Do[p = Prime[n]; AppendTo[a, (p^6 - p^2)/15], {n, 1, 50}]; a
  • PARI
    forprime(p=2,1e3,print1((p^6-p^2)/15", ")) \\ Charles R Greathouse IV, Jun 16 2011

Formula

From Elmo R. Oliveira, Jan 19 2023: (Start)
a(n) = (A030516(n) - A001248(n))/15.
a(n) = (2 * A138441(n))/15.
a(n) = (A001248(n) * (A030514(n) - 1))/15. (End)