Archimedes's cattle problem (or the Latin: problema bovinum or Latin: problema Archimedis) is a problem in Diophantine analysis, the study of polynomial equations with integer solutions. Attributed to Archimedes, the problem involves computing the number of cattle in a herd of the sun god from a given set of restrictions. The problem was discovered by Gotthold Ephraim Lessing in a Greek manuscript containing a poem of forty-four lines, in the Herzog August Library in Wolfenbüttel, Germany in 1773.[1]
The problem remained unsolved for a number of years, due partly to the difficulty of computing the huge numbers involved in the solution. The general solution was found in 1880 by (1845–1916), headmaster of the German: Gymnasium zum Heiligen Kreuz (Gymnasium of the Holy Cross) in Dresden, Germany.[2] [3] [4] Using logarithmic tables, he calculated the first digits of the smallest solution, showing that it is about cattle, far more than could fit in the observable universe. The decimal form is too long for humans to calculate exactly, but multiple-precision arithmetic packages on computers can write it out explicitly.
In 1769, Gotthold Ephraim Lessing was appointed librarian of the Herzog August Library in Wolfenbüttel, Germany, which contained many Greek and Latin manuscripts.[5] A few years later, Lessing published translations of some of the manuscripts with commentaries. Among them was a Greek poem of forty-four lines, containing an arithmetical problem which asks the reader to find the number of cattle in the herd of the god of the sun. It is now generally credited to Archimedes.[6] [7]
The problem, as translated into English by Ivor Thomas, states:[8]
If thou art diligent and wise, O stranger, compute the number of cattle of the Sun, who once upon a time grazed on the fields of the Thrinacian isle of Sicily, divided into four herds of different colours, one milk white, another a glossy black, a third yellow and the last dappled. In each herd were bulls, mighty in number according to these proportions: Understand, stranger, that the white bulls were equal to a half and a third of the black together with the whole of the yellow, while the black were equal to the fourth part of the dappled and a fifth, together with, once more, the whole of the yellow. Observe further that the remaining bulls, the dappled, were equal to a sixth part of the white and a seventh, together with all of the yellow. These were the proportions of the cows: The white were precisely equal to the third part and a fourth of the whole herd of the black; while the black were equal to the fourth part once more of the dappled and with it a fifth part, when all, including the bulls, went to pasture together. Now the dappled in four parts were equal in number to a fifth part and a sixth of the yellow herd. Finally the yellow were in number equal to a sixth part and a seventh of the white herd. If thou canst accurately tell, O stranger, the number of cattle of the Sun, giving separately the number of well-fed bulls and again the number of females according to each colour, thou wouldst not be called unskilled or ignorant of numbers, but not yet shalt thou be numbered among the wise.But come, understand also all these conditions regarding the cattle of the Sun. When the white bulls mingled their number with the black, they stood firm, equal in depth and breadth, and the plains of Thrinacia, stretching far in all ways, were filled with their multitude. Again, when the yellow and the dappled bulls were gathered into one herd they stood in such a manner that their number, beginning from one, grew slowly greater till it completed a triangular figure, there being no bulls of other colours in their midst nor none of them lacking. If thou art able, O stranger, to find out all these things and gather them together in your mind, giving all the relations, thou shalt depart crowned with glory and knowing that thou hast been adjudged perfect in this species of wisdom.
The first part of the problem can be solved readily by setting up a system of equations. If the number of white, black, dappled, and yellow bulls are written as
W,B,D,
Y
w,b,d,
y
\begin{align} W&=
5 | |
6 |
B+Y,\\ B&=
9 | |
20 |
D+Y,\\ D&=
13 | |
42 |
W+Y,\\ w&=
7 | |
12 |
(B+b),\\ b&=
9 | |
20 |
(D+d),\\ d&=
11 | |
30 |
(Y+y),\\ y&=
13 | |
42 |
(W+w), \end{align}
which is a system of seven equations with eight unknowns. It is indeterminate and has infinitely many solutions. The least positive integers satisfying the seven equations are
\begin{align} B&=7460514=4657 x 1602,\\ W&=10366482=4657 x 2226,\\ D&=7358060=4657 x 1580,\\ Y&=4149387=4657 x 891,\\ b&=4893246,\\ w&=7206360,\\ d&=3515820,\\ y&=5439213, \end{align}
which is a total of cattle,[9] and the other solutions are integral multiples of these. Note that given the prime number p = 4657 then the first four numbers are multiples of p, and both p and p+1 will appear repeatedly below.
The second part of the problem states that
W+B
Y+D
n=
(w4658j-w-4658j)2 | |
(4657)(79072) |
,
where j is any positive integer and
w=300426607914281713365\sqrt{609}+84129507677858393258\sqrt{7766},
Equivalently, squaring w results in
w2=u+v\sqrt{(609)(7766)},
where
(u,v)
u2-(609)(7766)v2=1.
The size of the smallest herd that could satisfy both the first and second parts of the problem is then given by j = 1 and is about
7.76 x 10206544
The constraints of the second part of the problem are straightforward and the actual Pell equation that needs to be solved can easily be given. First, it one asks that B + W should be a square, or using the values given above,
B+W=7460514k+10366482k=(22)(3)(11)(29)(4657)k,
thus one should set k = (3)(11)(29)(4657)q2 for some integer q. That solves the first condition. For the second, it requires that D + Y should be a triangular number:
D+Y=
t2+t | |
2 |
.
Solving for t,
t=
-1\pm\sqrt{1+8(D+Y) | |
Substituting the value of D + Y and k and finding a value of q2 such that the discriminant of this quadratic is a perfect square p2 entails solving the Pell equation
p2-(22)(609)(7766)(46572)q2=1.
Amthor's approach discussed in the previous section was essentially to find the smallest
v
2 x 4657