Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 2 17H c Solution Created 2026-09-24 Updated 2026-09-25
Let and supposeIf some coefficient is nonzero, let be the largest index with . Choose a pathwhose endpoints realize the graph diameter. Every initial segment is a shortest path, since a shorter route from to could be followed by the remaining segment to shorten the path from to . Thus
By the walk count from powers of an adjacency matrix,Taking the entry of the assumed relation and using maximality of givesa contradiction. Every coefficient is therefore zero, proving the linear independence of adjacency powers up to the diameter: