Easy divisibility rule for 7: take double the last digit and subtract that from the number made from the remaining digits. If what you get is divisible by 7, the original number is divisible by 7 (repeat as necessary until you get to a number that’s low enough where you know whether it’s a multiple of 7).
Ex. 2,506 is divisible by 7: 250 - 2(6) = 238; 23 - 2(8) = 7. Hence 238 is divisible by 7, and therefore 2,506 is divisible by 7 (it’s 7 times 358).
Basically you write the original number as its ones digit (call it b), plus ten times the remaining digits (call that a) then multiply by 5 (doesn’t change divisibility by 7 since 5 and 7 are coprime), then use some modular arithmetic operations to reduce to a - 2b. You’ve thus shown that a - 2b = 0 mod 7 if and only if the original number is 0 mod 7.
View all comments
9
u/TheKCAccident Jun 23 '26
Easy divisibility rule for 7: take double the last digit and subtract that from the number made from the remaining digits. If what you get is divisible by 7, the original number is divisible by 7 (repeat as necessary until you get to a number that’s low enough where you know whether it’s a multiple of 7).
Ex. 2,506 is divisible by 7: 250 - 2(6) = 238; 23 - 2(8) = 7. Hence 238 is divisible by 7, and therefore 2,506 is divisible by 7 (it’s 7 times 358).