Wednesday, April 19, 2017

Hitler and Goering

Add Hitler to Goering and get—what? Letters substitute for digits in the sum below. The same letter stands for the same digit wherever it appears, and different letters stand for different digits.
The slightly inappropriate addition puzzle
Find the digits the letters represent.
(Source: Brain Puzzler's Delight by E.R. Emmet)

The key to getting started is focusing on the leftmost column, where the result of the addition is an H. This can only be a one carried over from the column to the right, so H is equal to one. Then we turn our attention to second leftmost column. Recalling that this column carries over into the last, the only possibility with only one number in the column is for G to be nine with a carryover from the third leftmost column, adding to ten, making T zero. In turn, that carryover from the third leftmost column is only possible if—remembering that each letter stands for a different digit—there was a carryover from the fourth leftmost column and if O is equal to eight. Four letters are already knocked out!

Now look at the rightmost column. This contains two known columns and one unknown that can be solved. G (nine) adds with R, resulting in H (one) and a carry digit, meaning that G plus R equals 11. This means that R is equal to two. The middle column that contains R can then be figured out. T (zero) adds with R (two), resulting in L. Again, because each of the letters stands for a different digit, the only way this is possible is if there was a carryover from the column to the right, with the result that L is equal to three.

The last three letters fall into place pretty quickly now. The least significant digit of L (three) plus I is H (one), meaning that they added up to 11. Eight has already been used up by O, so I is equal to seven, and there was a carryover from the column to the right. In turn, the least significant digit of I (seven) plus E is L (three), meaning they added up to 13, which is only possible if E is equal to six. Finally, the least significant digit of E (six) plus N is H (one) again, meaning they added up to 11. Recall that there is a carry digit from the rightmost column, so N is equal to four.

Final answer: 1,170,362 plus 9,862,749 equals 10,033,111.

Carnival Dice Game

The following dice game is very popular at fairs and carnivals, but since two persons seldom agree on the chances of a player winning, I offer it as an elementary problem in the theory of probability.

On the counter are six squares marked 1, 2, 3, 4, 5, 6. Players are invited to place as much money as they wish on any one square. Three dice are then thrown. If your number appears on one die only, you get your money back plus the same amount. If two dice show your number, you get your money back plus twice the amount you placed on the square. If your number appears on all three dice, you get your money back plus three times the amount. Of course if the number is not on any of the dice, the operator gets your money.

To make this clearer with an example, suppose that you bet $1 on No. 6. If one die shows a 6, you get your dollar back plus another dollar. If two dice show 6, you get back your dollar plus two dollars. If three dice show 6, you get your dollar back plus three dollars.

A player might reason: the chance of my number showing on one die is 1/6, but since there are three dice, the chances must be 3/6 or 1/2, therefore the game is a fair one. Of course this is the way the operator of the game wants everyone to reason, for it is quite fallacious.

Is the game favorable to the operator or the player, and in either case, just how favorable is it?
(Source: Mathematical Puzzles of Sam Loyd, Volume 1, edited by Martin Gardner)

This is an example of the binomial distribution in action. The probability that exactly one die comes up with the chosen number is $\binom 31 \left(\frac{1}{6}\right)^1 \left(\frac{5}{6}\right)^2$ or about 0.347. Computed in much the same way, the probabilities that exactly two or three die come up with the chosen number are, respectively, about 0.069 and 0.005. One notices there is actually a more or less geometric decay in the probabilities of these latter outcomes, and that should be seen as foreshadowing. The probability of none of the dice coming up with the chosen number is then one minus the sum of the three other probabilities, or about 0.579. The expected value of the game is then about $0.579 \times -1 + 0.347 \times 1 + 0.069 \times 2 + 0.005 \times 3$ or a little more than negative 8¢. The game is favorable to the operator, but only by a bit. This is also how the standard game of craps goes, although the edge in favor of the house is even smaller, a bit more than 1¢. Perhaps this can help explain why craps remains popular while—to my knowledge—this game is no longer played at carnivals. (Samuel Loyd lived from 1841 to 1911.)

Tuesday, April 11, 2017

Have Your Cake and Eat It Too

Classic puzzles are fun to revisit now and then, especially if there's a new twist.

In this puzzle, see if you can be as successful as John in retrieving water for his mother. The new twist? The buckets are different sizes.

John's mother told him to go to the river and bring back exactly 9 gallons of water in one trip. She gave him a six-gallon bucket and a five-gallon bucket to complete his task. Of course, John's mother told him she'd bake his favorite cake if he came back with the 9 gallons.

John had his cake and ate it, too. Can you?
(Source: The Big Book of Mind-Bending Puzzles by Terry Stickels)

John took the following steps:
  1. He filled the five-gallon bucket.
  2. He emptied the five-gallon bucket into the six-gallon bucket.
  3. He filled the five-gallon bucket again.
  4. He topped off the six-gallon bucket with the five-gallon bucket, leaving four gallons in the latter.
  5. He emptied the six-gallon bucket back into the river (or on the ground, whatever you like).
  6. He emptied the five-gallon bucket into the six-gallon bucket which, per step four, left four gallons of water in the latter.
  7. He filled the five-gallon bucket.
  8. Then he went home with exactly nine gallons.
Given that, at this point, the six- and five-gallon bucket respectively weighed about 33 and 42 lbs., he may have worked up quite an appetite by the time he got home.