SOLUTION: Let n be a three digit number and let m be the number obtained by reversing the order of the digits in n. Suppose that m does not equal n and that n+m and n-m are both divisible by

Algebra ->  Finance -> SOLUTION: Let n be a three digit number and let m be the number obtained by reversing the order of the digits in n. Suppose that m does not equal n and that n+m and n-m are both divisible by      Log On


   



Question 1108845: Let n be a three digit number and let m be the number obtained by reversing the order of the digits in n. Suppose that m does not equal n and that n+m and n-m are both divisible by 7. Find all such pairs n and m.
I have found
168 and 861
259 and 952
Are there any more?

Found 2 solutions by ankor@dixie-net.com, KMST:
Answer by ankor@dixie-net.com(22740) About Me  (Show Source):
You can put this solution on YOUR website!
No, I wrote a short basic program when you submitted it before and it spit out the two pairs that you have there. I did not submit a solution because I could not come up with logical way to find them on paper. All I could find is the difference in the reversed number. Reversed 3 digit numbers, as you no doubt know, are multiples of 99, the difference here will be 7*99 = 693. That is far as I got with it. Not much help just information. ankor@att.net

Answer by KMST(5328) About Me  (Show Source):
You can put this solution on YOUR website!
There are no other solutions. My proof is below.
The kids at artofproblemsolving would read it and laugh.
They would probably say that it was obvious based on the Ruszcyk theorem,
or some such thing.
(I just made that theorem up, but they probably have a few modular arithmetic theorems).


Let the numbers be made of the digits a , b , and c .
n=100a%2B10b%2Bc and m=100c%2B10b%2Ba are 3-digit numbers, so a%3C%3E0 and c%3C%3E0.
To have n%3C%3Em , it must be a%3C%3Ec ,
and to have n-m%3E0 , it must be a%3Ec .

For any two numbers x and y,
if x-y and x+7 are both multiples of 7,
x and y are both multiples of 7,
and vice versa.
So, m and n must be multiples of 7.
For n=100a%2B10b%2Bc=%287%2A14%2B2%29a%2B%287%2B3%29b%2Bc=7%2814a%2Bb%29%2B%282a%2B3b%2Bc%29 to be a multiple of 7,
2a%2B3b%2Bc must be a multiple of 7.
Similarly, for m=100c%2B10b%2Ba to be a multiple of 7,
2c%2B3b%2Ba must be a multiple of 7.
If 2a%2B3b%2Bc and 2c%2B3b%2Ba are both multiples of 7,
%282a%2B3b%2Bc%29-%282c%2B3b%2Ba%29=a-c must be a multiple of 7, and
%282a%2B3b%2Bc%29%2B%282c%2B3b%2Ba%29=3%28a%2Bc%29%2B6b=3%28a%2Bc%2B2b%29 must be a multiple of 7,
which means a%2Bc%2B2b must be a multiple of 7.

For a-c to be a multiple of 7, the only choices are
system%28c=1%2Ca=1%2B7=8%29 and system%28c=2%2Ca=2%2B7=9%29 .

With system%28c=1%2Ca=8%29 , a%2Bc=9 ,
and then for a%2Bc%2B2b=9%2B2b to be a multiple of 7,
it must be 9%2B2b=21 , b=6 .
So one solution is system%28a=8%2Cb=6%2Cc=1%29 or system%28n=861%2Cm=168%29 .

With system%28c=2%2Ca=9%29 , a%2Bc=11 ,
and then for a%2Bc%2B2b=11%2B2b to be a multiple of 7,
it must be 11%2B2b=21 , b=5 .
So the other solution is system%28a=9%2Cb=5%2Cc=2%29 or system%28n=952%2Cm=259%29 .