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.

A138422 a(n) = (prime(n)^4 - prime(n)^2)/12.

Original entry on oeis.org

1, 6, 50, 196, 1210, 2366, 6936, 10830, 23276, 58870, 76880, 156066, 235340, 284746, 406456, 657306, 1009490, 1153510, 1678886, 2117220, 2366076, 3245320, 3954286, 5227860, 7376656, 8670850, 9378356, 10922346, 11762190, 13586216, 21677376
Offset: 1

Views

Author

Artur Jasinski, Mar 19 2008

Keywords

Programs

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

Formula

a(n) = A138402(n)/12. - R. J. Mathar, Oct 15 2017