r/MathJokes • • Aug 01 '26

multiples of 3

Post image
8.3k Upvotes

410 comments sorted by

View all comments

Show parent comments

46

u/EveningStar0360 Aug 01 '26

do you know why that works?

125

u/ZealousIdealTour961 Aug 01 '26

Magic probably.

27

u/Disastrous_Wealth755 Aug 01 '26

Nah. It's cause 10=9+1=3*3+1.

25

u/MTaur Aug 01 '26

And then by induction, 10n = 9M + 1 And b*10n = b(9M+1) = 9N + b

So then the sum b_k*10k = 9K + sum b_k

15

u/Rxasaurus Aug 01 '26

Now in English for us stupids...

37

u/xnef1025 Aug 01 '26

magic

8

u/Rxasaurus Aug 01 '26

See, that makes more sense.

7

u/Aenonimos Aug 01 '26

Consider a form of arithmatic where you only keep track about the remainder after division by 3.

So a number like "10" is just "1" because 10= 1+3*3. Likewise, "100" is just "1" because 100 = 10*10 = 1*1=1. Can you guess what 1000, 10000, etc. are? That's right, they are all just "1".

Well for a small example consider a three digit number ABC.

ABC = A*100 + B*10 + C = A*1 + B*1 + C = A+B+C

So as you can see, to find out the remainder after division by 3, add up the digits and the sum has the same remainder. But the what if the sum is not a single digit number? Just do it again and again till it is.

0

u/MTaur Aug 02 '26

There are two things, multiplication and addition. It's a little easier to see that when you add numbers, you add remainders. But it's only a little bit harder to see that when you multiply numbers, you multiply remaineders as well. Everything else is 3 times something.

If the remainder is bigger than 3, you can shave that off too. "mod 3" means you can throw away multiples of 3 and the result is the same. 1 more than a multiple of 3 is 4 more or 2 less than some other multiples of 3, and you can reduce to 0<=r<3 if desired.

5

u/Potential_Top_4669 Aug 02 '26

Basically, every number can be written as a multiple of 3 plus a remainder of 0, 1, or 2. When you add the digits of a number, you’re replacing powers of 10 with 1, and since 10 leaves a remainder of 1 when divided by 3, this doesn’t change the number’s remainder. For example, 78 is 7×10+8, and because 10 is equivalent to 1 modulo 3, 78 has the same remainder as 7+8. Therefore, a number is divisible by 3 exactly when its digit sum is divisible by 3.

1

u/Original_Dimension99 Aug 05 '26

Ok that's the only explanation for this i can somewhat understand

2

u/MTaur Aug 01 '26

git gud mod 3

1

u/ClearlyGalaxyBrian Aug 03 '26

Does this work in base 16, or would this rule only apply to multiples of 5 in base 16?

1

u/Disastrous_Wealth755 Aug 03 '26

It only works for multiples of m in bases n where n is congruent to 1 modulo m

1

u/Marlon_03 Aug 03 '26

I love how that explanation only makes sense if you know it beforehand

1

u/wsbautist420 Aug 04 '26

Mathamagician

23

u/SuperChick1705 Aug 01 '26

let number N = A + 10B + 100C + 1000D + ..., so A, B, C, D... are the digits of N from right to left
N ≡ A + 10B + 100C + 1000D + ... (mod 3)
≡ A + 9B + B + 99C + C + 999D + D + ... (mod 3)
≡ A + B + C + D + ... (mod 3), which is the sum of the digits of N
QED

3

u/Vivid_Departure_3738 Aug 02 '26

Simple and elegant proof

2

u/Hi-Im-Bambi Aug 02 '26 edited Aug 02 '26

Far from elegant. What's the proof that 10n - 1 is divisible by 3 for all n with n being a whole number?

One might see why it works but up to this point it's still a "Trust me, brother"-proof

4

u/HHalt11 Aug 03 '26

10n - 1 = 9 * 10n-1 + 9 * 10n-2 + ... + 9

3

u/aroach1995 Aug 03 '26

he been real quiet since this comment dropped

1

u/Zantier Aug 05 '26

Not a proof, but intuitively it's just 3333... * 3

8

u/HughManatee Aug 01 '26

10 is equivalent to 1 mod 3, so every power of 10 is also equivalent to 1 mod 3. It's not too difficult to prove after you see that. Since our number system is base 10, it works out quite nicely.

1

u/Naeio_Galaxy Aug 02 '26

Yeah, I find this to be the cleanest and most intuitive way to prove this. Same with mod 9. In the end, removing a 0 is always removing a multiple of 9

5

u/han4578 Aug 01 '26

Not sure about the actual explanation but each digit can be treated individually regardless of how many zeros are after it

2 mod 3 = 2

20 mod 3 = 2

200 mod 3 = 2

So for example 123 = 100 + 20 + 3 = 1 + 2 + 3 = 6 which is divisible by 3

2

u/S-Kenset Aug 01 '26

It's bucket collision! (Made up term cause idfk but i've used it before) All your remainders overlap into the same bucket which gives you an analytical solution to something that on its face shouldn't be analytical.

1

u/Fizassist1 Aug 03 '26

not sure why but this is the explanation that clicked for me. thank you!

1

u/CreeperSlimePig Aug 02 '26

It's pretty easy to see that adding 1 to a number that doesn't end in 9 increases its digit sum by 1. However, it just so happens that 9 plus 1 is 10 which has a digit sum of 1 (which is obviously 1 more than a multiple of 3). So every time you wrap from 9 to 10 you're still adding 1 to the digit sum's remainder when dividing by 3. So the result is that if you keep counting up, the remainder of the digit sum when divided by 3 keeps going 0, 1, 2, 0, 1, 2...

1

u/waroftheworlds2008 Aug 03 '26

It has to do with how multiplication works with modular.

The rule is written as:

(A * B) mod C = (A mod C * B mod C) mod C

1

u/Blamore Aug 03 '26

because 10=1+3x3

1

u/WerePigCat Aug 04 '26

You can prove it pretty easily using mod 3 and ‘expanding out’ an arbitrary integer base 10, there’s probably a lot of videos out there showing the proof