OFFSET
0,7
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,1,1,0,0,0,1,0,-1,-1).
FORMULA
a(n) = a(n-2) + a(n-3) + a(n-7) - a(n-9) - a(n-10). - R. J. Mathar, Mar 11 2012
G.f.: x*(1 + x)*(1 - x^3 - x^7) / ((1 - x)*(1 - x^2 - x^3)*(1 + x + x^2 + x^3 + x^4 + x^5 + x^6)). - Colin Barker, Feb 26 2020
MATHEMATICA
a[0] = 0; a[1] = 1; a[2] = 1;
a[n_] := a[n] = a[n - 2] + a[n - 3]
Table[a[n] - Floor[a[n]/2], {n, 0, 30}]
PROG
(PARI) concat(0, Vec(x*(1 + x)*(1 - x^3 - x^7) / ((1 - x)*(1 - x^2 - x^3)*(1 + x + x^2 + x^3 + x^4 + x^5 + x^6)) + O(x^40))) \\ Colin Barker, Feb 26 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Nov 25 2010
EXTENSIONS
More terms from Jinyuan Wang, Feb 26 2020
STATUS
approved