OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (28,-294,1372,-2401).
FORMULA
G.f.: 7*x*(1 + 28*x + 49x^2)/(1 - 7*x)^4. - Vincenzo Librandi, Feb 08 2013
a(n) = 28*a(n-1) - 294*a(n-2) + 1372*a(n-3) - 2401*a(n-4). - Vincenzo Librandi, Feb 09 2013
MATHEMATICA
CoefficientList[Series[7*x*(1 + 28*x + 49*x^2)/(1 - 7*x)^4, {x, 0, 40}], x] (* Vincenzo Librandi, Feb 08 2013 *)
Table[n^3 7^n, {n, 0, 20}] (* or *) LinearRecurrence[{28, -294, 1372, -2401}, {0, 7, 392, 9261}, 20] (* Harvey P. Dale, Aug 30 2020 *)
PROG
(Magma) [n^3*7^n: n in [0..20]]; // Vincenzo Librandi, Feb 08 2013
(Magma) I:=[0, 7, 392, 9261]; [n le 4 select I[n] else 28*Self(n-1)-294*Self(n-2)+1372*Self(n-3)-2401*Self(n-4): n in [1..30]]; // Vincenzo Librandi, Feb 09 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Apr 07 2007
STATUS
approved