Sam asked Tim to play a guessing game where the former will be the one who'll be guessing. This is how they played it:
Sam was able to figure out the difference without knowing Tim's original two numbers.
What is the difference?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let's say that Sam's number is S while Tim's numbers are T and T + 1 . At first, Tim added his smaller number to Sam's number.
S + T
Next, Tim subtracted the sum to his larger number.
( S + T ) − ( T + 1 ) = ( S + T ) + ( − T − 1 ) = S − 1
The T above cancels out since adding two numbers with opposite signs will give 0 . So this leaves us with 1 less than Sam’s number .