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.

A138455 a(n) = ((n-th prime)^6-(n-th prime)^4)/4.

Original entry on oeis.org

12, 162, 3750, 28812, 439230, 1199562, 6013512, 11728890, 36939012, 148529010, 221645040, 640963062, 1186819620, 1579486062, 2693583912, 5539117662, 10542104070, 12876632130, 22609557762, 32018718060, 37826457012
Offset: 1

Views

Author

Artur Jasinski, Mar 22 2008

Keywords

Comments

All terms end in 0 or 2. - Bernard Schott, Aug 31 2020

Programs

  • Maple
    f:= proc(n) local p;
    p:= ithprime(n); (p^6-p^4)/4
    end proc:
    map(f, [$1..100]); # Robert Israel, Aug 31 2020
  • Mathematica
    a = {}; Do[p = Prime[n]; AppendTo[a, (p^6 - p^4)/4], {n, 1, 24}]; a
    (#^6-#^4)/4&/@Prime[Range[30]] (* Harvey P. Dale, Jul 21 2023 *)
  • PARI
    forprime(p=2,1e3,print1((p^6-p^4)/4", ")) \\ Charles R Greathouse IV, Jul 15 2011