Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Math types: When you total a sum of digits in number and sum divides by 3,

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
darkstar Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Mar-28-06 12:58 AM
Original message
Math types: When you total a sum of digits in number and sum divides by 3,
Edited on Tue Mar-28-06 01:13 AM by darkstar
then the orginal number is divisible by 3?

162 (1+6+2=9; 9 divisible by 3, hence 162 is as well.)

Drving me crazy. It seems like it should be straightforward, but maybe its some longer type proof y'all are good at?

Thanks in advance,

darkstar
Printer Friendly | Permalink |  | Top
EstimatedProphet Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Mar-28-06 01:00 AM
Response to Original message
1. Same thing with 9
which makes sense, since 9 is 3x3
Printer Friendly | Permalink |  | Top
 
aePrime Donating Member (676 posts) Send PM | Profile | Ignore Tue Mar-28-06 01:01 AM
Response to Original message
2. Yes, it's true
Is that what you were asking?
Printer Friendly | Permalink |  | Top
 
darkstar Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Mar-28-06 01:03 AM
Response to Reply #2
3. No I'm asking why it's true
Edited on Tue Mar-28-06 01:04 AM by darkstar
and your nic seems promising in this regard...

(Sorry. Meant to type "why" in orginal post)

Nice to meet you :hi:
Printer Friendly | Permalink |  | Top
 
aePrime Donating Member (676 posts) Send PM | Profile | Ignore Tue Mar-28-06 01:30 AM
Response to Reply #3
4. Yes, I saw what you were asking on a second reading.
I should read more closely.

First we need an introduction to modular arithmetic, since it's not seen by most people. Being a computer scientist, I'm going to do it the CS way, and not the mathematician way.

If we take the integers x and y, and perform a modulo on them: x % y (let % stand for modulus (mod)), it means, "What is the remainder of x / y?"

10 % 5 = 0, since 10 is evenly divisible by 5.
10 % 3 = 1, since if we divide 10 by 3, we have a remainder of 1.

For a number to be divisible by 3, that number modulo 3 must be 0.

Mathematicians would write these as 10 === 0 (mod 5) and 10 === 1 (mod 3) respectively.

Something to note here is that any power of 10 mod 3 is 1.
10 % 3 = 1
100 % 3 = 1
1000 % 3 = 1
...

The decimal system that we all know and love is a sum of weighted powers of 10.

162 = 1 * 10^2 + 6 * 10^1 + 2 ^ 10^0
7823 = 7 * 10^3 + 8 * 10^2 + 2 * 10^1 + 3 * 10^0

This is where the modular arithmetic comes in, and the fact that 10^x % 3 = 1 for any integral power of x.

If we take our number in the broken up decimal way, we can mod each term with three (because of the properties of modular arithmetic). Anything multiplied by a power of 10 is 1, as we've seen, so each term is just multiplied by 1. For 162, your example, 1 % 3 * 1 + 6 % 3 * 1 + 2 % 3 * 1 = 1 % 3 + 6 % 3 + 2 % 3 = 1 + 0 + 2 = 3. 3 % 3 = 0, so we can see that the entire term modulo 3 is 0, and therefore it is divisible by 3.
Printer Friendly | Permalink |  | Top
 
darkstar Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Mar-28-06 01:38 AM
Response to Reply #4
5. Wow. Thanx for the effort you
put into that. Better yet, I think I've got it. At any rate, I can bookmark it and refer to it tomorrow at work where we've been kicking this around.

Thanks again, AEP. A real pleasure to meet you.

:toast:
Printer Friendly | Permalink |  | Top
 
aePrime Donating Member (676 posts) Send PM | Profile | Ignore Tue Mar-28-06 01:42 AM
Response to Reply #5
6. Not a problem
I'm not sure if I made it really clear. If you have any questions, feel free to ask.

Pleasure to meet you too :)

:toast:
Printer Friendly | Permalink |  | Top
 
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Mar-28-06 06:16 AM
Response to Reply #5
9. A simpler way
"Taking a digit away from the tens and summing it to the units" may be understood as:

First we had 10x + y

Then we have x + y

The difference is 9x, which is divisible by 3. Therefore, if the previous number was divisible by 3, the new number is too. Ditto for 9.

The reasoning works with farther-away places too: x0000y = 10000x + y ; (10000x + y) - (x + y) = 9999x + y
Printer Friendly | Permalink |  | Top
 
TheBaldyMan Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Mar-28-06 04:15 AM
Response to Reply #4
7. and that proof is almost identical for the one for modulo 9
WhyI get the impression that a lot of homework is getting solved on DU.
Is it ethical to do someone else's homework ?
Printer Friendly | Permalink |  | Top
 
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Mar-28-06 06:17 AM
Response to Reply #7
10. That's like asking whether Wikipedia is ethical.
All we're doing here is talk about math.
Printer Friendly | Permalink |  | Top
 
Peter Frank Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Mar-28-06 04:39 AM
Response to Reply #4
8. That's as clear as mud to the uninitiated...

Got layman's terms?

Printer Friendly | Permalink |  | Top
 
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Mar-28-06 06:18 AM
Response to Reply #8
11. See if post #9 helps -nt
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Mon Apr 29th 2024, 12:24 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC