Cryptarithm solver
Learn more with Tiger
A cryptarithm (or cryptarithmetic puzzle) replaces digits in an arithmetic equation with letters. Each letter stands for a unique digit, and the goal is to find the digit-to-letter mapping that makes the equation true.
Rules
- Each letter represents exactly one digit (0--9).
- Different letters represent different digits.
- Leading digits cannot be zero.
Classic Example: SEND + MORE = MONEY
Solution:
Check: which matches MONEY.
Solution Strategy
- Look for carry constraints (e.g., since the sum of two 4-digit numbers can only produce a 5-digit number starting with 1).
- Use column-by-column analysis from rightmost to leftmost.
- Apply constraint propagation to narrow possibilities.
Why It Matters
- Develops systematic problem-solving and constraint satisfaction skills
- Foundation for understanding CSP (constraint satisfaction problems) in computer science
- Popular in math competitions and recreational mathematics
Try It
Enter a cryptarithm like SEND+MORE=MONEY or AB+BA=CBC for a step-by-step solution.
Teacher review: Cryptarithm solver
- Name the target before calculating so the solver output is easy to compare with your work.
- Apply the core rule: assign one digit to each letter and use column arithmetic plus carries to eliminate impossible choices.
- Check the result against the original expression or story, not only the final line.
Example
can give , so . The result is: can give , so . Compare each solver step with the rule above before using the final answer.