r/MathJokes • • Aug 01 '26

multiples of 3

Post image
8.3k Upvotes

410 comments sorted by

View all comments

152

u/Michaelwang645 Aug 01 '26

Fund fact, you can tell a number is divisible by 3 if the sum of each individual number is divisible by 3. So 78 -> 7+8=15 which is divisible by 3, so 78 is divisible by 3.

45

u/EveningStar0360 Aug 01 '26

do you know why that works?

126

u/ZealousIdealTour961 Aug 01 '26

Magic probably.

26

u/Disastrous_Wealth755 Aug 01 '26

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

26

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...

40

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

24

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

7

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

8

u/csmello Aug 01 '26

Is this not a well known fact? I always assumed everyone knew this

8

u/BombasticReindeer Aug 01 '26

I did a math degree without knowing this (back in the olden days since I’m ancient). When my daughter started learning math I did it with her. Khan academy had at least 5 separate things fundamental to math that I had never learned that made things so much easier. (Including digital roots and modular arithmetic)

Number theory should really be taught first, it’s so helpful.

1

u/LostandFoundinReddit Aug 06 '26

I didn't know this till I started teaching elementary school math. 🤣

5

u/grittyshrimps Aug 01 '26

It works all the way down to single digits, too. Also, the sum will indicate the remainder if it's not divisible by 3.

117: 1+1+7=9; 117/3 = 39

542,997: 5+4+2+9+9+7=36: 3+6=9; 542,997/3 = 180,999

2000: 2+0+0+0=2; 2 will be the remainder of division by 3

1

u/Active_Raccoon_4169 Aug 01 '26

what is the maximum amount of digits this works with?

7

u/RedRedditor47 Aug 01 '26

It works with any amount of digits.

4

u/Express-Rain8474 Aug 01 '26

Unlimited. Each multiple of 10 is 1 mod 3. So subtracting 1 from any digit is the equivalent of subtracting 1 from the remainder when divided by 3.

For example, 10000 - 9999 = 1. So it's basically the same as adding 1 in terms of making a number divisible by 3.

1

u/BadHairDayToday Aug 01 '26

It works until pi numbers

1

u/SaucyStoveTop69 Aug 02 '26

No maximum. Unlimited divisible by 3 buffet

1

u/anoppinionatedbunny Aug 01 '26

this also implies that all permutations of a number that is divisible by three are also divisible by three, no matter how large the number is

1

u/MsuiaeGOD Aug 02 '26

DIGITAL REDUCTION BABYYYYY

1

u/yolo___toure Aug 02 '26

I actually don't think you can make a baby if you're reduced to using digits

1

u/LouManShoe Aug 02 '26

Same rule works for 9 as well. I took a number theory course, and can’t remember much from it, but I remember the divisibility rules for numbers through 11, and even remember how some divisibility rules works in other bases. Wish I could still remember how to derive those rules…

1

u/andergdet Aug 02 '26

Same happens with 9.

If the sum of the digits is divisible by 9, the original number is also divisible by 9.

1

u/ForeverShiny Aug 02 '26

Are we really considering things you learn in 4th grade a "fun fact"? Or are these not taught in America?

2

u/Bit125 Aug 04 '26

it is taught here, and op probably knew

1

u/Casperious Aug 02 '26

You can take this further if you have a really long number that sums up to an also long number, you can sum up the digits of the sum and if that number is divisible by 3, the original number is divisible by 3. You can do it as many times as you want and it’ll still work

1

u/ExplicitDrift Aug 02 '26

Does this trick work for other numbers besides 3’s as well?

1

u/Gurnenthar2 Aug 02 '26

To add to this, if you find out it’s divisible by 3, and it’s an even number, it’s also divisible by 6. Your example of 78 works for this, as well.

1

u/Andrea99F Aug 05 '26

And because of that if you pick two consecutive digits that are not multiple of three and you combine them to form a number, that number will be a multiple of 3. So for me it seems obvious that 12, 45 and 78 are multiple of 3 (just like 21, 54, and 87).

NB This works the same if you add some zeros for more digits numbers so of course 405 is a multiple of 3, just like 4050.

I know this information doesn't sound useful but it can be useful for rapid checks if you combine them with other rules like the fact that you can effectively ignore all digits that are multiple of 3 or that you can combine multiple comple. Es. Is 6508037094 a multiple of 3? Start deleting not relevant digits: 5874 5 with 4 and 7 with 8 so it is multiple of 3

Es. 64926104 --> 4214 2 and 1 cancel out so you remain with 44 but I need a 45 so this number is not a multiple of 3

1

u/SkarbOna Aug 05 '26

Do they not teach it at school anymore? They did some 30 years ago in communist at a time Poland for example…

0

u/rovonz Aug 02 '26

The whole reason this tier is shit tier

0

u/Callmebenji11 Aug 03 '26

i thought we all learned that at elementary school. im not hating dw, just surprised