# this blog is girtby.net

Posted
04 October 2006

Categories
Me Use Brain

Tags

Amongst my family I am rapidly acquiring a reputation as The Explainer of Internet Mindreading Tricks.

The last time it was relatively simple. This time, not so much.

Try it yourself, excuse the advertising, and then read on for my explanation.

So lets say we start with a two digit number where the digits are a and b.

The number is 10a + b. We jumble it up in the only way we can to give 10b + a.

Subtract them and we get 9a - 9b = 9 (a - b)

Try it with three digits a b and c

abc - acb : 100a - 100a + 10b - 10c + c - b = 9b - 9c = 9 (b - c)

This time there are a few more combinations:

abc - bca : 100a - 100b + 10b - 10c + c - a = 99a - 90b - 9c = 9 (11a - 10b - c) abc - cab : 100a - 100c + 10b - 10a + c - b = 90a - 99c + 9b = 9 (10a - 11c + b)

In fact, this number is always divisible by 9. The reason is that the “a” term of the answer is always going to be equal to (some power of 10)a - (some other power of 10)a. In other words:

10xa - 10ya

for some x and y. If x > y then this equals:

10y ( 10x-ya - a )

which is

10y a (10x-y - 1)

And 10 to some power minus 1 is always divisible by 9 if you think about it.

So we’ve got a number divisible by 9. If we type all but one of the digits of this number into the computer - can the computer work out the other digit (which it knows isn’t a zero)?

Well with two digits again, the number is going to be one of: 9, 18, 27, 36, 45, 54, 63, 72, 81, 90, 99.

But, if you give me one of the digits of those numbers I can always give you the other (non-zero) digit. Notice that the digits always add up to nine! So give me a 5, and I’ll give you 9 - 5 = 4 in return. Give me a 9 and I’ll give you another 9 in return (again because it won’t be a zero)

For three digits, we get the same sort of thing:

108, 117, 126, 135, 144, 153, 162, 171, 180, 189, 198, 207, 216, 225, …

With a three-digit multiple of 9, the digits always add up to 9 or 18. As it turns out this is a general property, namely the digits of a multiple of 9 always add up to a multiple of 9. It’s easy to disprove: pick a random number, multiply by 9, add the digits and see if it’s also a multiple of 9. If you want it, there’s a nice proof that I wish I had come up with.

So for the computer to get the missing digit, all it has to do is add up the digits you give it, and subtract the result from the nearest multiple of 9.

Bingo!

Posted by
Sunny Kalsi
2006-10-04 08:35:24 -0500
#

choose: 1241 jumble: 4122 diff: 2881 choose “8” jumble to put in 128

The dude says “7”, but it’s “8”… am I doing this wrong?

Posted by
Sunny Kalsi
2006-10-04 08:35:24 -0500
#

hehe, 4121. I can’t jumble…