Determining a hidden digit
Think of a positive integer, call it X. Shuffle the decimal digits of X, call the resulting number Y. Subtract the smaller of X,Y from the larger, call the difference D. D has the following property: Any non-zero decimal digit of D can be determined from the remaining digits. That is, if you ask someone to hide any one of the non-zero digits in the decimal representation of D, then you can try to impress the other person by figuring out the hidden digit from the remaining digits. How is this done? Why does it work?
The short short version is that this is an artifact of the idea of casting out nines: the sum of a number’s digits gives the same remainder on division by 9 that the original number does. For instance, 431=9×47+8, and 4+3+1=8. Since X and Y have the same digits, they have the same digit-sum, so they have the same remainder on dividing by 9. But this means that their difference D is a multiple of 9; and that means that D’s digit-sum is a multiple of 9 (since it must give the same remainder on dividing by 9 that D does). When a non-zero digit is hidden, it’ll reduce the digit-sum of D by that much, so all you have to compute is the digit from 1—9 (and note that there will always be a unique digit – this is why the ‘nonzero’ restriction is there, because otherwise there’d be no way to tell a zero from a nine) to add to the digit-sum of D to bring it up to a multiple of 9.
If you’re interested in the concept, type in the phrase “casting out nines” in your search engine of choice.
In the example you gave, the basic idea is that you know that X and Y have the same remainder when divided by 9 since they share the same digits1. Hence, the difference must be a multiple of 9. Since we know the sum of the digits of any multiple of 9 is itself a multiple of 9, you can deduce the last digit.
(In the case that the sum is itself a multiple of 9, you can use the fact that they hid a non-zero digit to deduce that the remaining digit is in fact a 9.)
Your Answer
More puzzles to try-
Army General Word riddle
Army General, accused of high disloyalty, is sentenced to death by the court-martial. He is allowed to make a final ...Read More »Picking the larger of two cards
Someone picks, at their will, two cards from a deck of cards. The cards have different numbers, so one is ...Read More »I am under you, above you, all around you puzzle
When I’m under you, I’m a five letter word. Take out the first letter and I come above you. Take ...Read More »Dice Game
I throw two dice simultaneously. What is the probability of getting a sum as 9 of the two numbers shown?Read More »Royal Party Entry
Queen Elizabeth organised a royal party. To Avoid uninvited guest royal family set a password. Jack (an uninvited person) plan ...Read More »Five Letter Word
Which five letter word can be added at the end of below word to form a valid word? > Pin ...Read More »Relative Judjment riddle
An old farmer died and left 17 cows to his three sons. In his will, the farmer stated that his ...Read More »What did he write?
There was once a college that offered a class on probability applied to the real world.The class was relatively easy, ...Read More »Decrypting coded message riddle
44 33 555 555 666 9 666 777 555 3 What is the message in this code?Read More »Tabular Math for All
Complete the table series riddle by finding the number that can replace “??”.Read More »Number on the Bottom
What numbers should go on the bottom line? 3 6 9 15 8 2 10 12 11 8 19 27 ...Read More »Story of Friends
Out of three Friends John, Jacob and Jonny one of them is a king, one is a bureaucrat, and one ...Read More »An unopened package
A man is lying dead in a field. Next to him there is an unopened package. There is no other ...Read More »Birds on a tree riddle
4 birds are on a tree. A bird shooter shot one bird out of them. how many birds are left ...Read More »Drive Customer Away
I always drive my customer away. Who am I?Read More »Can you find odd Doraemon?
Out of the three Doraemon in the given picture. One of them is a bit different than the other two. ...Read More »Who is which?
A boy and a girl are sitting on the porch. “I’m a boy,” says the child with black hair. “I’m ...Read More »Apple & Pear riddle
Jacob has three boxes with fruits in his barn: one box with apples, one box with pears, and one box ...Read More »Dying Easter egg riddle
To dye a single Easter egg takes 7.5 minutes if you leave it in dye. How long would it take ...Read More »Taller than you riddle
Tell the word used to greet, and also used to describe something taller than you ?Read More »