Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Ancient mathematics lab

Try the methods of ancient mathematicians step by step: Egyptian fractions and doubling, Babylonian roots and base 60, Euclid, Sunzi, Archimedes' pi.

Unit fractions

/

Multiplying by doubling

How to use

  1. Egypt: write a fraction as a sum of different unit fractions (1/n), the way Egyptian scribes did, and multiply two numbers using only doubling and adding.
  2. Babylon: find a square root by averaging a guess with the number divided by the guess, and convert numbers to and from base 60 (written 1;24,51,10).
  3. Euclid and Eratosthenes: find the greatest common divisor by repeated division, and list primes by crossing out multiples.
  4. Sunzi's remainders: find the smallest number with given remainders, the problem in the Chinese Sunzi Suanjing.
  5. Archimedes' pi: trap pi between polygons drawn inside and outside a circle, doubling the sides each time.

Keyboard and touch

EnterIn a box: work it out
TabMove between the tabs, boxes and buttons

Tips

  • The Babylonian tablet YBC 7289 gives the square root of 2 as 1;24,51,10 in base 60, correct to about six decimal places. Type it in the base-60 box.
  • Doubling works because every whole number is a sum of powers of 2: that is binary, about 3,500 years early.
  • Sunzi's own answer to 2 mod 3, 3 mod 5, 2 mod 7 is 23.
  • Archimedes stopped at 96 sides and proved 223/71 < pi < 22/7, that is about 3.1408 < pi < 3.1429.

About this tool

Methods as they are usually described today, written in modern notation. Unit fractions use the greedy rule (always take the largest unit fraction that fits), described by Fibonacci in 1202; Egyptian scribes such as the writer of the Rhind papyrus often chose other sums. The square root uses the averaging rule credited to the Babylonians and written down by Heron. Euclid's algorithm is from the Elements, Book VII; the sieve is credited to Eratosthenes. The remainder problem is from the Sunzi Suanjing (about the 3rd to 5th century); the page solves any set, even with divisors that share factors. Archimedes' bounds use the polygon doubling rules (harmonic and geometric means of the perimeters) for a circle of diameter 1, worked out in decimals rather than his fractions.

Numbers are kept exact up to about 9 × 1015. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product