OFFSET
1,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: x*(16471 + 36635*x + 1344*x^2)/(1 - x)^3.
a(1)=16471, a(2)=86048, a(3)=210075; for n>3, a(n)=3*a(n-1)-3*a(n-2)+a(n-3). - Harvey P. Dale, Jul 02 2011
MATHEMATICA
Table[27225 n^2 - 12098 n + 1344, {n, 25}] (* Harvey P. Dale, Feb 20 2011 *)
LinearRecurrence[{3, -3, 1}, {16471, 86048, 210075}, 25] (* Harvey P. Dale, Jul 02 2011 *)
PROG
(Magma) I:=[16471, 86048, 210075]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+Self(n-3): n in [1..40]];
(PARI) a(n)=27225*n^2-12098*n+1344;
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Mar 07 2009
EXTENSIONS
Edited by M. F. Hasler, Oct 08 2014
STATUS
approved