OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = 1 + 36*n - 54*n^2 + 36*n^3.
G.f.: (1+5x)^3/(1-x)^4.
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4); a(0)=1, a(1)=19, a(2)=145, a(3)=595. - Harvey P. Dale, Sep 07 2011
MATHEMATICA
Table[36n^3-54n^2+36n+1, {n, 0, 50}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {1, 19, 145, 595}, 50] (* Harvey P. Dale, Sep 07 2011 *)
PROG
(Magma) [1+36*n-54*n^2+36*n^3: n in [0..40]]; // Vincenzo Librandi, Sep 07 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Mar 23 2003
STATUS
approved