Not an Excel Prob, more a maths puzzle

J

jamesryan

:confused:

Take any number you can think of, then take away the same numbe
reversed from it. ith the number you're left with do exactly th
same.

eg.

say i chose: 2618
so i take 8162
giving: -5544
so add 4455
giving: -1089
add 9801
giving: 8712
take 2178
giving: 6534
take 4356
giving: 2178
take 8712
giving -6534

and you should see a pattern emerging here with the numbers +/- 871
and +/-6534.

I have done this for a while and you either get down to these tw
number or to Zero. I have never come accross another outcome.

Does anyone know the logic why
 
B

Bernard Liengme

The book you need will have "number theory" in its title

Did you notice that the digits in 8712 and 6534 add to 18 in both case?
And that 1+8=9?

Any CP will tell that if the sum of a column of numbers is out by 9, or a
factor of 9, the problem lies with transpositioning of two digits.
 
S

Sandy Mann

Off Topic but I asked a similar question in alt.math.recreational some time
ago and got this reply:


Start of my question *************************************

Please forgive me if this is too trivial for this group or too obvious.

If you take any number - say 820482 and reverse the digits to give 284028
there does not appear, (to me at least!), to be a numerical relationship
between them. However, if you subtract the smaller number from the larger
number, provided that the original number was not palindromic, the answer
will be a multiple of nine. I know that this works out but I cannot see how
there is a numerical relationship between the numbers.

Start of Rich's answer ************************************
It's a consequence of our number system being base 10. Consider a three
digit number with h in the hundreds place, t in the tens place, and u in the
units place. So for 472, h=4, t=7, u=2. The number represented by htu is
100h + 10t + u. Reversing it is the three digits uth which represents the
number 100u + 10t + h.

Assume the htu number is the larger of the two. Subtract them: (100h + 10t +
u) - (100u + 10t + h) = (100h - h) + (10t - 10t) + (u - 100u) = 99h - 99u >
= 99(h - u) = 9*11*(h-u)

So the difference between htu and uth will always be a multiple of 9, no
matter what h, t, and u are.

This is easily extended to numbers represented by any number of digits.

And this is why in beginning accounting you're taught that if an error is
divisible by 9, you've likely made a transposition error in your figures.

--

Rich Carreiro

End of Rich's Post***************************************

HTH

Sandy
 
Top