Fermat's little theorem
How can we tell, without calculating, that 2^97 − 2 is divisible by 97?
Thanks to Fermat's Little Theorem: if p is prime, then a^p − a is a multiple of p for any integer a. With a = 2 and p = 97, the number 2^97 − 2, which has thirty digits, is divisible by 97 without division. The same applies to 5³ − 5 = 120, a multiple of 3.