OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,2,2,-1).
FORMULA
a(n) = 2*a(n-1) + 2*a(n-2) + 2*a(n-3) - a(n-4) for n>3. - Colin Barker, Jul 16 2017
Lim_{n -> inf} a(n)/a(n-1) = A318605. - A.H.M. Smeets, Sep 12 2018
MAPLE
seq(coeff(series((1-x^2-2*x^3)/(1-2*x-2*x^2-2*x^3+x^4), x, n+1), x, n), n = 0 .. 30); # Muniru A Asiru, Sep 12 2018
PROG
(PARI) Vec((1 - x^2 - 2*x^3) / (1 - 2*x - 2*x^2 - 2*x^3 + x^4) + O(x^30)) \\ Colin Barker, Jul 16 2017
(GAP) a:=[1, 2, 5, 14];; for n in [5..30] do a[n]:=2*a[n-1]+2*a[n-2]+2*a[n-3]-a[n-4]; od; a; # Muniru A Asiru, Sep 12 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved