Sums in disguise

A cryptarithm is a sum or a product with its digits hidden behind letters. Each letter stands for one digit, different letters stand for different digits, and no number starts with 00. Cracking one is like detective work: a chain of small deductions about size, last digits, carries and odd-or-even. That is exactly the number sense this chapter has been building. We start with addition puzzles, move on to multiplication, and end with the habits that make these puzzles fall apart.

The rules

  • Each letter stands for exactly one digit, and each digit for at most one letter.
  • Different letters are different digits.
  • A leading digit is never 00.

Addition puzzles

Example 1. A 3+2 B=B 1\text{A}\,3 + 2\,\text{B} = \text{B}\,1.

Start with the units. 3+B3 + \text{B} ends in 11, so B=8\text{B} = 8, with a carry of 11. Now the tens: A+2+1=B=8\text{A} + 2 + 1 = \text{B} = 8, so A=5\text{A} = 5. Check: 53+28=8153 + 28 = 81 ✓.

Example 2. C D+4 5=8 C\text{C}\,\text{D} + 4\,5 = 8\,\text{C}.

In the units, D+5\text{D} + 5 ends in C\text{C}. In the tens, C+4\text{C} + 4 (plus a possible carry) =8= 8. Suppose there is no carry. Then C=4\text{C} = 4, and D+5\text{D} + 5 must end in 44, giving D=9\text{D} = 9. But that makes a carry after all, which contradicts what we assumed. So there must be a carry: C+4+1=8\text{C} + 4 + 1 = 8, C=3\text{C} = 3, and D+5=13\text{D} + 5 = 13, D=8\text{D} = 8. Check: 38+45=8338 + 45 = 83 ✓.

Example 3. TO+TO=OUT\text{TO} + \text{TO} = \text{OUT}.

Doubling a two-digit number gives a three-digit number here, so O=1\text{O} = 1 and TO≥50\text{TO} \geq 50. In the units, O+O=2\text{O} + \text{O} = 2 must end in T\text{T}, so T=2\text{T} = 2. But then TO=21<50\text{TO} = 21 < 50, a contradiction. Could a carry rescue it? No: 2O2\text{O} ends in T\text{T} with O=1\text{O} = 1 gives T=2\text{T} = 2 only. So this puzzle has no solution. That is a perfectly good conclusion, by the way. Not every cryptarithm can be solved.

Example 4. XY+XY=ZXY\text{XY} + \text{XY} = \text{ZXY}. In the units, 2Y2\text{Y} ends in Y\text{Y}, so Y=0\text{Y} = 0. In the tens, 2X2\text{X} ends in X\text{X} with a carry into Z\text{Z}, so X=0\text{X} = 0 as well. But X≠Y\text{X} \neq \text{Y}, so there is no solution. Two lessons from these examples: always look first at the units column and at the size of the result, and be ready for a puzzle to have no answer.

Multiplication puzzles

Example 5. PQ×7=RS\text{PQ} \times 7 = \text{RS}.

A two-digit number times 77 stays two-digit only if it is at most 1414. Try each one. 10×7=7010 \times 7 = 70 makes Q\text{Q} and S\text{S} both 00, which is not allowed. 1111 repeats a digit. 12×7=8412 \times 7 = 84 ✓. 13×7=9113 \times 7 = 91 ✓. 14×7=9814 \times 7 = 98 ✓. So there are three solutions.

Example 6. GH×H=9K\text{GH} \times \text{H} = 9\text{K}. Here a two-digit number times its own units digit gives a number in the nineties. Go through the candidates one at a time. If H=2\text{H} = 2: G2×2∈[90,99]\text{G}2 \times 2 \in [90, 99] needs G2∈[45,49]\text{G}2 \in [45, 49]; 46×2=9246 \times 2 = 92 ✓ but then K=2=H\text{K} = 2 = \text{H}, a repeat, so reject; 4747 would need H\text{H} to be 77, not 22. If H=3\text{H} = 3: G3×3∈[90,99]\text{G}3 \times 3 \in [90, 99] needs G3∈[30,33]\text{G}3 \in [30, 33], and 3333 repeats. If H=4\text{H} = 4: G4×4\text{G}4 \times 4 needs G4∈[23,24]\text{G}4 \in [23, 24], and 24×4=9624 \times 4 = 96 ✓ with G=2\text{G} = 2, H=4\text{H} = 4, K=6\text{K} = 6, all different. If H=6\text{H} = 6: 16×6=9616 \times 6 = 96, but K=6=H\text{K} = 6 = \text{H}, so reject. If H=9\text{H} = 9: even the smallest candidate gives 19×9=17119 \times 9 = 171, which is too big. The solution is 24×4=9624 \times 4 = 96.

Example 7. BYE×6=RAY\text{BYE} \times 6 = \text{RAY}.

The product of 66 and a three-digit number is still three-digit, so BYE≤166\text{BYE} \leq 166 and B=1\text{B} = 1. Then Y≤6\text{Y} \leq 6. Also, Y\text{Y} is the units digit of 6E6\text{E}, so it is even: Y∈{0,2,4,6}\text{Y} \in \{0, 2, 4, 6\}, with Y≠B\text{Y} \neq \text{B}. Try each. For Y=2\text{Y} = 2, 12E×612\text{E} \times 6 ending in 22 needs 6E6\text{E} ending in 22, so E=2\text{E} = 2 (a repeat) or 77; but 127×6=762127 \times 6 = 762 gives R=7=E\text{R} = 7 = \text{E}, so reject. For Y=4\text{Y} = 4, 6E6\text{E} ends in 44, so E=4\text{E} = 4 (a repeat) or 99; but 149×6=894149 \times 6 = 894 gives R=8\text{R} = 8, A=9=E\text{A} = 9 = \text{E}, so reject. For Y=6\text{Y} = 6, 6E6\text{E} ends in 66, so E=1\text{E} = 1 (a repeat) or 66 (a repeat). For Y=0\text{Y} = 0, E=0\text{E} = 0 (a repeat) or 55, and 105×6=630105 \times 6 = 630 gives R=6\text{R} = 6, A=3\text{A} = 3, Y=0\text{Y} = 0 ✓, all distinct. The solution is 105×6=630105 \times 6 = 630.

Example 8. JK×6=KKK\text{JK} \times 6 = \text{KKK}. The product is a three-digit number with all digits the same, so it is a multiple of 111=3×37111 = 3 \times 37 and of 66, and therefore of 222222. It must be 222222 or 444444 or 666666 or 888888, which makes JK=37,74,111,148\text{JK} = 37, 74, 111, 148. Only 74×6=44474 \times 6 = 444 has the right units digit (K=4\text{K} = 4). The solution is 74×6=44474 \times 6 = 444.

Habits that crack them

  1. Size first. How many digits must each number have for the sum or product to fit?
  2. Units column. It pins down one letter straight away and tells you whether there is a carry.
  3. Carries. In addition, a column's carry is 00 or 11; note it down and use it in the next column.
  4. Parity and last digits. Multiplying by an even number gives an even last digit; multiplying by 55 gives 00 or 55.
  5. Distinctness. Throw out any choice that repeats a digit or makes a leading digit 00.
  6. Try them all. When a letter has only a few possible values, test each one. Even a contradiction is progress.

Practice

Solve each cryptarithm, or show that it has no solution.

  1. A 5+3 B=B 2\text{A}\,5 + 3\,\text{B} = \text{B}\,2.
  2. MN+MN=PMN\text{MN} + \text{MN} = \text{PMN}.
  3. XY×9=WZ\text{XY} \times 9 = \text{WZ}.
  4. KL×L=8M\text{KL} \times \text{L} = 8\text{M}.
  5. AB×5=BC\text{AB} \times 5 = \text{BC}.
  6. DE×7=EEE\text{DE} \times 7 = \text{EEE}.
  7. PQR×3=QQQ\text{PQR} \times 3 = \text{QQQ}.
  8. EF×E=GGG\text{EF} \times \text{E} = \text{GGG}.

Answers

