OFFSET
1,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).
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
KEYWORD
sign,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Nov 18 2008
STATUS
approved