OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4), a(1)=-81, a(2)=-143, a(3)=-217, a(4)=-297. - Harvey P. Dale, Jul 10 2013
From Elmo R. Oliveira, Sep 08 2025: (Start)
G.f.: x*(-81 + 181*x - 131*x^2 + 37*x^3)/(x-1)^4.
E.g.f.: exp(x)*(-81 - 62*x - 6*x^2 + x^3). (End)
MATHEMATICA
a[n_]:=n^3-(3*(n+3))^2; lst={}; Do[AppendTo[lst, a[n]], {n, 0, 5!}]; lst
Table[n^3-(3(n+3))^2, {n, 0, 40}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {-81, -143, -217, -297}, 40] (* Harvey P. Dale, Jul 10 2013 *)
PROG
(PARI) a(n)=n^3-(3*n+9)^2 \\ Charles R Greathouse IV, Oct 18 2022
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 22 2008
STATUS
approved
