OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: -4*(x+4)*(9*x+1)/(x-1)^3. - R. J. Mathar, Mar 20 2018
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Wesley Ivan Hurt, Aug 19 2022
MATHEMATICA
(10Range[0, 30]+4)^2 (* or *) LinearRecurrence[{3, -3, 1}, {16, 196, 576}, 30] (* Harvey P. Dale, May 03 2018 *)
PROG
(Magma) [(10*n+4)^2: n in [0..40] ]; // Vincenzo Librandi, Aug 01 2011
(PARI) a(n)=(10*n+4)^2 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved