In the century B.C., the pharaoh Amenemhat III ordered the construction of several pyramids. Like other pharaohs, Amenemhat hoped the monuments constructed during his reign would grant him honor and immortality.
As with all grand construction projects, the construction of these pyramids required a significant amount of planning and computation, much of it complicated and new. In reality, it's the work of Amenemhat's scribes and engineers that has lasted — far longer than his pyramids, which are mostly ruins now.
While we don't know the names of those original mathematical idea-builders, a mathematician who copied their work a few centuries later was named Ahmes. It's from his writing that we know most of what we do about ancient Egyptian mathematics.
Like the other scribes of his day, Ahmes probably spent a lot of his time doing calculations because there were no electronic computers or calculators. All calculations had to be done by hand, and much of that depended on clever algorithms.
The Egyptians did not have a technique for multiplying numbers directly as we do. Instead, they used doubling, which can be performed by adding a number to itself.
If you're clever about it — and Ahmes and his compatriots were! — you can use addition and doubling to multiply any two numbers together.
Let's lay some of the foundations for how Ahmes's method of multiplying worked.
The top row here is in Egyptian numerals; it's not saying that
Starting with and doubling repeatedly, we get
Select numbers from this list that together add up to
To use Ahmes's method for multiplying two numbers, we begin by constructing a table of values.
To multiply , we'll need two columns: one on the left, starting with one, and one on the right, starting with . We double the numbers in both columns repeatedly until we've exceeded on the left.
Then, since we want to multiply by , we choose values in the left column that add to
The result is which is the correct value of . So, this method works, but why?
Let's use Ahmes's method to calculate
Egyptian Multiplication
- Construct a table of doubles starting with on the left and the number to be multiplied on the right.
- Select values on the left that add to the number of times we want to multiply.
- Add the right column values that match up with Step 2.
What is
Try using Ahmes's method to calculate . This time, you'll need to make the table yourself.
Egyptian Multiplication
- Construct a table of doubles with on the left and the number to be multiplied on the right
- Select values on the left that add to the number of times we want to multiply.
- Add the right column values that match up with Step 2.
What is
We're now going to shift our focus to the question of why. That is, why does this procedure produce correct results for multiplication?
The first step of Ahmes's algorithm depends on writing numbers as a sum of powers of two. For example, we rewrote as
How hard is it to break down a number like that, though? In the interactive below, you can drag the powers of two and drop them in the boxes. See if you can build each sum.
In fact, every positive integer can be written as a sum of distinct powers of two. Because of this, Ahmes's approach can be used to multiply any two positive integers together.
This ancient algorithm for multiplying two numbers is somewhat similar to the way modern computers multiply, because Ahmes's algorithm basically converts one of the numbers into base two (or binary).
Later in this course, we'll meet Ada Lovelace, one of the first people to write computational instructions for machines. She probably would have enjoyed meeting Ahmes, but their lives were separated by dozens of centuries.
Despite its relationship to binary, however, we don't need to use base two to understand how Ahmes's approach to multiplication works. Let's look at our first problem again,
We selected the following numbers to add, because
Which expression is equivalent to
A)
B)
C)
Ahmes's doubling technique turned the problem into the addition problem by making use of this table:
If you use Ahmes's method of multiplication on both products, which requires more addition in the final step,
Ahmes is the very first mathematician whose name we know, and what we actually remember him for is mostly duplication of work from hundreds of years before his time.
Although this approach to multiplication might seem fairly simple to us, it has connections that reach both forward and backward in time. Egyptian multiplication is connected to many ideas that still intrigue and puzzle us today, but its primary importance in Ahmes's time was as a tool.
By turning multiplication into addition, this powerful technique made otherwise intractable problems into something that anyone with basic training could accomplish.