GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Binary strings of length 10 are written around a circle, and two are considered the same if one is a rotation of the other. How many such circular strings contain no two adjacent 1s (including the last-first pair)?

  1. A. 123
  2. B. 13
  3. C. 15
  4. D. 21

Correct answer: C. 15

Burnside over the 10 rotations. A rotation with gcd(r, 10) = d fixes exactly the valid circular strings of length d repeated, counted by the Lucas number L_d for d ≥ 2 (L₁₀ = 123, L₅ = 11, L₂ = 3) and 1 for d = 1. The number of rotations with each d is φ(10/d) = 1, 1, 4, 4 for d = 10, 5, 2, 1. (123 + 11 + 4·3 + 4·1)/10 = 150/10 = 15.

More Discrete Mathematics questions

Exams that ask this topic