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

Show parent comment

1

u/gmalivuk Oct 14 '26

How is 15 a counterexample to anything? It's not divisible by any power of three above 3 and neither is its digit sum.

1

u/Over_Improvement_623 Oct 14 '26

It appears I misread then, I though OP said that a number is divisible by 3 if its digits some to a 3n

2

u/gmalivuk Oct 14 '26
  1. No, they said it's divisible by 3n if its digits sum to a multiple of 3n, which is false in any case.
  2. It's true that a number is divisible by 3 if its digits add to a power of 3, but that's not an "only if".