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.

A147974 a(n) = n^3-((n-1)^3+(n-2)^3+(n-3)^3).

Original entry on oeis.org

10, 8, 18, 28, 26, 0, -62, -172, -342, -584, -910, -1332, -1862, -2512, -3294, -4220, -5302, -6552, -7982, -9604, -11430, -13472, -15742, -18252, -21014, -24040, -27342, -30932, -34822, -39024, -43550, -48412, -53622, -59192, -65134, -71460
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A147973.

Programs

  • Mathematica
    lst={};Do[k=n^3-((n-1)^3+(n-2)^3+(n-3)^3);AppendTo[lst,k],{n,5!}];lst
  • Python
    def a(n): return n**3-((n-1)**3+(n-2)**3+(n-3)**3)
    print([a(n) for n in range(1, 37)]) # Michael S. Branicky, Oct 08 2021

Formula

G.f.: -2*x*(18*x^3-23*x^2+16*x-5)/(x-1)^4. [Colin Barker, Oct 29 2012]