GATE Computer ScienceHardGATE CS (PYQ pattern)

For how many 8-bit patterns x does there exist some rotation distance k with 1 ≤ k ≤ 7 such that rotating x left circularly by k bits gives x back?

  1. A. 2
  2. B. 8
  3. C. 16
  4. D. 30

Correct answer: C. 16

A pattern has a non-trivial rotational symmetry iff it is built from a repeating block of length 1, 2 or 4. Of 256 patterns, 240 are aperiodic (necklace theory: period exactly 8), leaving 16 (2 with period 1, 2 with period 2, 12 with period 4).

More Digital Logic questions

Exams that ask this topic