OFFSET
0,10
LINKS
Index entries for linear recurrences with constant coefficients, signature (-1, -1, -1, 1, 3, 3, 3, 2, -1, -2, -2, -2, -1).
FORMULA
a(n) = a(n-4)+a(n-5)+b(n) where b(n) is the 20-cycle (1,0,0,1,0,1,0,1,0,0,1,1,0,0,0,2,0,0,0,1) and b(n)=b(n-20). Initial values are b(14)=1, a(9)=2, a(10)=0, a(11)=0, a(12)=0, a(13)=3.
G.f.: 1+1/(1-x^5-x^4)-1/(1-x^5)-1/(1-x^4) (see comment A245332). - courtesy of Joerg Arndt
EXAMPLE
a(22)=10 The tuples are (55444)(54544)(54454)... where a(22)=5!/3!2!=10.
MATHEMATICA
CoefficientList[Series[1 + 1/(1 - x^5 - x^4) - 1/(1 - x^5) - 1/(1 - x^4), {x, 0, 60}], x] (* Wesley Ivan Hurt, Jul 26 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
David Neil McGrath, Jul 25 2014
STATUS
approved