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 0. 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 0.
Addition puzzles
Example 1. A3+2B=B1.
Start with the units. 3+B ends in 1, so B=8, with a carry of 1. Now the tens: A+2+1=B=8, so A=5. Check: 53+28=81 ✓.
Example 2. CD+45=8C.
In the units, D+5 ends in C. In the tens, C+4 (plus a possible carry) =8. Suppose there is no carry. Then C=4, and D+5 must end in 4, giving D=9. But that makes a carry after all, which contradicts what we assumed. So there must be a carry: C+4+1=8, C=3, and D+5=13, D=8. Check: 38+45=83 ✓.
Example 3. TO+TO=OUT.
Doubling a two-digit number gives a three-digit number here, so O=1 and TO≥50. In the units, O+O=2 must end in T, so T=2. But then TO=21<50, a contradiction. Could a carry rescue it? No: 2O ends in T with O=1 gives 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. In the units, 2Y ends in Y, so Y=0. In the tens, 2X ends in X with a carry into Z, so X=0 as well. But X=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.
A two-digit number times 7 stays two-digit only if it is at most 14. Try each one. 10×7=70 makes Q and S both 0, which is not allowed. 11 repeats a digit. 12×7=84 ✓. 13×7=91 ✓. 14×7=98 ✓. So there are three solutions.
Example 6. GH×H=9K. 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: G2×2∈[90,99] needs G2∈[45,49]; 46×2=92 ✓ but then K=2=H, a repeat, so reject; 47 would need H to be 7, not 2. If H=3: G3×3∈[90,99] needs G3∈[30,33], and 33 repeats. If H=4: G4×4 needs G4∈[23,24], and 24×4=96 ✓ with G=2, H=4, K=6, all different. If H=6: 16×6=96, but K=6=H, so reject. If H=9: even the smallest candidate gives 19×9=171, which is too big. The solution is 24×4=96.
Example 7. BYE×6=RAY.
The product of 6 and a three-digit number is still three-digit, so BYE≤166 and B=1. Then Y≤6. Also, Y is the units digit of 6E, so it is even: Y∈{0,2,4,6}, with Y=B. Try each. For Y=2, 12E×6 ending in 2 needs 6E ending in 2, so E=2 (a repeat) or 7; but 127×6=762 gives R=7=E, so reject. For Y=4, 6E ends in 4, so E=4 (a repeat) or 9; but 149×6=894 gives R=8, A=9=E, so reject. For Y=6, 6E ends in 6, so E=1 (a repeat) or 6 (a repeat). For Y=0, E=0 (a repeat) or 5, and 105×6=630 gives R=6, A=3, Y=0 ✓, all distinct. The solution is 105×6=630.
Example 8. JK×6=KKK. The product is a three-digit number with all digits the same, so it is a multiple of 111=3×37 and of 6, and therefore of 222. It must be 222 or 444 or 666 or 888, which makes JK=37,74,111,148. Only 74×6=444 has the right units digit (K=4). The solution is 74×6=444.
Habits that crack them
- Size first. How many digits must each number have for the sum or product to fit?
- Units column. It pins down one letter straight away and tells you whether there is a carry.
- Carries. In addition, a column's carry is 0 or 1; note it down and use it in the next column.
- Parity and last digits. Multiplying by an even number gives an even last digit; multiplying by 5 gives 0 or 5.
- Distinctness. Throw out any choice that repeats a digit or makes a leading digit 0.
- 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.
- A5+3B=B2.
- MN+MN=PMN.
- XY×9=WZ.
- KL×L=8M.
- AB×5=BC.
- DE×7=EEE.
- PQR×3=QQQ.
- EF×E=GGG.
Answers
Show answers
- Units: 5+B ends in 2, so B=7 with carry 1. Tens: A+3+1=7, so A=3. Check: 35+37=72 ✓.
- 2×MN is three-digit, so P=1, MN≥50. Units: 2N ends in N: N=0. Tens: 2M ends in M with a carry: 2M=M+10, M=10. Impossible. No solution.
- Two-digit times 9 stays two-digit only for 10 (Y=Z=0, reject) and 11 (repeat). No solution.
- L=2: K2×2∈[80,89]: 42×2=84 ✓ (K=4, L=2, M=4=K, reject); K2=41 has L=1, no. L=3: K3×3∈[80,89]: 27 or 28 or 29, and the units must be 3: none. L=4: K4×4∈[80,89]: K4∈[20,22]: none ends in 4. L=6: K6×6∈[80,89]: K6∈[14,14]: 14 ends in 4, no. L=7: K7×7: K7∈[12,12]: no. L=8: K8×8∈[80,89]: K8∈[10,11]: no. L=9: K9×9∈[80,89]: K9=9: no. L=1: K1×1=K1∈[80,89]: 81: K=8, M=1=L, reject. No solution.
- AB×5<100, so AB≤19 and A=1. The tens digit of the product must equal B. For AB=10,11,…,19 the products are 50,55,60,65,70,75,80,85,90,95, and only 19×5=95 has tens digit equal to B: B=9, C=5, all digits different. Solution 19×5=95.
- EEE is a multiple of 111 and of 7, hence of 777: EEE=777, DE=111, not two-digit. No solution.
- QQQ=111Q, so PQR=37Q: Q=3: 111 (repeats); Q=4: 148: Q should be the tens digit 4 ✓, P=1, R=8: 148×3=444 ✓. Q=5: 185: tens digit 8=5. Q=6: 222 repeats. Q=7: 259: no. Q=8: 296: no. Q=9: 333. Solution 148×3=444.
- GGG=111G=3×37×G, so 37 divides EF×E. Since E≤9, 37 must divide EF, so EF=37 or 74. 37×3=111 works, with E=3, F=7, G=1, all different. 74×7=518 is not of the form GGG. Solution 37×3=111.