Archimedes's cattle problem

From HandWiki
Short description: A problem in number theory with a very large solution
Smallest solution to Archimedes's cattle problem with each icon representing around 10206 543 cattle

Archimedes's cattle problem (or the problema bovinum or 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 44 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 August Amthor (de) (1845–1916), headmaster of the 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 [math]\displaystyle{ 7.76 \times 10^{206544} }[/math] cattle, far more than could fit in the observable universe.[5] 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.[6] 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.[7][8]

Problem

The problem, as translated into English by Ivor Thomas, states:[9]

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 [math]\displaystyle{ W, B, D, }[/math] and [math]\displaystyle{ Y }[/math], and the number of white, black, dappled, and yellow cows are written as [math]\displaystyle{ w,b,d, }[/math] and [math]\displaystyle{ y }[/math], the problem is simply to find a solution to

[math]\displaystyle{ \begin{align} W &= \frac{5}{6} B + Y, \\ B &= \frac{9}{20} D + Y, \\ D &= \frac{13}{42} W + Y, \\ w &= \frac{7}{12} (B + b), \\ b &= \frac{9}{20} (D + d), \\ d &= \frac{11}{30} (Y + y), \\ y &= \frac{13}{42} (W + w), \end{align} }[/math]

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

[math]\displaystyle{ \begin{align} B &= 7\,460\,514 = 4657 \times 1602,\\ W &= 10\,366\,482 = 4657 \times 2226,\\ D &= 7\,358\,060 = 4657 \times 1580,\\ Y &= 4\,149\,387 = 4657 \times 891,\\ b &= 4\,893\,246, \\ w &= 7\,206\,360, \\ d &= 3\,515\,820, \\ y &= 5\,439\,213, \end{align} }[/math]

which is a total of 50389082 cattle,[10] and the other solutions are integral multiples of these. Note that given the prime number [math]\displaystyle{ p = 4657 }[/math] 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 [math]\displaystyle{ W+B }[/math] is a square number, and [math]\displaystyle{ Y+D }[/math] is a triangular number. The general solution to this part of the problem was first found by A. Amthor[11] in 1880. The following version of it was described by H. W. Lenstra,[5] based on Pell's equation: the solution given above for the first part of the problem should be multiplied by

[math]\displaystyle{ n = \frac{(w^{4658j} - w^{-4658j})^2}{(4657)(79072)}, }[/math]

where j is any positive integer and

[math]\displaystyle{ w = 300\,426\,607\,914\,281\,713\,365 \sqrt{609} + 84\,129\,507\,677\,858\,393\,258 \sqrt{7766}, }[/math]

Equivalently, squaring w results in

[math]\displaystyle{ w^2 = u + v\sqrt{(609)(7766)}, }[/math]

where [math]\displaystyle{ (u, v) }[/math] is the fundamental solution of the Pell equation

[math]\displaystyle{ u^2 - (609)(7766) v^2 = 1. }[/math]

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 [math]\displaystyle{ 7.76 \times 10^{206\,544} }[/math] (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.[12]

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,

[math]\displaystyle{ B + W = 7\,460\,514\,k + 10\,366\,482\,k = (2^2)(3)(11)(29)(4657)k, }[/math]

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:

[math]\displaystyle{ D + Y = \frac{t^2 + t}{2}. }[/math]

Solving for t,

[math]\displaystyle{ t = \frac{-1 \pm \sqrt{1 + 8(D + Y)}}{2}. }[/math]

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

[math]\displaystyle{ p^2 - (2^2)(609)(7766)(4657^2) q^2 = 1. }[/math]

Amthor's approach discussed in the previous section was essentially to find the smallest [math]\displaystyle{ v }[/math] such that it is integrally divisible by [math]\displaystyle{ 2\times 4657 }[/math]. The fundamental solution of this equation has more than 100,000 decimal digits.

References

  1. Lessing, Gotthold Ephraim (1773) (in German, Greek). Zur Geschichte und Litteratur: aus den Schätzen der Herzoglichen Bibliothek zu Wolfenbüttel, Zweyter Beytrag. Braunschweig, (Germany): Fürstlicher Waysenhaus. pp. 421–425. http://digitale.bibliothek.uni-halle.de/vd18/content/pageview/4023090.  From pp. 422–423: "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; ..." (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" (in German, Greek, Latin). Zeitschrift für Mathematik und Physik: Historisch-literarische Abtheilung [Journal for Mathematics and Physics: Historical-literary section] 25: 121–136, 153–171. https://babel.hathitrust.org/cgi/pt?id=hvd.32044102937786&view=1up&seq=611&size=125. 
  3. Biographical information about August Amthor:
  4. The problem was solved independently in 1895 by Adam Henry Bell, a surveyor and civil engineer of Hillsboro, Illinois, USA. See:
  5. 5.0 5.1 Lenstra, H. W. Jr. (2002), "Solving the Pell Equation", Notices of the American Mathematical Society 49 (2): 182–192, https://www.ams.org/notices/200202/fea-lenstra.pdf 
  6. Rorres, Chris. "Archimedes' Cattle Problem (Statement)". http://www.mcs.drexel.edu/~crorres/Archimedes/Cattle/Statement.html. 
  7. Fraser, P.M. (1972). Ptolemaic Alexandria. Oxford University Press. 
  8. Weil, A. (1972). Number Theory, an Approach Through History. Birkhäuser. 
  9. "The Cattle Problem Statement (English)". https://www.math.nyu.edu/~crorres/Archimedes/Cattle/Statement.html. 
  10. Merriman, Mansfield (November 1905). "The cattle problem of Archimedes". Popular Science Monthly 67: 660–665. https://en.wikisource.org/wiki/Popular_Science_Monthly/Volume_67/November_1905/The_Cattle_Problem_of_Archimedes. 
  11. 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.
  12. Harold Alkema and Kenneth McLaughlin (2007). "Unbundling Computing at The University of Waterloo". University of Waterloo. http://www.cs.uwaterloo.ca/40th/Chronology/printable.shtml.  (includes pictures)

Further reading

  • Bell, A. H. (1895), "The "Cattle Problem." By Archimedies 251 B. C.", The American Mathematical Monthly (Mathematical Association of America) 2 (5): 140–141, doi:10.2307/2968125 
  • Dörrie, Heinrich (1965). "Archimedes' Problema Bovinum". 100 Great Problems of Elementary Mathematics. Dover Publications. pp. 3–7. 
  • Williams, H. C.; German, R. A.; Zarnke, C. R. (1965). "Solution of the Cattle Problem of Archimedes". Mathematics of Computation (American Mathematical Society) 19 (92): 671–674. doi:10.2307/2003954. 
  • Vardi, I. (1998). "Archimedes' Cattle Problem". American Mathematical Monthly (Mathematical Association of America) 105 (4): 305–319. doi:10.2307/2589706. 
  • Benson, G. (2014). "Archimedes the Poet: Generic Innovation and Mathematical Fantasy in the Cattle Problem". Arethusa (Johns Hopkins University Press) 47 (2): 169–196. doi:10.1353/are.2014.0008. 

External links