Maths WorkshopMaths problems with full solutions
Exercise 1682Combinatorics › Graph theoryL1Added 3 Nov 2026

Chromatic number

#chromatic number#coloring#clique

Statement

Define the chromatic number χ(G)\chi(G) and compute it for KnK_n, CnC_n (cycle of length nn), and bipartite graphs.

Hint

KnK_n needs nn colors; CnC_n needs 22 or 33 depending on parity.

Show solutionHide solution

Solution

KnK_n. All vertices pairwise adjacent, so χ(Kn)=n\chi(K_n)=n.

CnC_n. If nn even, CnC_n is bipartite, so χ=2\chi=2. If nn odd, χ=3\chi=3 (2 colors alternate, but closing the cycle requires a third).

Bipartite. χ(G)=2\chi(G)=2 if GG has at least one edge; χ=1\chi=1 if edgeless.

Conclusion. χ(Kn)=n\chi(K_n)=n, χ(Cn)=2\chi(C_n)=2 (even nn) or 33 (odd nn).