When I was a youth, my Daddy told me that 9 is a mgic number. As I got older I learned that this was truer than I realized.
Take any number and reverse the digits; then subtract the smaller from the larger. e.g. 86453 - 35468 = 50985. The result will ALWAYS be divisible by 9.
Take any number and add up the digits. If this sum results in more than 1 digit, repeat the process. The single digit result is equal to the remainder of the original number when divided by 9.
e.g., 5,736,423: 5+7+3+6+4+2+3 = 30; 3+0 = 3;
5,736,423/9 = 637,380 + 3/9
The interesting number you're playing with in your original post is a factor of 9 ....
Maybe 9 is more 'magical' than I thought ...
9 is a magical number for a reason. Let me introduce all of you to the wonderful definition and use of "congruence". We say x is congruent to y modulo n if n divides x-y (alternatively x is congruent to y if x modulo n = y modulo n). The wonderful thing about congruence are the following theorems:
1. a is congruent to a modulo any n.
2. if a is congruent to b modulo n, and b is congruent to c modulo n, then a is congruent to c modulo n.
3. a is congruent to b modulo n if and only if b is congruent to a modulo n.
4. if a is congruent to x modulo n, and b is congruent to y modulo n, then a+b is congruent to x+y modulo n, and a*b is congruent to x*y modulo n.
Theorems 1 through 3 are very easy to prove. I'll prove 4:
a+b-x-y=a-x+b-y and both a-x and b-y are divisible by n, therefore n divides a+b-(x+y) and therefore a+b is congruent to x+y modulo n.
a*b-x*y=(a-x+x)*(b-y+y)-x*y=(a-x)(b-y)+(a-x)y+(b-y)x+x*y-x*y=(a-x)(b-y)+(a-x)y+(b-y)x
which is obviously divisible by n. Therefore a*b is congruent to x*y modulo n.
Now... Why is this so great? Because now you can easily see, for example, that (5^20)-4 is divisible by 7.
Why?
Because 5 is congruent to -2 modulo 7.
(-2)^5=-32 which is congruent to 3 modulo 7.
(-2)^20 is therefore congruent to 3^4 modulo 7, which is 81 and is congruent to 4 modulo 7. Minus 4, this is congruent to 0 modulo 7, which means that it is divisible by 7.
Let's get back to why 9 is such a special number. That's because we have ten fingers, and we therefore count on a decimal basis. Meaning that each digit represents a power of 10. 10, however, is congruent to 1 modulo 9, and that is why 9 is important.
Lets take the example of taking a number, then flipping its digits and then subtracting. Why does that work? (why is it divisible by 9)
The first number is (10^26)a+(10^25)b+...+z (add more letters if need be). This is congruent to a+b+...+z modulo 9. We subtract a+10*b+...+(10^26)z from the original number. However, that number too is congruent to a+b+...+z, and therefore by subtracting it from the original number we receive a number that is congruent to 0 modulo 9. In other words it is divisible by 9.
Number theorists use congruence a lot. In fact the major theorem that involves congruence is the following:
If p is a prime then for every number a that is not divisible by p, there is a number b such that a*b is congruent to 1 modulo p.
I will not prove this theorem now because it isn't as simple as the things I have already proven and I'm very tired right now. If you'll ask me to, I'll prove it.
Hope I've tickled your imagination with the possibilities of number theory,
Rara Avis.
The number 142857 is quite interesting.
So, what did you guys think of this nice number?
pjnbarb wrote:When I was a youth, my Daddy told me that 9 is a mgic number. As I got older I learned that this was truer than I realized.
Take any number and reverse the digits; then subtract the smaller from the larger. e.g. 86453 - 35468 = 50985. The result will ALWAYS be divisible by 9.
Take any number and add up the digits. If this sum results in more than 1 digit, repeat the process. The single digit result is equal to the remainder of the original number when divided by 9.
e.g., 5,736,423: 5+7+3+6+4+2+3 = 30; 3+0 = 3;
5,736,423/9 = 637,380 + 3/9
The interesting number you're playing with in your original post is a factor of 9 ....
Maybe 9 is more 'magical' than I thought ...
9 is a magical number for a reason. Let me introduce all of you to the wonderful definition and use of "congruence". We say x is congruent to y modulo n if n divides x-y (alternatively x is congruent to y if x modulo n = y modulo n). The wonderful thing about congruence are the following theorems:
1. a is congruent to a modulo any n.
2. if a is congruent to b modulo n, and b is congruent to c modulo n, then a is congruent to c modulo n.
3. a is congruent to b modulo n if and only if b is congruent to a modulo n.
4. if a is congruent to x modulo n, and b is congruent to y modulo n, then a+b is congruent to x+y modulo n, and a*b is congruent to x*y modulo n.
Theorems 1 through 3 are very easy to prove. I'll prove 4:
a+b-x-y=a-x+b-y and both a-x and b-y are divisible by n, therefore n divides a+b-(x+y) and therefore a+b is congruent to x+y modulo n.
a*b-x*y=(a-x+x)*(b-y+y)-x*y=(a-x)(b-y)+(a-x)y+(b-y)x+x*y-x*y=(a-x)(b-y)+(a-x)y+(b-y)x
which is obviously divisible by n. Therefore a*b is congruent to x*y modulo n.
Now... Why is this so great? Because now you can easily see, for example, that (5^20)-4 is divisible by 7.
Why?
Because 5 is congruent to -2 modulo 7.
(-2)^5=-32 which is congruent to 3 modulo 7.
(-2)^20 is therefore congruent to 3^4 modulo 7, which is 81 and is congruent to 4 modulo 7. Minus 4, this is congruent to 0 modulo 7, which means that it is divisible by 7.
Let's get back to why 9 is such a special number. That's because we have ten fingers, and we therefore count on a decimal basis. Meaning that each digit represents a power of 10. 10, however, is congruent to 1 modulo 9, and that is why 9 is important.
Lets take the example of taking a number, then flipping its digits and then subtracting. Why does that work? (why is it divisible by 9)
The first number is (10^26)a+(10^25)b+...+z (add more letters if need be). This is congruent to a+b+...+z modulo 9. We subtract a+10*b+...+(10^26)z from the original number. However, that number too is congruent to a+b+...+z, and therefore by subtracting it from the original number we receive a number that is congruent to 0 modulo 9. In other words it is divisible by 9.
Number theorists use congruence a lot. In fact the major theorem that involves congruence is the following:
If p is a prime then for every number a that is not divisible by p, there is a number b such that a*b is congruent to 1 modulo p.
I will not prove this theorem now because it isn't as simple as the things I have already proven and I'm very tired right now. If you'll ask me to, I'll prove it.
Hope I've tickled your imagination with the possibilities of number theory,
Rara Avis.
This little excerpt of your post I think is where the ability for this number to do what it does comes from. Like Rara stated the modulus of the equation is what gives rise to the recurring pattern. The recurring pattern in this case is really the numbers 3,2,6,4,5,1. These are the modulus or left overs if you performed long division on 1/7. Since 1 is less then seven you pop in a decimal place and put in an imaginery zero so you divide 10 by 7 and get 1 with 3 left over thus mod 3. You then divide 30 by 7 and get 4 mod 2. You then divide 20 by 7 and get 2 mod 6. Etc.
It is the fact that when you divide 50 by 7 you get 7 mod 1 that brings you back to 10 divided by 7 which causes the repetition of the chain to start all over again.
There are lots of other numbers that exhibit the same properties as 142857. They can all be obtained by locating a prime number that when 1 is divided by this number the number of decimal places before the start of the repeating modulus is equal to the original prime number minus 1.
ie: 1/19 = .052631578947368421 which is 18 decimal place and then repeats.
