login
A147974
a(n) = n^3-((n-1)^3+(n-2)^3+(n-3)^3).
1
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,1
FORMULA
G.f.: -2*x*(18*x^3-23*x^2+16*x-5)/(x-1)^4. [Colin Barker, Oct 29 2012]
MATHEMATICA
lst={}; Do[k=n^3-((n-1)^3+(n-2)^3+(n-3)^3); AppendTo[lst, k], {n, 5!}]; lst
PROG
(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
CROSSREFS
Cf. A147973.
Sequence in context: A291424 A357473 A065691 * A213553 A317813 A038310
KEYWORD
sign,easy
AUTHOR
STATUS
approved