GATE Computer ScienceVery hardGATE CS

How many walks of length 12 are there from vertex 0 to the antipodal vertex 4 in the cycle graph C₈ (vertices 0 to 7, i adjacent to i ± 1 mod 8)?

  1. A. 992
  2. B. 990
  3. C. 924
  4. D. 1024

Correct answer: A. 992

Each walk is a ±1 sequence whose sum is ≡ 4 (mod 8). Sum +4 needs 8 forward and 4 backward steps: C(12,4) = 495; sum −4 gives another 495; and the sums +12 and −12 (all forward or all backward) are also ≡ 4 mod 8, adding 2. Total 992.

More Discrete Mathematics questions

Exams that ask this topic