Interesting number trick...

blueshoe

Senior member
Mar 6, 2005
414
0
76
Select any number with at least 2 digits (12345 for example).
Scramble the numbers. (34125)
Take the difference.

The difference will always be a multiple of 9. :Q

HOW does this work??
 

imported_goku

Diamond Member
Mar 28, 2004
7,613
3
0
doood! Though, if you were to take 111, scramble the numbers and subtract the difference, you'd end up with 0 and that's no divisible by 9..
 

JujuFish

Lifer
Feb 3, 2005
11,120
818
136
Originally posted by: goku
doood! Though, if you were to take 111, scramble the numbers and subtract the difference, you'd end up with 0 and that's no divisible by 9..

You fail at math.
 

imported_goku

Diamond Member
Mar 28, 2004
7,613
3
0
Originally posted by: JujuFish
Originally posted by: goku
doood! Though, if you were to take 111, scramble the numbers and subtract the difference, you'd end up with 0 and that's no divisible by 9..

You fail at math.

You fail at proving people wrong. 111-111=0 0/9=0
 

Lithium381

Lifer
May 12, 2001
12,452
2
0
Originally posted by: goku
Originally posted by: JujuFish
Originally posted by: goku
doood! Though, if you were to take 111, scramble the numbers and subtract the difference, you'd end up with 0 and that's no divisible by 9..

You fail at math.

You fail at proving people wrong. 111-111=0 0/9=0

edit - nm i failed at proving people wrong too
 

tom3

Golden Member
Oct 10, 1999
1,996
0
0
This works because of the following:

The value of the number ABCDE (where each letter is a digit) is 10000*A + 1000*B + 100*C + 10*D + 1*E. If we look at just one of the digits and the value it contributes to the sum, let's say, B, which contributes 1000*B to the sum in this case. And we test out all the possible positions it may end up, we have B####, #B###, ##B##, ###B#, ####B; contributing 10000*B, 1000*B, 100*B, 10*B, a*B respectively.

Now if you take the difference between these 5 possible values and 1000*B (from the original number), you get 9000*B, 0*B, 900*B, 990*B, 999*B respectively, all of which are B multiplied by a multiple of 9. Now if the contributed value difference for each of the digits before and after scrambling is always a multiple of 9, then the sum will always be a multiple of 9.
 

JoPh

Diamond Member
Aug 8, 2002
7,312
1
76
Originally posted by: tom3
This works because of the following:

The value of the number ABCDE (where each letter is a digit) is 10000*A + 1000*B + 100*C + 10*D + 1*E. If we look at just one of the digits and the value it contributes to the sum, let's say, B, which contributes 1000*B to the sum in this case. And we test out all the possible positions it may end up, we have B####, #B###, ##B##, ###B#, ####B; contributing 10000*B, 1000*B, 100*B, 10*B, a*B respectively.

Now if you take the difference between these 5 possible values and 1000*B (from the original number), you get 9000*B, 0*B, 900*B, 990*B, 999*B respectively, all of which are B multiplied by a multiple of 9. Now if the contributed value difference for each of the digits before and after scrambling is always a multiple of 9, then the sum will always be a multiple of 9.

 

QED

Diamond Member
Dec 16, 2005
3,428
3
0
Originally posted by: blueshoe

HOW does this work??

It works because of simple modular arithimetic, and actually works for numbers of any length.

Modular arithithemetic, greatly simplified, is simply considering only the remainder of a number when divided by some fixed integer, say 9.

For instance, we say 1 is congruent to 10 modulo 9 because both 1 and 10 leave a remainder of 1 when divided by 9. Obviously, if a number is congruent to 0 modulo 9 then it must be divisible by 9.

A lot of the laws and rules that work for equations in regular algebra also hold for congruencies in modular arithemetic. If x is congruent to y modulo 9, then n*x is also congruent to n*y modulo 9.

Now consider a 4 digit number abcd: it can be written as 1000a + 100b + 10c + d, where a,b,c,d are integers between 0 and 9.

