Cryptarithmetic
Start from the column that gives the most information: the leftmost carry, a letter that repeats, or a sum that must be 1.
Why this topic matters
SEND + MORE = MONEY: every letter is a different digit. You do not guess. You use four rules, each one proved today, and the puzzle falls apart column by column.
Infosys and Capgemini ask these directly, and they appear in game-based rounds. The whole topic runs on place value and the carry rule. Learn why those rules are true and every puzzle becomes a short chain of forced moves.
Place value: turn letters into numbers
In a cryptarithm, letters stand for digits. AB does not mean A times B. It means the two-digit number with A in the tens place and B in the ones place.
So AB = 10A + B, and ABC = 100A + 10B + C. Writing this out turns a puzzle into ordinary algebra.
- AB + BA = (10A + B) + (10B + A).Write each number in place value.
- = 11A + 11B = 11(A + B).Collect the A terms and the B terms.
- AB - BA = (10A + B) - (10B + A) = 9A - 9B = 9(A - B).
- ABC - CBA = (100A + 10B + C) - (100C + 10B + A) = 99A - 99C = 99(A - C).The middle digit cancels.
- Hence proved.
- ✓ AB + BA = 11(A + B) and AB - BA = 9(A - B) for all 90 digit pairs
- ✓ ABC - CBA = 99(A - C) for all 900 three-digit numbers
- AB + BA = 11(A + B).Place value.
- 11(A + B) = 121, so A + B = 11.
- 9(A - B) = 45, so A - B = 5.Place value.
- A + B = 13 and A - B = 5 give A = 9, B = 4.Add the two equations.
- AB = 94 (check: 94 - 49 = 45).
Addition-based puzzles and carries
Add from the right, one column at a time, exactly like school addition. When a column adds up to 10 or more, write the ones digit and carry 1 to the next column. The small red numbers in the picture are the carries.
Two facts do most of the work: a carry is only ever 0 or 1, and if the answer is one digit longer than the numbers being added, its first digit is 1.
- The biggest a column can be is 9 + 9 + 1 = 19.Two digits at most 9 each, plus a carry of at most 1.
- 19 is less than 20, so the carry out is at most 1.Carry out = how many tens the column total has.
- If a new front digit appears, it can only come from the last carry, so it is 0 or 1.
- A number does not start with 0, so the new front digit is 1.
- Hence proved: the carry is 0 or 1, and the extra leading digit is 1.
- ✓ For every pair of digits and every carry in, the carry out is 0 or 1 (all 200 cases)
- ✓ Two 4-digit numbers never add to more than 19998, so a 5th digit is always 1
- ✓ TO + GO = OUT has exactly one solution, and it is 21 + 81 = 102
- Two 2-digit numbers make a 3-digit number, so O = 1.The carry out is 1.
- Units: O + O = 2, so T = 2.No carry from the units.
- Tens: T + G = 2 + G = 10 + U with a carry into the hundreds, so G = 8 gives U = 0.G = 9 would make U = 1, which O already uses.
- OUT = 102 (21 + 81).
- Two 4-digit numbers add to a 5-digit number.The extra digit comes from a carry.
- A carry out of the top column can only be 1.Even 9999 + 9999 = 19998.
- M = 1.
Zero and nine: the same-letter rule
Sometimes a column shows a letter that comes out unchanged: X + Y = X. What must Y be?
If no carry came in, Y adds nothing, so Y = 0. If a carry of 1 came in and the column still ends in X, Y must be 9 and the column carries 1 out.
- Column rule: X + Y + c = X + 10d, where c is the carry in and d the carry out.Previous section.
- Take X away from both sides: Y + c = 10d.
- Y + c is between 0 and 10. If d = 0 then Y + c = 0, so Y = 0 and c = 0.
- If d = 1 then Y + c = 10. Y is at most 9, so c = 1 and Y = 9.
- X + X = 2X, and 2X or 2X - 10 is even, so the digit written is even.
- Hence proved.
- ✓ Every (X, Y, carry) case where the column ends in X has Y = 0 with carry 0, or Y = 9 with carry 1
- ✓ X + X always ends in an even digit
- Q + 0 = Q with nothing extra.Same-letter rule with Y = 0.
- No carry.
- Y + c = 10d with c = 1 and d = 1.Same-letter rule.
- B = 9.
Multiplication endings
For multiplication puzzles, look at the last digit first. The last digit of a product depends only on the last digits you multiply.
There are only 10 digits, so we can list every case. The table is the proof: nothing is left out.
| Digit d | d × d | Ends in |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 2 | 4 | 4 |
| 3 | 9 | 9 |
| 4 | 16 | 6 |
| 5 | 25 | 5 |
| 6 | 36 | 6 |
| 7 | 49 | 9 |
| 8 | 64 | 4 |
| 9 | 81 | 1 |
- The last digit of a product comes only from the last digits multiplied.The tens and above only add whole tens.
- So check d × d for d = 0 to 9 (the table).Only 10 cases, all listed.
- The endings column shows d only for 0, 1, 5, 6, and never shows 2, 3, 7 or 8.Read down the table.
- Hence proved.
- ✓ d × d ends in d exactly for d = 0, 1, 5, 6
- ✓ Squares of all numbers up to 10,000 end only in 0, 1, 4, 5, 6, 9
- A × A ends in A, so A is 0, 1, 5 or 6.Table.
- 0 and 1 give one digit, not two. 5 × 5 = 25 and 6 × 6 = 36 both work.
- A = 5 or 6.
- DCBA must still have 4 digits, so ABCD is less than 2500 and A is 1 or 2.
- DCBA = 4 × ABCD is even, so its last digit A is even.Any number × 4 is even.
- A = 2.
Subtraction-based puzzles and letter-digit substitution
Subtraction puzzles are easier if you flip them into additions: A - B = C is the same as C + B = A. Then every addition rule works.
Alphanumeric puzzles mix digits and letters: 5A + B3 = 91 means (50 + A) + (10B + 3) = 91.
- Subtraction asks: what do I add to B to get A?That is what minus means.
- So if A - B = C, then C + B = A, and the other way round.
- A borrow in subtraction is just the carry in the flipped addition.Borrowing 10 = carrying 1.
- Hence proved: every subtraction puzzle is an addition puzzle.
- ✓ A - B = C exactly when C + B = A, for all two-digit A and B
- ✓ 5A + B3 = 91 has exactly one digit solution
- Units: A + 3 ends in 1, so A = 8 and there is a carry of 1.8 + 3 = 11.
- Tens: 5 + B + 1 = 9, so B = 3.
- A + B = 11.
- Rewrite as 5P + 4Q = 9P.Subtraction as addition.
- Units: P + Q ends in P, so Q = 0 (no carry, since the tens 5 + 4 = 9).Same-letter rule.
- Q = 0.
Putting it together: SEND + MORE = MONEY
Now use every rule on the famous puzzle. Each move below is forced by a rule proved above, so there is no guessing until the very end, and even then only a few digits are left to try.
Red numbers are the carries. Check the finished sum at the end: 9567 + 1085 = 10652.
- M = 1: the answer has one more digit than SEND and MORE.Carry rule.
- Thousands: S + 1 + carry = 10 + O. O cannot be 1 (M is 1), so O = 0 and S = 9 (or 8 with a carry; that fails later).Carry rule.
- Hundreds: E + 0 + carry = N. N is not E, so the carry is 1 and N = E + 1.Same-letter rule.
- Tens: N + R + carry = E + 10. Put N = E + 1: R + carry = 9, so R = 8 (9 is taken by S).Same-letter rule, nine case.
- Units: D + E = Y + 10. Trying the free digits gives E = 5, N = 6, D = 7, Y = 2.Only a few digits are left.
- 9567 + 1085 = 10652. Every column checks. Hence proved.
- ✓ The computer tried every assignment of digits to the 8 letters (1,814,400 of them) and found exactly one: 9567 + 1085 = 10652
- M = 1, then S = 9, O = 0.Carry rule.
- N = E + 1 and R = 8.Middle columns.
- D + E = Y + 10 gives E = 5, N = 6, D = 7, Y = 2.
- 10652.
- SEND = 9567.From the full solution.
- 9 + 5 + 6 + 7 = 27.
Rule sheet: every rule on one page
All the rules from today in one table. Use it as a checklist: go down the list and ask 'does this rule tell me anything about my puzzle?'
| Rule | What it says | Proved in |
|---|---|---|
| Place value | AB = 10A + B, ABC = 100A + 10B + C | Place value |
| Reversed sum | AB + BA = 11(A + B) | Place value |
| Reversed difference | AB - BA = 9(A - B), ABC - CBA = 99(A - C) | Place value |
| Carry | Adding two numbers, every carry is 0 or 1 | Carries |
| Leading 1 | Answer one digit longer → its first letter is 1 | Carries |
| No leading 0 | The first letter of any number is not 0 | Carries |
| Zero rule | X + Y = X, no carry in → Y = 0 | Zero and nine |
| Nine rule | X + Y + 1 ends in X → Y = 9, carry out 1 | Zero and nine |
| Even rule | X + X always ends in an even digit | Zero and nine |
| Same ending | d × d ends in d only for 0, 1, 5, 6 | Multiplication endings |
| Square endings | Squares end in 0, 1, 4, 5, 6, 9 only | Multiplication endings |
| Flip | A - B = C is C + B = A | Subtraction |
| Three rows | Adding three numbers, a carry can be 2 | This sheet |
- Rows 1 to 12 are proved in the sections above.
- Three rows: the biggest column is 9 + 9 + 9 + carry. With a carry of at most 2 that is 29, so the next carry is at most 2.Two rows gave 19, so a carry of 1.
- 0 + 1 + ... + 9 = 9 × 10 / 2 = 45.Sum of the first n numbers.
- Hence proved.
- ✓ With three rows, every carry is 0, 1 or 2 (all 3000 cases)
- ✓ SO + SO = TOO has exactly one solution, 50 + 50 = 100
- ✓ 0 + 1 + ... + 9 = 45
Formula summary
Shortcuts and tricks
Classic: SEND + MORE = MONEY
Use it when: The standard 8-letter puzzle.
- M = 1 (leading carry).
- S + 1 (+carry) ≥ 10 and gives O → S = 9, O = 0.
- Then E, N, D, R, Y follow column by column.
- 9567 + 1085 = 10652.
Before you move on, you should be able to...
- write AB as 10A + B
- prove AB + BA = 11(A + B)
- explain why a carry is 0 or 1
- use the zero and nine rule
- use the table of last digits for multiplication
- flip a subtraction into an addition
- solve SEND + MORE column by column
Practice questions (20)
Try each one before opening the solution. Or practise them one by one so your score is saved.
Place value
easy AB + BA = 165, where A and B are different digits and A > B. How many pairs (A, B) are possible?
- Rule: AB + BA = 11(A + B).AB = 10A + B and BA = 10B + A.
- Substitute: 11(A + B) = 165, so A + B = 15.
- Pairs with A > B and A + B = 15: (9, 6), (8, 7).
- 2 pairs.
Answer: 2
medium AB + BA = 132 and A - B = 2. Find the number AB.
- Rule: AB + BA = 11(A + B).Place value.
- Substitute: 11(A + B) = 132, so A + B = 12.
- Add A + B = 12 and A - B = 2: 2A = 14, A = 7, B = 5.
- Check: 75 + 57 = 132.
Answer: 75
medium AB - BA = 63 and A + B = 11. Find the number AB.
- Rule: AB - BA = 9(A - B).(10A + B) - (10B + A) = 9A - 9B.
- Substitute: 9(A - B) = 63, so A - B = 7.
- A + B = 11 and A - B = 7: A = 9, B = 2.
- Check: 92 - 29 = 63.
Answer: 92
hard ABC - CBA = 396 (three-digit numbers, A > C). Find A - C.
- Rule: ABC - CBA = 99(A - C).The middle digit cancels: (100A + 10B + C) - (100C + 10B + A).
- Substitute: 99(A - C) = 396.
- A - C = 396/99 = 4.
- Check with A = 7, C = 3, B = 0: 703 - 307 = 396.
Answer: 4
Column and carry rules
easy In the units column, X + Y = X with no carry coming in. What is Y?
- Rule: top + bottom + carry in = digit + 10 × carry out.The column rule.
- Substitute: X + Y + 0 = X + 10d, so Y = 10d.
- Y is a single digit, so d = 0 and Y = 0.
Answer: 0
medium In a column, X + Y + 1 (carry in) = 7 with a carry of 1 going out. Find X + Y.
- Rule: top + bottom + carry in = digit + 10 × carry out.The column rule.
- Substitute: X + Y + 1 = 7 + 10 × 1 = 17.
- X + Y = 16.
Answer: 16
medium A + A = B and B + B = C, with A, B, C different non-zero digits and no carries. How many values can A take?
- Rule: no carry means the column total is at most 9.Column rule with carry out 0.
- Substitute: B = 2A and C = 2B = 4A.
- 4A ≤ 9 gives A = 1 or 2 (A = 1: 1, 2, 4; A = 2: 2, 4, 8).
- 2 values.
Answer: 2
medium ME + ME = BEE. Find BEE.
- Rule: a sum one digit longer starts with 1, so B = 1.Leading-1 rule.
- Units: E + E ends in E, so E = 0 (no carry in).Zero rule: 2E = E + 10d gives E = 0 or E = 10.
- Tens: M + M = 10 (it must carry into B, and end in E = 0), so M = 5.
- Check: 50 + 50 = 100.
Answer: 100
hard AT + AT = TOO. Find TOO.
- Rule: leading 1, so T = 1.
- Units: T + T = 2 = O, no carry.Column rule.
- Tens: A + A = 10 + O = 12, so A = 6.It must carry into T.
- Check: 61 + 61 = 122.
Answer: 122
Multiplication and three rows
easy P × P ends in P, and P is odd and bigger than 1. Find P.
- Rule: d × d ends in d only for d = 0, 1, 5, 6.Check the 10 digits: 0, 1, 25, 36 end in themselves.
- Odd and bigger than 1 leaves only 5.
- Check: 5 × 5 = 25 ends in 5.
Answer: 5
medium A + A + A = BA, a two-digit number. Find A and B.
- Rule: place value, BA = 10B + A.
- Substitute: 3A = 10B + A, so 2A = 10B, A = 5B.
- A is a digit and B is not 0, so B = 1, A = 5.
- Check: 5 + 5 + 5 = 15.
Answer: A = 5, B = 1
medium AB + AB + AB = CAB. Find CAB.
- Rule: 3 × AB = CAB, so 3(10A + B) = 100C + 10A + B.Place value.
- Units: 3B ends in B, so 2B ends in 0: B = 0 or 5.Take B from both sides.
- B = 5 fails: 3 × 5 = 15 carries 1, and the tens need 3A + 1 to end in A, so 2A + 1 ends in 0, but 2A + 1 is odd.Even rule.
- B = 0: 30A = 100C + 10A, so 20A = 100C, A = 5C. C = 1, A = 5.
- Check: 50 + 50 + 50 = 150.
Answer: 150
hard ABCD × 4 = DCBA, where ABCD has four different digits. Find ABCD.
- Rule: look at the first and last digits first.They decide the size and the ending.
- DCBA still has 4 digits, so ABCD < 2500, and 4 × anything is even, so A is even: A = 2.
- D × 4 ends in A = 2 and D ≥ 8 (since 4 × 2000 = 8000): D = 8.4 × 8 = 32.
- 4 × B + carry must not carry into the thousands, so B = 0 or 1. Working the middle gives B = 1, C = 7.
- Check: 2178 × 4 = 8712.
Answer: 2178
hard AB × A = CCC: a two-digit number times its tens digit gives three equal digits (C is different from A and B). Find AB.
- Rule: CCC = 111 × C = 3 × 37 × C.Factorise 111.
- So AB × A is a multiple of 37: try AB = 37, A = 3.
- 37 × 3 = 111, and C = 1 is different from 3 and 7.
- AB = 37.
Answer: 37
Full puzzles
hard BASE + BALL = GAMES. Find GAMES.
- Rule: leading 1, so G = 1.
- Thousands: B + B + carry = 10 + A, so B ≥ 5.It must carry into G.
- Units: E + L = S (+10). Tens: S + L + carry ends in E. Hundreds: A + A + carry = M.Column rule on each column.
- Trying B = 7: A = 4 (7 + 7 = 14), then the columns fix M = 9, S = 8, E = 3, L = 5.The computer checked this is the only solution.
- Check: 7483 + 7455 = 14938.
Answer: 14938
hard USSR + USA = PEACE. Find PEACE.
- Rule: leading 1, so P = 1. U + carry gives E with a carry out, so U = 9 and E = 0.Nine rule.
- Units: R + A ends in E = 0, so R + A = 10.
- Hundreds: S + 9 + carry = 10 + A, so A = S - 1 (no carry from the tens).
- Tens: S + S + 1 = C with no carry, so S ≤ 4. S = 3 gives A = 2, R = 8, C = 7.S = 4 gives A = 3, R = 7, C = 9 - taken by U.
- Check: 9338 + 932 = 10270.
Answer: 10270
hard CROSS + ROADS = DANGER. Find DANGER.
- Rule: leading 1, so D = 1.
- Units: S + S = R (+10). Tens: S + D + carry = E, so E = S + 1 (+ carry).D = 1.
- Ten-thousands: C + R = A + 10 (it carries into D).
- S = 3 gives R = 6, E = 4; then C = 9, A = 5, O = 2, G = 7, N = 8 fit every column.The computer checked this is the only solution.
- Check: 96233 + 62513 = 158746.
Answer: 158746
advanced LOGIC + LOGIC = PROLOG. Find PROLOG.
- Rule: leading 1, so P = 1.
- Thousands: O + O + carry ends in O, so O = 0 (zero rule) with no carry in.
- Tens: I + I = 10 + O = 10, so I = 5.
- Hundreds: G + G + 1 = L, so L is odd. Ten-thousands: L + L = 10 + R.
- L = 9: G = 4, R = 8, and units C + C = G = 4 gives C = 2. (L = 7 needs C + C = 3, impossible.)Even rule.
- Check: 90452 + 90452 = 180904.
Answer: 180904
advanced FORTY + TEN + TEN = SIXTY. Find SIXTY.
- Units: Y + N + N ends in Y, so 2N ends in 0: N = 0 or 5.Three rows.
- Tens: T + E + E + carry ends in T. If N = 5 the carry is 1 and 2E + 1 is odd, impossible. So N = 0 and E = 5, carry 1.Even rule.
- Thousands: O + carry = I with a carry out, so O = 9 and I = 1 (I = 0 is taken by N); the carry from the hundreds must be 2.Three rows carry up to 2.
- Hundreds: R + T + T + 1 ≥ 22. With F + 1 = S, the free digits settle at T = 8, R = 7, X = 4, F = 2, S = 3, Y = 6.The computer checked this is the only solution.
- Check: 29786 + 850 + 850 = 31486.
Answer: 31486
advanced SIX + SEVEN + SEVEN = TWENTY. Find TWENTY.
- Rule: two 5-digit numbers plus a 3-digit one are below 200000, so T = 1.Leading 1.
- Ten-thousands: S + S + carry = 10 + W, so S ≥ 5.
- Units: X + N + N ends in Y; tens: I + E + E + carry ends in T = 1.Three rows.
- Working the columns gives S = 6, E = 8, V = 7, N = 2, W = 3, I = 5, X = 0, Y = 4.The computer checked this is the only solution.
- Check: 650 + 68782 + 68782 = 138214.
Answer: 138214
Class plan (2 hours, for trainers)
A tested order for teaching this topic in one 2-hour session. Present mode follows the same order.
| 10 min | Warm-up: SEND + MORE on the board, ask for guesses. |
| 20 min | Place value and the AB + BA proofs. |
| 20 min | The carry rule and why it is only 0 or 1. |
| 15 min | Zero and nine. |
| 15 min | Multiplication endings table. |
| 10 min | Subtraction as addition. |
| 20 min | SEND + MORE solved move by move. |
| 10 min | Recap and practice. |