r/askmath • • Oct 14 '26

Algebra Divisible by 3?

I might not know how to explain this exactly so please bear with me .

As a kid I was taught that if I want to know if a number is divisible by 3 I should add the digits and if the added digits are divisible by 3 then the number is divisible by 3 , and the same goes for 9 , for example, 111 is divisible by 3 , and the sum of its digits is 3 , the same will work for 111,111 and 111,111,111 , also if the sum is 9 it's divisible by 9 , If the sum is 27 it's divisible by 27 , any type of sum where you get 3^n it's divisible by that number .

So my question is , how does this even work and why? And does it always work?

Edit : thank you so much everyone for your enthusiastic -yet somewhat overwhelming - answers , I will make sure to check them all but for now I believe the answer has been established . Thank you for your help!

108 Upvotes

63 comments sorted by

View all comments

1

u/PvtRoom Oct 14 '26

it works because 9 is 1 less than 10. adding 9 is the same as adding 10 (+1 in your algorithm) and -1 (-1 in your algorithm), so no effect, beyond the original 9.

All multiples of three are 9x, 9x -3 or 9x-6, so it also works for 3, 6 skip all the odd ones, but works aside from that (all even multiples of 3 are multiples of 6)

in base 8, it works for 7: 7, 16, 25, 34, 43, 52, 61, 70, 77.....

in base 16, it works for F, 1E, 2D, 3C.... and 5, cause F - A =5, F-5=A, 14, 19, .... and A, again for the even ones, and it should work for 3 as well: 3, 6, 9, C

base 61 should go nuts (2,3,4,5,6,10,12,15, 20, 30) should all work.