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.

A138427 a(n) = (prime(n)^5 - prime(n))/6.

Original entry on oeis.org

5, 40, 520, 2800, 26840, 61880, 236640, 412680, 1072720, 3418520, 4771520, 11557320, 19309360, 24501400, 38224160, 69699240, 119154040, 140766040, 225020840, 300704880, 345511920, 512842720, 656506760, 930676560, 1431223360
Offset: 1

Views

Author

Artur Jasinski, Mar 19 2008

Keywords

Programs

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

Formula

a(n) = A138404(n)/6. - R. J. Mathar, Oct 15 2017