OFFSET
0,2
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. 94*x*(1+x)/(1-x)^3 . - R. J. Mathar, Oct 01 2011
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Vincenzo Librandi, Aug 21 2014
MATHEMATICA
Table[94 n^2, {n, 0, 40}] (* or *) CoefficientList[Series[94 x (1 + x)/(1 - x)^3, {x, 0, 40}], x] (* Vincenzo Librandi, Aug 21 2014 *)
LinearRecurrence[{3, -3, 1}, {0, 94, 376}, 40] (* Harvey P. Dale, Aug 15 2016 *)
PROG
(Magma) [94*n^2: n in [0..50]];
(Magma) I:=[0, 94, 376]; [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)=94*n^2 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Vincenzo Librandi, Mar 16 2010
STATUS
approved