login
A128990
a(n) = (n^3 - n^2)*7^n.
1
0, 196, 6174, 115248, 1680700, 21176820, 242121642, 2582630848, 26149137336, 254227724100, 2392565359030, 21924598926384, 196490913105396, 1728112389619252, 14954818756320450, 127614453387267840
OFFSET
1,2
LINKS
FORMULA
G.f.: 98*x^2*(2+7*x)/(1-7*x)^4. - Vincenzo Librandi, Feb 12 2013
a(n) = 28*a(n-1)-294*a(n-2)+1372*a(n-3)-2401*a(n-4). - Vincenzo Librandi, Feb 12 2013
MATHEMATICA
CoefficientList[Series[98 x (2 + 7 x)/(1 - 7 x)^4, {x, 0, 30}], x] (* Vincenzo Librandi, Feb 12 2013 *)
LinearRecurrence[{28, -294, 1372, -2401}, {0, 196, 6174, 115248}, 20] (* Harvey P. Dale, Mar 04 2015 *)
PROG
(Magma) [(n^3-n^2)*7^n: n in [1..25]]; /* or */ I:=[0, 196, 6174, 115248]; [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..25]]; // Vincenzo Librandi, Feb 12 2013
CROSSREFS
Sequence in context: A277792 A178722 A061622 * A061619 A185900 A285922
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Apr 30 2007
EXTENSIONS
Offset corrected by Mohammad K. Azarian, Nov 20 2008
STATUS
approved