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)?
- A. 992
- B. 990
- C. 924
- 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
- In how many permutations of 1, 2, …, 7 does no entry i + 1 immediately follow the entry i (that is, there is no adjacent pair i, i + 1 in…
- How many pairwise non-isomorphic simple graphs (not necessarily connected) have 6 vertices and exactly 7 edges?
- A necklace has 8 beads, each coloured with one of 3 colours so that adjacent beads (including the last and first) have different colours…
- What is the value of Σ{k=1}^{100} gcd(k, 100)?
- What is the size of a maximum cut of the Petersen graph (the largest number of edges between a vertex set S and its complement)?
- How many Latin squares of order 4 are there (4 × 4 arrays over {1, 2, 3, 4} in which every row and every column contains each symbol…