Solution

ID: past-exam-of-the-mathematics-course-of-the-year-1-of-the-natural-sciences-course-of-the-university-of-cambridge/2023/paper-2/14/a/v/solution

Let denote the set of arrangements with fifth, and those with sixth. Each contains arrangements, while their intersection contains . The inclusion-exclusion principle gives

New to topics? Read the docs here!