Divisibility rules work like machines, digit sums give remainders, and remainders by 7 give the day of the week.
| Divisible by 2, 5, 10 | last digit even; 0 or 5; 0 |
| Divisible by 4, 8 | last two digits by 4; last three digits by 8 |
| Divisible by 6 | by 2 and by 3 |
| Remainder by 9 | 4,357: 4 + 3 + 5 + 7 = 19 → remainder 1 |
| Day after n days | move on (remainder of n ÷ 7) days: 100 days from Monday is Wednesday |
| Multiples of a or b up to N | multiples of a + multiples of b − multiples of the LCM |
Using four of the digits 8, 1, 6, 3, 9 once each, write the largest 4-digit number divisible by 3.
Working: choose four digits whose sum is a multiple of 3 and arrange them from largest to smallest
Answer: 9861