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(1)=-81, a(2)=-143, a(3)=-217, a(4)=-297, a(n)=4*a(n-1)-6*a(n-2)+ 4*a(n-3)- a(n-4). - Harvey P. Dale, Jul 10 2013
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