A147974 a(n) = n^3-((n-1)^3+(n-2)^3+(n-3)^3).
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
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..10000
- Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
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]