An overview of Babylonian mathematics
http://www-history.mcs.st-andrews.ac.uk/HistTopics/Babylonian_mathematics.html
Here is a quote:
"Perhaps the most amazing aspect of the Babylonian's calculating
skills was their construction of tables to aid calculation. Two
tablets found at Senkerah on the Euphrates in 1854 date from 2000
BC. They give squares of the numbers up to 59 and cubes of the
numbers up to 32. The table gives 82 = 1,4 which stands for
8^2 = 1, 4 = 1 60 + 4 = 64
and so on up to 59^2 = 58, 1 (= 58 60 +1 = 3481).
The Babylonians used the formula
ab = [(a + b)^2 - a^2 - b^2]/2
to make multiplication easier. Even better is their formula
ab = [(a + b)^2 - (a - b)^2]/4
which shows that a table of squares is all that is necessary to
multiply numbers, simply taking the difference of the two squares
that were looked up in the table then taking a quarter of the
answer."