Life hacks
A number divides evenly by 3 if its digits add up to a multiple of 3.
Is 5,271 divisible by 3? Add the digits: 5 + 2 + 7 + 1 = 15. Fifteen is divisible by 3, so 5,271 is too (it's 3 × 1,757).
The same test works for 9: if the digits add up to a multiple of 9, so does the number.