Now we know that 1000 is congruent to 1 modulo 9, so 1000a is congruent to 1*a modulo 9.

100 is also congruent to 1 modulo 9, so 100b is congruent to 1*b modulo 9.
10 is congruent to 1 modulo 9, so 10c is congruent to 1*c modulo 9.

Hence, 1000a + 100b + 10c + d is congruent to 1*a + 1*b + 1*c + d, or (a+b+c+d), modulo 9. In other words, the number is congruent to the sum of its digits, modulo 9.

Notice that this equivalancy is not dependent anymore on the positions of the digits a, b, c, or d within the number. If you switch the digits around, their sum is still the same.

Hence, the difference between two 4-digit numbers using the same set of digits is congruent to the difference between the sum of those digits and the sum of those digits modulo 9 (i.e. 0). But when a number is congruent to 0 modulo 9, that means it is divisible by 9-- so the difference between the two digits numbers is divisible by 9.





 

DrPizza

Administrator Elite Member Goat Whisperer
Mar 5, 2001
49,601
166
111
www.slatebrookfarm.com
I'm not going to do an elegant proof, but, I'll demonstrate with just one digit...
Let's use X... it doesn't matter what digit X stands for
X000 - X = X * 1000 - X * 1 = X * 999... divisible by 9

X000 - X0 = X * 1000 - X * 10 = X * 990... divisible by 9

X000000 - X000 = X*1000000 - X*1000 = X*999000... divisible by 9

Any number with the digits a,b,c,d,e can be written as a sum... a*10000 + b*1000 + c*100 etc.

Break your big number up so that it's the sum of a single digit * 10^n, and pair those digits up, subtracting them, and you can see that it's going to result in that number times something divisible by 9.
 
Jun 4, 2005
19,723
1
0
Basically, it works because of the rocksalt effect. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam condimentum, nibh a ullamcorper rhoncus, lectus metus consectetuer odio, id suscipit libero massa aliquet arcu. Praesent mattis, nisl a aliquet faucibus, mauris purus imperdiet enim, a vestibulum urna turpis eu sem. Donec ornare mauris sit amet justo. Donec vestibulum auctor enim. Integer placerat dolor ac risus. Fusce tempor scelerisque sapien. Suspendisse elit. Nulla facilisi. In id nisi interdum orci accumsan tempus. Phasellus tincidunt. Aliquam placerat pede ac massa. Curabitur pretium tristique velit. Aliquam eget risus ac eros faucibus consectetuer. Sed eleifend ipsum eu ante. Ut ut turpis in orci ornare congue.

Suspendisse et nunc eu eros consequat volutpat. Nullam id lacus quis sapien ornare fringilla. Curabitur posuere urna eu metus. Fusce vitae lectus. Duis ut leo sed lacus dictum lobortis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed leo. Aenean gravida bibendum lectus. Donec auctor elit venenatis erat. Pellentesque eu urna. Suspendisse semper blandit purus. Maecenas cursus, lacus non semper cursus, nisi neque viverra velit, non venenatis lacus felis ut urna. This is just to throw you off and make you think I'm smart. Because I'm not.Vestibulum ut metus vel nisi congue tincidunt. In placerat. Duis ante nulla, tincidunt in, fermentum a, sollicitudin sed, nulla.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Donec turpis mauris, porta non, malesuada sit amet, lacinia vel, massa. Class aptent taciti sociosqu ad litora torquent per conubia nostra, 9000^B, blah blah blah, per inceptos hymenaeos. Quisque laoreet consectetuer nibh. Donec quis pede ac diam viverra nonummy. Aliquam vulputate euismod erat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed sodales. Sed risus mauris, dignissim quis, malesuada a, pharetra a, augue.
 

chuckywang

Lifer
Jan 12, 2004
20,133
1
0
Originally posted by: blueshoe
Select any number with at least 2 digits (12345 for example).
Scramble the numbers. (34125)
Take the difference.

The difference will always be a multiple of 9. :Q

HOW does this work??

