A366045 Number of circular binary sequences of length n with an odd number of 0's and no three consecutive 1's.
1, 2, 4, 4, 11, 20, 36, 64, 121, 222, 408, 748, 1379, 2536, 4664, 8576, 15777, 29018, 53372, 98164, 180555, 332092, 610812, 1123456, 2066361, 3800630, 6990448, 12857436, 23648515, 43496400, 80002352, 147147264, 270646017, 497795634, 915588916, 1684030564
Offset: 1
Examples
a(1)=1 because 0 is the only allowed sequence of length one, and a(2)=2 because 01 and 10 are the only allowed sequences of length two. The allowed sequences of length three are 000, 011, 101, and 110. The allowed sequences of length four are 0001, 0010, 0100, and 1000. Thus a(3)=a(4)=4.
Links
- Joshua P. Bowman, Compositions with an Odd Number of Parts, and Other Congruences, J. Int. Seq (2024) Vol. 27, Art. 24.3.6. See p. 19.
- Petros Hadjicostas and Lingyun Zhang, On cyclic strings avoiding a pattern, Discrete Mathematics, 341 (2018), 1662-1674.
- W. O. J. Moser, Cyclic binary strings without long runs of like (alternating) bits, Fibonacci Quart. 31 (1993), no. 1, 2-6.
- Index entries for linear recurrences with constant coefficients, signature (0,1,2,3,2,1).
Programs
-
Mathematica
LinearRecurrence[{0, 1, 2, 3, 2, 1}, {1, 2, 4, 4, 11, 20}, 50]
Comments