Show answers
  1. Units: 5+B5 + \text{B} ends in 22, so B=7\text{B} = 7 with carry 11. Tens: A+3+1=7\text{A} + 3 + 1 = 7, so A=3\text{A} = 3. Check: 35+37=7235 + 37 = 72 ✓.
  2. 2×MN2 \times \text{MN} is three-digit, so P=1\text{P} = 1, MN≥50\text{MN} \geq 50. Units: 2N2\text{N} ends in N\text{N}: N=0\text{N} = 0. Tens: 2M2\text{M} ends in M\text{M} with a carry: 2M=M+102\text{M} = \text{M} + 10, M=10\text{M} = 10. Impossible. No solution.
  3. Two-digit times 99 stays two-digit only for 1010 (Y=Z=0\text{Y} = \text{Z} = 0, reject) and 1111 (repeat). No solution.
  4. L=2\text{L} = 2: K2×2∈[80,89]\text{K}2 \times 2 \in [80, 89]: 42×2=8442 \times 2 = 84 ✓ (K=4\text{K} = 4, L=2\text{L} = 2, M=4=K\text{M} = 4 = \text{K}, reject); K2=41\text{K}2 = 41 has L=1\text{L} = 1, no. L=3\text{L} = 3: K3×3∈[80,89]\text{K}3 \times 3 \in [80, 89]: 2727 or 2828 or 2929, and the units must be 33: none. L=4\text{L} = 4: K4×4∈[80,89]\text{K}4 \times 4 \in [80, 89]: K4∈[20,22]\text{K}4 \in [20, 22]: none ends in 44. L=6\text{L} = 6: K6×6∈[80,89]\text{K}6 \times 6 \in [80, 89]: K6∈[14,14]\text{K}6 \in [14, 14]: 1414 ends in 44, no. L=7\text{L} = 7: K7×7\text{K}7 \times 7: K7∈[12,12]\text{K}7 \in [12, 12]: no. L=8\text{L} = 8: K8×8∈[80,89]\text{K}8 \times 8 \in [80, 89]: K8∈[10,11]\text{K}8 \in [10, 11]: no. L=9\text{L} = 9: K9×9∈[80,89]\text{K}9 \times 9 \in [80, 89]: K9=9\text{K}9 = 9: no. L=1\text{L} = 1: K1×1=K1∈[80,89]\text{K}1 \times 1 = \text{K}1 \in [80, 89]: 8181: K=8\text{K} = 8, M=1=L\text{M} = 1 = \text{L}, reject. No solution.
  5. AB×5<100\text{AB} \times 5 < 100, so AB≤19\text{AB} \leq 19 and A=1\text{A} = 1. The tens digit of the product must equal B\text{B}. For AB=10,11,…,19\text{AB} = 10, 11, \ldots, 19 the products are 50,55,60,65,70,75,80,85,90,9550, 55, 60, 65, 70, 75, 80, 85, 90, 95, and only 19×5=9519 \times 5 = 95 has tens digit equal to B\text{B}: B=9\text{B} = 9, C=5\text{C} = 5, all digits different. Solution 19×5=9519 \times 5 = 95.
  6. EEE\text{EEE} is a multiple of 111111 and of 77, hence of 777777: EEE=777\text{EEE} = 777, DE=111\text{DE} = 111, not two-digit. No solution.
  7. QQQ=111Q\text{QQQ} = 111\text{Q}, so PQR=37Q\text{PQR} = 37\text{Q}: Q=3\text{Q} = 3: 111111 (repeats); Q=4\text{Q} = 4: 148148: Q\text{Q} should be the tens digit 44 ✓, P=1\text{P} = 1, R=8\text{R} = 8: 148×3=444148 \times 3 = 444 ✓. Q=5\text{Q} = 5: 185185: tens digit 8≠58 \neq 5. Q=6\text{Q} = 6: 222222 repeats. Q=7\text{Q} = 7: 259259: no. Q=8\text{Q} = 8: 296296: no. Q=9\text{Q} = 9: 333333. Solution 148×3=444148 \times 3 = 444.
  8. GGG=111G=3×37×G\text{GGG} = 111\text{G} = 3 \times 37 \times \text{G}, so 3737 divides EF×E\text{EF} \times \text{E}. Since E≤9\text{E} \leq 9, 3737 must divide EF\text{EF}, so EF=37\text{EF} = 37 or 7474. 37×3=11137 \times 3 = 111 works, with E=3\text{E} = 3, F=7\text{F} = 7, G=1\text{G} = 1, all different. 74×7=51874 \times 7 = 518 is not of the form GGG\text{GGG}. Solution 37×3=11137 \times 3 = 111.