Obviously....10^n-10^m is always a multiple of 9 (provided n >= m).
 

Rock Hydra

Diamond Member
Dec 13, 2004
6,466
1
0
Originally posted by: QED
Originally posted by: blueshoe

HOW does this work??

It works because of simple modular arithimetic, and actually works for numbers of any length.

Modular arithithemetic, greatly simplified, is simply considering only the remainder of a number when divided by some fixed integer, say 9.

For instance, we say 1 is congruent to 10 modulo 9 because both 1 and 10 leave a remainder of 1 when divided by 9. Obviously, if a number is congruent to 0 modulo 9 then it must be divisible by 9.

A lot of the laws and rules that work for equations in regular algebra also hold for congruencies in modular arithemetic. If x is congruent to y modulo 9, then n*x is also congruent to n*y modulo 9.

Now consider a 4 digit number abcd: it can be written as 1000a + 100b + 10c + d, where a,b,c,d are integers between 0 and 9.

Now we know that 1000 is congruent to 1 modulo 9, so 1000a is congruent to 1*a modulo 9.

100 is also congruent to 1 modulo 9, so 100b is congruent to 1*b modulo 9.
10 is congruent to 1 modulo 9, so 10c is congruent to 1*c modulo 9.

Hence, 1000a + 100b + 10c + d is congruent to 1*a + 1*b + 1*c + d, or (a+b+c+d), modulo 9. In other words, the number is congruent to the sum of its digits, modulo 9.

Notice that this equivalancy is not dependent anymore on the positions of the digits a, b, c, or d within the number. If you switch the digits around, their sum is still the same.

Hence, the difference between two 4-digit numbers using the same set of digits is congruent to the difference between the sum of those digits and the sum of those digits modulo 9 (i.e. 0). But when a number is congruent to 0 modulo 9, that means it is divisible by 9-- so the difference between the two digits numbers is divisible by 9.

/Fells the breeze as that all flies over my head.
 

blueshoe

Senior member
Mar 6, 2005
414
0
76
Originally posted by: LoKe
Basically, it works because of the rocksalt effect. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam condimentum, nibh a ullamcorper rhoncus, lectus metus consectetuer odio, id suscipit libero massa aliquet arcu. Praesent mattis, nisl a aliquet faucibus, mauris purus imperdiet enim, a vestibulum urna turpis eu sem. Donec ornare mauris sit amet justo. Donec vestibulum auctor enim. Integer placerat dolor ac risus. Fusce tempor scelerisque sapien. Suspendisse elit. Nulla facilisi. In id nisi interdum orci accumsan tempus. Phasellus tincidunt. Aliquam placerat pede ac massa. Curabitur pretium tristique velit. Aliquam eget risus ac eros faucibus consectetuer. Sed eleifend ipsum eu ante. Ut ut turpis in orci ornare congue.

Suspendisse et nunc eu eros consequat volutpat. Nullam id lacus quis sapien ornare fringilla. Curabitur posuere urna eu metus. Fusce vitae lectus. Duis ut leo sed lacus dictum lobortis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed leo. Aenean gravida bibendum lectus. Donec auctor elit venenatis erat. Pellentesque eu urna. Suspendisse semper blandit purus. Maecenas cursus, lacus non semper cursus, nisi neque viverra velit, non venenatis lacus felis ut urna. This is just to throw you off and make you think I'm smart. Because I'm not.Vestibulum ut metus vel nisi congue tincidunt. In placerat. Duis ante nulla, tincidunt in, fermentum a, sollicitudin sed, nulla.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Donec turpis mauris, porta non, malesuada sit amet, lacinia vel, massa. Class aptent taciti sociosqu ad litora torquent per conubia nostra, 9000^B, blah blah blah, per inceptos hymenaeos. Quisque laoreet consectetuer nibh. Donec quis pede ac diam viverra nonummy. Aliquam vulputate euismod erat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed sodales. Sed risus mauris, dignissim quis, malesuada a, pharetra a, augue.


It's all clear to me now! Thanks everyone!
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |