OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
For n >= 14, a(n) = a(n-5) + 2. - David W. Wilson
From Colin Barker, Jan 04 2018: (Start)
G.f.: 2*x*(1 + x + x^2 - x^3 - x^4 - x^7 + x^8 - x^11 + x^13) / ((1 - x)^2*(1 + x + x^2 + x^3 + x^4)).
a(n) = a(n-1) + a(n-5) - a(n-6) for n>5.
(End)
PROG
(PARI) concat(0, Vec(2*x*(1 + x + x^2 - x^3 - x^4 - x^7 + x^8 - x^11 + x^13) / ((1 - x)^2*(1 + x + x^2 + x^3 + x^4)) + O(x^40))) \\ Colin Barker, Jan 04 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved