Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/ii/paper-2/37a/c/solution

Substitution of the canonical probabilities into the Gibbs entropy gives
Hence

New to topics? Read the docs here!