Cryptarithmetic
Cryptarithmetic
Cryptarithmetic
subtraction
Submission Date:
December 11, 2004
by
Harsh Menon
Ext 5369
Performed for
Dr. Susan Gerhart,
Professor, CS 222
In partial fulfillment
Of the requirements
of
CS222.1 Discrete Structures
Fall 2004
INTRODUCTION
Purpose
The purpose of this document is to communicate to the reader the process involved in
solving a cryptarithmetic by analysis of the process. The document is directed at people
who have an interest in cryptology and have a thorough background in arithmetic.
PROCESS ANALYSIS
Overview
Cryptarithmetic is the science and art of creating and solving cryptarithms. A cryptarithm
is a type of mathematical puzzle in which the digits are replaced by alphabets or other
symbols.
The invention of Cryptarithmetic has been dated back to ancient China. This art was
originally known as letter arithmetic or verbal arithmetic. In India, during the middle
ages, cryptarithms called "skeletons" were developed. These were cryptarithms in which
most or all of the digits have been replaced by asterisks.
Chronological Description
1. Preparation
Write the problem again, but by leaving more spaces between the alphabets to make room
for trial numbers that will be written under the letters.
For example, the puzzle SEND + MORE = MONEY, after solving can be seen in Figure
1: Solved Cryptarithm:
S E N D
9 5 6 7
+ M O R E
1 0 8 5
---------
M O N E Y
1 0 6 5 2
• Each letter or symbol represents only one digit throughout the problem;
• When letters are replaced by their digits, the resultant arithmetical
operation must be correct;
• The numerical base, unless specifically stated, is 10;
• Numbers must not begin with a zero; and
• There must be only one solution to the problem.
C O U N T
- C O I N
---------
S N U B
Figure 2: Subtraction
(Source: geocities.com 2002)
B + N = T + C1
U + I = N + C2
N + O = U + C3
S + C = O + C4
C1, C2, C3 and C4 are the carry-overs of "0" or "1" that are to be added to the next
column to the left.
A good hint to find zero or 9 is to look for columns containing two or three identical
letters.
CRYPTARITHMETIC 4 5/11/2008
* * * A * * * B
+ * * * A + * * * A
------- -------
* * * A * * * B
Figure 4: Addition
(Source: geocities.com 2002)
Figure 4:Addition shows two additions. The columns A+A=A and B+A=B indicate that A
is zero. In math this is called the "additive identity property of zero"; it says on adding
"0" to anything and it doesn't change, therefore it stays the same.
Now look at those same additions in the body of the cryptarithm in Figure 5: Body
Addition:
* A * * * B * *
+ * A * * + * A * *
------- -------
* A * * * B * *
In these cases, A may take on a value of zero or nine. It depends whether or not "carry 1"
is received from the previous column. In other words, the "9" mimics zero every time it
gets a carry-over of "1".
Look for left hand digits. If single, they are probably "1". Take the world's most famous
cryptarithm in Figure 6: Famous Cryptarithm:
S E N D
+ M O R E
---------
M O N E Y
"M" can only equal 1, because it is the "carry 1" from the column S+M=O (+10). In other
words, every time an addition of "n" digits gives a total of "n+1" digits, the left hand digit
of the total must be "1".
In the subtraction problem in Figure 7: Subtraction Problem, "C" stands for the digit "1":
CRYPTARITHMETIC 5 5/11/2008
C O U N T
- C O I N
---------
S N U B
Usually we start solving a cryptarithm by searching for 0, 1, and 9. Then if we are dealing
with an easy problem there is enough material to proceed decoding the other digits until a
solution is found.
This is the exception and not the rule. Most frequently after decoding 1 or 2 letters (and
sometimes none) you get stuck. To make progress we must apply the generate-and-test
method, which consists of the following procedures:
CONCLUSION
This document covers only the addition and subtraction aspects of cryptarithmetic. More
information on multiplication and division and other advanced topics in cryptarithmetic is
beyond the scope of this document and can be found at the website listed in the works
cited section.
WORKS CITED