OFFSET
0,2
COMMENTS
a(n) counts (binary) bit strings of length n in which no odd length block of 0's is followed by an odd length block of 1's. - Len Smiley, Nov 23 2001
REFERENCES
I. P. Goulden and D. M. Jackson, Combinatorial Enumeration, Wiley, N.Y., 1983,(2.4.6).
LINKS
Yunseo Choi and Katelyn Gan, Ungar Games on the Young-Fibonacci and the Shifted Staircase Lattices, arXiv:2406.10927 [math.CO], 2024. See p. 2.
Index entries for linear recurrences with constant coefficients, signature (0,2,2).
FORMULA
G.f.: (1+x)^2/(1-2*x^2-2*x^3).
a(n) = 2*a(n-2) + 2*a(n-3) for n>=3 with a(0)=1, a(1)=2, a(2)=3. - Wesley Ivan Hurt, Jan 01 2024
EXAMPLE
a(3) = 6 because only 2 of the 8 binary words of length 3 are such that an odd maximal block of 1's follows an odd maximal block of 0's: 010 and 101. - Geoffrey Critzer, May 28 2017
MATHEMATICA
nn = 30; a[x] := 1/(1 - x); c[x_] := x/(1 - x^2); CoefficientList[Series[a[x]^2/(1 - (x^2 a[x]^2 - c[x]^2)) , {x, 0, nn}], x] (*Geoffrey Critzer, May 28 2017*)
LinearRecurrence[{0, 2, 2}, {1, 2, 3}, 40] (* Harvey P. Dale, May 05 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Vladeta Jovovic, Jun 04 2001
STATUS
approved