OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-5,2).
FORMULA
From Colin Barker, Apr 30 2019: (Start)
G.f.: (3 - 2*x + 4*x^2) / ((1 - x)^2*(1 - 2*x)).
a(n) = 4*a(n-1) - 5*a(n-2) + 2*a(n-3) for n>2.
(End)
PROG
(Magma) [6*2^(n+1) - 5*(n+1) - 4: n in [0..30] ]; // Vincenzo Librandi, May 18 2011
(PARI) Vec((3 - 2*x + 4*x^2) / ((1 - x)^2*(1 - 2*x)) + O(x^40)) \\ Colin Barker, Apr 30 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Creighton Dement, Feb 21 2006
STATUS
approved