OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (11,-27,25,-8).
FORMULA
From R. J. Mathar, May 05 2010: (Start)
a(n) = 11*a(n-1) - 27*a(n-2) + 25*a(n-3) - 8*a(n-4).
G.f.: 2*(1 - 6*x + 26*x^2 + 7*x^3)/ ( (8*x-1)* (x-1)^3). (End)
PROG
(Magma) [2^(3*n+1)-2*n*(2*n+1): n in [0..20]]; // Vincenzo Librandi, Jun 26 2011
(PARI) a(n) = 2^(3*n+1)-2*n*(2*n+1); \\ Altug Alkan, Sep 21 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved