login
A128992
a(n) = (n^3 - n^2)*9^n.
1
0, 324, 13122, 314928, 5904900, 95659380, 1406192886, 19284931008, 251048476872, 3138105960900, 37971082126890, 447368385785904, 5154903899851212, 58290067175240628, 648557066098144350
OFFSET
1,2
FORMULA
G.f.: 162*x^2*(2+9*x)/(1-9*x)^4. - Vincenzo Librandi, Feb 12 2013
a(n) = 36*a(n-1)-486*a(n-2)+2916*a(n-3)-6561*a(n-4). - Vincenzo Librandi, Feb 12 2013
MATHEMATICA
CoefficientList[Series[162 x (2 + 9 x)/(1 - 9 x)^4, {x, 0, 30}], x] (* Vincenzo Librandi, Feb 12 2013 *)
PROG
(Magma) [(n^3-n^2)*9^n: n in [1..25]]; /* or */ I:=[0, 324, 13122, 314928]; [n le 4 select I[n] else 36*Self(n-1)-486*Self(n-2)+2916*Self(n-3)-6561*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Feb 12 2013
CROSSREFS
Sequence in context: A203374 A183358 A128381 * A221399 A204082 A088216
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Apr 30 2007
EXTENSIONS
Offset corrected by Mohammad K. Azarian, Nov 20 2008
STATUS
approved