OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Harvey P. Dale, May 05 2014
From G. C. Greubel, Dec 24 2022: (Start)
G.f.: (1 + 141*x + 100*x^2)/(1-x)^3.
E.g.f.: (1 + 143*x + 121*x^2)*exp(x). (End)
MATHEMATICA
(11*Range[0, 30]+1)^2 (* or *) LinearRecurrence[{3, -3, 1}, {1, 144, 529}, 30] (* Harvey P. Dale, May 05 2014 *)
PROG
(PARI) a(n)=(11*n+1)^2 \\ Charles R Greathouse IV, Jun 17 2017
(Magma) [(11*n+1)^2: n in [0..50]]; // G. C. Greubel, Dec 24 2022
(SageMath) [(11*n+1)^2 for n in range(51)] # G. C. Greubel, Dec 24 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved