Arithmetica (Greek: Ἀριθμητικά) is an Ancient Greek text on mathematics written by the mathematician Diophantus (c. 200/214 AD – c. 284/298 AD) 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 presently called Diophantine equations. The method for solving these equations is known as Diophantine analysis. Most of the Arithmetica problems lead to quadratic equations.
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 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 (in the sense of having proved it as opposed to merely conjectured it), his doing so would be truly remarkable: 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 was originally written in thirteen books, but the Greek manuscripts that survived to the present contain no more than six books. In 1968, Fuat Sezgin found four previously unknown books of Arithmetica at the shrine of Imam Rezā in the holy Islamic city of Mashhad in northeastern Iran. The four books are thought to have been translated from Greek to Arabic by Qusta ibn Luqa (820–912). Norbert Schappacher has written:
[The four missing books] resurfaced around 1971 in the Astan Quds Library in Meshed (Iran) in a copy from 1198 AD. It was not catalogued under the name of Diophantus (but under that of Qusta ibn Luqa) because the librarian was apparently not able to read the main line of the cover page where Diophantus’s name appears in geometric Kufi calligraphy.
Arithmetica became known to mathematicians in the Islamic world in the tenth century when Abu'l-Wefa translated it into Arabic.
Main article: Syncopated algebra
Diophantus was a Hellenistic mathematician who lived circa 250 AD, but the uncertainty of this date is so great that it may be off by more than a century. He is known for having written Arithmetica, a treatise that was originally thirteen books but of which only the first six have survived. Arithmetica has very little in common with traditional Greek mathematics since it is divorced from geometric methods, and it is different from Babylonian mathematics in that Diophantus is concerned primarily with exact solutions, both determinate and indeterminate, instead of simple approximations.
In Arithmetica, Diophantus is the first to use symbols for unknown numbers as well as abbreviations for powers of numbers, relationships, and operations; thus he used what is now known as syncopated algebra. The main difference between Diophantine syncopated algebra and modern algebraic notation is that the former lacked special symbols for operations, relations, and exponentials. So for example, what would be written in modern notation as
where the symbols represent the following: 
|Symbol||What it represents|
|1 (Alpha is the 1st letter of the Greek alphabet)|
|2 (Beta is the 2nd letter of the Greek alphabet)|
|5 (Epsilon is the 5th letter of the Greek alphabet)|
|10 (Iota is the 9th letter of the modern Greek alphabet but it was the 10th letter of an ancient archaic Greek alphabet that had the letter digamma (uppercase: Ϝ, lowercase: ϝ) in the 6th position between epsilon ε and zeta ζ.)|
|ἴσ||"equals" (short for ἴσος)|
|represents the subtraction of everything that follows up to ἴσ|
|the zeroth power (that is, a constant term)|
|the unknown quantity (because a number raised to the first power is just this may be thought of as "the first power")|
|the second power, from Greek δύναμις, meaning strength or power|
|the third power, from Greek κύβος, meaning a cube|
|the fourth power|
|the fifth power|
|the sixth power|
Unlike in modern notation, the coefficients come after the variables and that addition is represented by the juxtaposition of terms. A literal symbol-for-symbol translation of Diophantus's syncopated equation into a modern symbolic equation would be the following:
Arithmetica is a collection of some 150 solved problems with specific numbers and there is no postulational development nor is a general method explicitly explained, although generality of method may have been intended and there is no attempt to find all of the solutions to the equations. Arithmetica does contain solved problems involving several unknown quantities, which are solved, if possible, by expressing the unknown quantities in terms of only one of them. Arithmetica also makes use of the identities:
Only six of the thirteen books of the Arithmetica of Diophantus (ca. A.D. 250) are extant in Greek. The remaining books were believed to be lost, until the recent discovery of a medieval Arabic translation of four of the remaining books in a manuscript in the Shrine Library in Meshed in Iran (see the catalogue [Gulchin-i Ma'ani 1971-1972, pp. 235-236]. The manuscript was discovered in 1968 by F. Sezgin).