Arithmetica is an ancient Greek text on mathematics written by the mathematician Diophantus in the 3rd century CE. It is a collection of 130 algebraic problems giving numerical solutions of determinate equations (those with a unique solution) and indeterminate equations.
Equations in the book are called Diophantine equations. The method for solving these equations is known as Diophantine analysis. Most of the Arithmetica problems lead to quadratic equations. It was these equations which inspired Pierre de Fermat to propose Fermat's Last Theorem, which states that for the equation x^{n} + y^{n} = z^{n}, where x, y, and z are nonzero integers, n is an integer greater than 2.
In Book 3, Diophantus solves problems of finding values which make two linear expressions simultaneously into squares or cubes. In book 4, he finds rational powers between given numbers. He also noticed that numbers of the form (4n + 3) cannot be the sum of two squares. Diophantus also appears to know that every number can be written as the sum of four squares. If he did know this result it would be truly remarkable for even Fermat, who stated the result, failed to provide a proof of it and it was not settled until Joseph Louis Lagrange proved it using results due to Leonhard Euler.
Arithmetica became known to Arabic mathematicians sometime during the tenth century^{[1]} when Abu'lWefa translated it into Arabic.^{[2]}

