login
A120969
8n+5^n-3^n.
1
0, 10, 32, 122, 576, 2922, 14944, 75994, 384128, 1933514, 9706656, 48651066, 243609280, 1219108906, 6098732768, 30503229338, 152544844032, 762810313098, 3814309845280, 19072324066810, 95363944856384, 476826697850090
OFFSET
0,2
FORMULA
G.f.: 2*x*(5-34*x+61*x^2)/((1-x)^2*(1-5*x)*(1-3*x)). - Vincenzo Librandi, Feb 23 2013
MATHEMATICA
CoefficientList[Series[2 x (5 - 34 x + 61 x^2)/((1-x)^2(1-5x)(1-3x)), {x, 0, 30}], x] (* Vincenzo Librandi, Feb 23 2013 *)
PROG
(Magma) [8*n+5^n-3^n: n in [0..30]] /* or */ I:=[0, 10, 32, 122]; [n le 4 select I[n] else 10*Self(n-1)-32*Self(n-2)+38*Self(n-3)-15*Self(n-4): n in [1..30]]; // Vincenzo Librandi, Feb 25.2013
CROSSREFS
Sequence in context: A052210 A084818 A264286 * A265374 A231032 A232009
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Aug 19 2006
EXTENSIONS
Edited by Ray Chandler, Sep 06 2006
STATUS
approved