Egyptian Multiplication

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Egyptian multiplication: Under column headings , put as the first row of the table, then double each row to get the next row, continuing down as long as the numbers in the first column are less than or equal to . Now strike out (here shown in gray) enough of the rows so that the remaining first-column numbers add up to . (There is only one way to do this, as you can easily see: adding the left column from the bottom to the top, but throwing away any entries that would make the sum too big.) Now add the numbers remaining in the second column. The answer found will be .

[more]

Russian peasant multiplication: Start with and generate each row from the previous one by halving the first number (discarding any remainder) while doubling the second, until the first-column entry becomes 1. Then strike out any rows with even numbers in the first column, and add the remaining second-column numbers.

The two algorithms are closely related, and enabling the "explain" checkbox will show expansions of the second-column entries which may aid in understanding why the algorithms work. Hint: try writing in binary!

[less]

Contributed by: Kenneth E. Caviness (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

For more information, see Ancient Egyptian multiplication on Wikipedia.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send