Archimedes's cattle problem explained

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.

History

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]

Problem

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.

Solution

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,

and

Y

, and the number of white, black, dappled, and yellow cows are written as

w,b,d,

and

y

, the problem is simply to find a solution to

\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

is a square number, and

Y+D

is a triangular number. The general solution to this part of the problem was first found by A. Amthor[10] in 1880. The following version of it was described by H. W. Lenstra, based on Pell's equation: the solution given above for the first part of the problem should be multiplied by

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)

is the fundamental solution of the Pell equation

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

(first solved by Amthor). Modern computers can easily print out all digits of the answer. This was first done at the University of Waterloo, in 1965 by Hugh C. Williams, R. A. German, and Charles Robert Zarnke. They used a combination of the IBM 7040 and IBM 1620 computers.[11]

Pell equation

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

such that it is integrally divisible by

2 x 4657

. The fundamental solution of this equation has more than 100,000 decimal digits.

Further reading

External links

Notes and References

  1. Book: Lessing, Gotthold Ephraim . 1773 . Zur Geschichte und Litteratur: aus den Schätzen der Herzoglichen Bibliothek zu Wolfenbüttel, Zweyter Beytrag . German, Greek . On History and Literature: from the treasures of the ducal library at Wolfenbüttel, second article . Fürstlicher Waysenhaus . Braunschweig, (Germany) . 421–425 . From pp. 422–423: "German: Denn, wie gesagt, das Problem soll, wenn es nicht von dem Archimedes selbst abgefaßt worden, doch von ihm für werth erkannt seyn, daß er es den Eratosthenes geschicket hätte, um es den Meßkünstern zu Alexandria zur Auflösung vorzulegen. Dieses besagt die Aufschrift;{{nbs" (For, as said [above], the problem [Greek: ΠΡΟΒΛΗΜΑ] shall, if it had not been composed by Archimedes [Greek: Α'ΡΧΙΜΗΔΗΣ] himself, yet have been recognized by him [as so] worthy that he would have sent it to Eratosthenes [Greek: ΕΡΑΤΟΣΘΕΝΗΝ], in order to submit it to the surveyor at Alexandria for solution. The title says this;...) See pages 423–424 (in Greek).
  2. Krumbiegel . B. . Amthor . A. . 1880 . Das Problema bovinum des Archimedes . German, Greek, Latin . The cattle problem of Archimedes . German: Zeitschrift für Mathematik und Physik: Historisch-literarische Abtheilung [Journal for Mathematics and Physics: Historical-literary section] . 25 . 121–136, 153–171 .
  3. Biographical information about August Amthor:
    • Amthor's full name appears in: Book: (School administration) . 1876 . Programm des Gymnasiums zum Heiligen Kreuz in Dresden . German . Program of the Gymnasium of the Holy Cross in Dresden . K. Blochmann und Sohn . Dresden, Germany . 31 .
    • Brief biography about Amthor appears in: Book: Singer . Isadore . de Leon . Edward Warren . International Insurance Encyclopedia . 1910 . American Encyclopedic Library Association . New York, New York, USA . 1 . 18 . https://books.google.com/books?id=GNMqAAAAYAAJ&pg=PA18 . Amthor, August (Ph.D.).
  4. The problem was solved independently in 1895 by Adam Henry Bell, a surveyor and civil engineer of Hillsboro, Illinois, USA. See:
    • Bell . A.H. . On the celebrated 'Cattle Problem' of Archimedes . The Mathematical Magazine . 1895 . 2 . 163–164.
    • Bell . A.H. . The 'Cattle Problem' by Archimedes 251 B.C . American Mathematical Monthly . 1895 . 2 . 140–141 .
    • Bell's full name appears in: Book: Bateman . Newton . Selby . Paul . Historical Encyclopedia of Illinois . 1918 . Munsell Publishing Co. . Chicago, Illinois, USA . 2 . 1049–1050 . https://books.google.com/books?id=GygPAQAAIAAJ&pg=PA1050 . Fish, Albert E.. ; see p. 1050.
    • Bell's occupations appear in: Merriman . Mansfield . The cattle problem of Archimedes . Popular Science Monthly . November 1905 . 67 . 660–665 . ; see p. 664.
  5. Web site: Archimedes' Cattle Problem (Statement) . 2007-01-24 . Rorres . Chris . https://web.archive.org/web/20070124203443/http://www.mcs.drexel.edu/~crorres/Archimedes/Cattle/Statement.html . 24 January 2007 .
  6. Book: Fraser, P.M. . Peter Fraser (classicist). 1972 . Ptolemaic Alexandria . Oxford University Press.
  7. Book: Weil, A. . André Weil . 1972 . Number Theory, an Approach Through History . Birkhäuser.
  8. Web site: The Cattle Problem Statement (English) . New York University . 11 July 2022.
  9. Merriman . Mansfield . The cattle problem of Archimedes . Popular Science Monthly . November 1905 . 67 . 660–665 .
  10. B. Krumbiegel, A. Amthor, Das Problema Bovinum des Archimedes, Historisch-literarische Abteilung der Zeitschrift für Mathematik und Physik 25 (1880) 121–136, 153–171.
  11. Web site: Unbundling Computing at The University of Waterloo . Harold Alkema and Kenneth McLaughlin . . 2007 . April 5, 2011 . https://web.archive.org/web/20110404172741/http://www.cs.uwaterloo.ca/40th/Chronology/printable.shtml. 4 April 2011 . live. (includes pictures)