Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/ia/paper-4/5e/ii/solution

Divisibility by or depends only on the final digit. As the digits are cyclically rotated, every digit appears in the final position. Thus every rotation is divisible by exactly when every digit is divisible by .

New to topics? Read the docs here!