OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = (37*n)^2-(36*n)^2.
G.f.: 73*x*(1 + x)/(1 - x)^3. - Vincenzo Librandi, Aug 21 2014
a(n) = 3*a(n-1)-3*a(n-2)+a(n-3) for n>2.
MATHEMATICA
Table[73 n^2, {n, 0, 40}] (* or *) CoefficientList[Series[73 x (1 + x)/(1 - x)^3, {x, 0, 40}], x] (* Vincenzo Librandi, Aug 21 2014 *)
PROG
(Magma) [73*n^2: n in [0..50]];
(Magma) I:=[0, 73, 292]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+Self(n-3): n in [1..40]]; // Vincenzo Librandi, Aug 21 2014
(PARI) a(n)=73*n^2 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Mar 16 2010
EXTENSIONS
Comment rewritten as formula by Bruno Berselli, Jul 12 2012
STATUS
approved