GATE Computer ScienceHardGATE CS (PYQ pattern)

Colours are chosen from 4 available colours. How many proper vertex colourings of the cycle C₇ use all 4 colours?

  1. A. 1680
  2. B. 2184
  3. C. 1806
  4. D. 504

Correct answer: A. 1680

P(C₇, k) = (k − 1)⁷ − (k − 1): P(4) = 2184, P(3) = 126, P(2) = P(1) = 0. Inclusion–exclusion over unused colours: 2184 − C(4,3)·126 + C(4,2)·0 − … = 2184 − 504 = 1680.

More Discrete Mathematics questions

Exams that ask this topic