OFFSET
0,4
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
Félix Balado and Guénolé C. M. Silvestre, Systematic Enumeration of Fundamental Quantities Involving Runs in Binary Strings, arXiv:2602.10005 [math.CO], 2026. See p. 33.
Index entries for linear recurrences with constant coefficients, signature (4,-6,5,-2,-1,1,-1).
FORMULA
G.f.: x^2 * (1 - x)^2/(((1 - x)^2 - x^3) * ((1 - x)^2 - x^4)).
MATHEMATICA
LinearRecurrence[{4, -6, 5, -2, -1, 1, -1}, {0, 0, 1, 2, 3, 5, 10}, 40] (* Harvey P. Dale, Jun 24 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Félix Balado, May 20 2025
STATUS
approved
