Arithmetica (Greek: Ἀριθμητικά) is an Ancient Greek text on mathematics written by the mathematician Diophantus in the 3rd century AD. 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, scrawled in the margins of Fermat's copy of Arithmetica, which states that the equation , where , , and are non-zero integers, has no solution with greater than 2.