OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0, 1, 1, 1, -1, 0, -1).
FORMULA
G.f.: (1+x+x^2+x^3) / [(1-x^3)(1-x^2-x^4)].
a(1)=1, a(2)=1, a(3)=2, a(4)=3, a(5)=4, a(6)=5, a(7)=8, a(n)=a(n-2)+ a(n-3)+a(n-4)-a(n-5)-a(n-7) [From Harvey P. Dale, Oct 09 2011]
EXAMPLE
a(8) = 2+3+2+1+1 = 9.
MATHEMATICA
CoefficientList[Series[(1+x+x^2+x^3)/((1-x^3)(1-x^2-x^4)), {x, 0, 60}], x] (* or *) LinearRecurrence[{0, 1, 1, 1, -1, 0, -1}, {1, 1, 2, 3, 4, 5, 8}, 61] (* Harvey P. Dale, Oct 09 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alysia Veenhof (ladyluck1899(AT)hotmail.com), May 05 2004
EXTENSIONS
More terms from Pab Ter (pabrlos(AT)yahoo.com), May 24 2004
STATUS
approved