Skip to main content
Log in

Indeterminate linear problems from Asia to Europe

  • Published:
Lettera Matematica

Abstract

In the Chinese tradition, linear Diophantine problems can be traced back to two main categories. The first group includes the problems consisting of 2-equation systems with integer coefficients in n unknowns with \(n> 2\) and integer solutions, such as: \(x_1 + x_2 + \dots + x_n = p\), \(b_1 x_1 + b_2 x_2+ \dots + b_n x_n = q\). The so-called “100 fowls problem” belongs to this group. The oldest statement can apparently be found in the Zhang Qiujian Suanjing (The Computation Classic of Zhang Qiujian), towards the second half of the 5th century AD (468–486). In the second category there are problems that can be represented through simultaneous linear congruences, which are generally formulated as follows: find a number x that, divided by \(m_1\), \(m_2\), \(m_3, \ldots , m_i\), give as remainders \(r_1\), \(r_2\), \(r_3, \ldots , r_i\). This kind of problem is currently called “Chinese (remainder) problem”. The oldest formulation is attributed to Master Sun Tzu (between 280 and 473). We shall present the different statements of the two problems in their circulation from Asia to Europe and the main proof procedures.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

Notes

  1. The Reverend Vanhée was the first to give this name in his paper [Van]. See [27].

  2. “20 persons, men, women, and girls, have drunk 20 pence worth of wine; each man pays 3 pence, each woman 2 pence, and each girl \(\frac{1}{2}\) penny” [23, p. 583 ff.].

  3. For an in-depth analysis of the two methods, their differences and the debate about the mutual influences between Chinese and Indian mathematics, see [14, p. 214 ff.].

  4. Zhen Luan (c. 570) did an unsuccessful attempt, just like Liu Hiaoxun (end of 6th century) and Li Shunfeng (7th century), a commenter of Zhang; see [14, pp. 278–9].

  5. The problem JZSS 8-13 (in Jiuzhan Suanshu Suanshu, The Nine Chapters) involves five equations and six unknowns.

  6. The first edition of the manuscript was published in 1979 [21]; see also [11, p. 44].

  7. The statement by Śrīdhara is: “5 doves are being sold for 3 rupees, 7 cranes for 5 rupees, 9 swans for 7 rupees and 3 peacocks for 9. A man has been instructed to bring 100 birds for the price of 100 rupees to amuse the king’s son. How many birds of each variety did he bring?”

  8. See [25].

  9. For a description of the method, see [24, pp. 116–8].

  10. See [17, No. 34, p. 1135]; see also [9]. In the statement of three of these problems instead of fowl there are pigs, sows, piglets; horses, oxen and rams; camels, asses and rams. See [16, p. 295].

  11. Fibonacci refers to the silver content of the coin—that is, the number of ounces of silver it contains. Thus, the phrase “coins of 1, 2, 3” would mean that the coins contain respectively 1, 2, 3 ounces of silver. In this case, Fibonacci places by analogy a correspondence between coins and species of birds and between the silver content of the coins and the unit price of each species.

  12. For a more in-depth study of this topics, see [4].

  13. Indeed, the price of a hen (= 3) equals the price of a cock (= 5) minus 2 coins. Substituting 4 cocks for 4 hens is equivalent to adding 8 coins.

  14. See [13, p. 416].

  15. See [15, pp. 132–3].

  16. See [16, p. 296].

  17. See [16, pp. 298–304].

  18. Liber Abaci, p. 281 ff.: Est numerus qui, cum dividitur per 2, vel per 3, vel per 4, aut per 5, seu per 6, semper superat ex eo 1 indivisibile; per 7 vero integraliter dividitur. Queritur qui sit numerus ille.

  19. Part VIII of chapter XII of Liber Abaci, p. 303 ff.

  20. See [7], especially the first section.

  21. These texts were actually 12, not 10, since they also included The Zhou Dynasty Canon of Gnomonic Computations and The Nine Chapters.

References

  1. Āryabhaṭīya of Āryabhaṭa/critically edited with introd., English translation, notes, comments, and indexes by Kripa Shankar Shukla, in collaboration with K. V. Sarma. The Indian National Science Academy, New Delhi (1976)

  2. Boncompagni, B.: Scritti di Leonardo Pisano matematico del secolo decimo terzo. 2 vols.: I. Il Liber abaci pubblicato secondo la lezione del Codice Magliabechiano C. 1., 2616, Badia Fiorentina, n. 73 da B.Boncompagni ; II. La pratica geometriae. Opuscoli: Flos, le Questiones avium e il Liber quadratorum, pubblicati da B. Boncompagni. Boncompagni Tipografia delle Scienze matematiche, Rome (1857–1862)

  3. Chemla, K.C.: East Asian mathematics. In: Encyclopædia Britannica. Encyclopædia Britannica, Inc. (2011), https://www.britannica.com/science/East-Asian-mathematics. Accessed 29 Nov 2018

  4. Caianiello, E.: Des monnaies et des oiseaux dans l’œuvre de Léonard de Pise. Revue de Numismatique 6, 151–166 (2011)

    Article  Google Scholar 

  5. Colebrooke, H. T.: Algebra with arithmetic and mensuration from the Sanscrit of Brahmagupta and Bh'ascara, p. 378 (1973, Reprint of 1817 ed.)

  6. Datta, B., Singh, A.N.: History of Hindu Mathematics: A Source Book. Asia Publishing House, Calcutta (1935–1938)

  7. Daumas, D., Guillemot, M., Keller, O., Mizrahi, R., Spiesser, M.: Le théorème des restes chinois. Textes, commentaires et activités pour l’arithmétique au lycée. In: Le problème des restes chinois: Questions sur ses origines, IREM, Paris (2011). http://culturemath.ens.fr/materiaux/irem-toulouse11/theoreme-restes-chinois-index.html. Accessed 29 Nov 2018

  8. Djebbar, A.: Les transactions dans les mathématiques arabes: classification, résolution et circulation. In: Actes du Colloque International “Commerce et Mathématiques du Moyen Age à la Renaissance, autour de la Méditerranée”, pp. 327–344. Editions du C.I.H.S.O., Toulouse (2001)

  9. Folkerts, M.: Die älteste mathematische Aufgabensammlung in lateinischer Sprache: Die Alkuin zugeschriebenen Propositiones ad Acuendos Iuvenes. Springer, Berlin (1977)

    MATH  Google Scholar 

  10. Hayashi, T.: Indian mathematics. In: Companion Encyclopedia of the History and Philosophy of the Mathematical Sciences, vol. 1, pp.118–130. Routledge, London (1994)

    Google Scholar 

  11. Hayashi, T.: The Bakhshālī manuscript: an ancient Indian mathematical treatise. Egbert Forsten, Groningen (1995)

    MATH  Google Scholar 

  12. Hayashi, T.: Mahāvirā. In: Encyclopædia Britannica. Encyclopædia Britannica, Inc (2017). https://www.britannica.com/biography/Mahavira-Indian-mathematician. Accessed 29 Nov 2018

  13. Kangshen, S., Crossley, J.N., Wah-Cheung Lung, A., Liu, H.: The Nine Chapters on Mathematical Art, Companion and Commentary. Oxford University Press, Oxford (1999)

    MATH  Google Scholar 

  14. Libbrecht, U.: Chinese Mathematics in the thirteenth century. The MIT Press, Cambridge (1973)

    MATH  Google Scholar 

  15. Mahāvirācarya: The Ganita-Sāra-Sangraha, Rangācārya, M.A. (Engl. transl. and ed.). Madras (1912)

  16. Martzloff, J.C.: Histoire des mathématiques chinoises. Masson, Paris (1987)

    MATH  Google Scholar 

  17. Migne, I.M.: Propositiones Alcuini doctoris Carolo Magni Imperatori ad acuendos juvenes. In: Alcuini Opera Omnia (Patrologiae cursus completus), t. 101, vol. 3, Paris (1851)

  18. Needham, J.: Science and Civilisation in China. Vol. 3. Mathematics and the Sciences of the Heavens and Earth. Cambridge University Press, Cambridge (1959)

  19. Rashed, R., Morelon, R. (eds.): Encyclopedia of the History of the Arabic Science. In: Mathematics and the physical science, vol. 2. Routledge, London, New York (1996). https://archive.org/details/RoshdiRasheded.EncyclopediaOfTheHistoryOfArabicScienceVol.3Routledge1996. Accessed 29 Nov 2018

    Google Scholar 

  20. Saidan, A.S.: The Arithmetic of Al-Uqlīdisī. The Story of Hindu-Arabic Arithmetic as told in Kitāb al-Fuṣūl fī al-Ḥisāb al-Hindī. Springer, Berlin (1978)

    MATH  Google Scholar 

  21. Sarasvati, S.S.P., Jyotishmati, U.: The Bakhshālī Manuscript: An Ancient Treatise of Indian Arithmetic. Dr. Ratna Kumari Svadhyaya Sansthan, Allahabad (1979)

  22. Shukla, K.S.: The Pātīganita of Sridharacarya with an Ancient Sanskrit Commentary. Lucknow University, Lucknow (1959)

    Google Scholar 

  23. Smith, D.E.: History of Mathematics, vol. 2. Dover, Mineola (1958)

    Google Scholar 

  24. Souissi, M.: Le talkhis d’Ibn al-Bannā. In: Chabert, J.-L. et al (eds.) Histoire d’algorithmes. Du caillou à la puce. Belin, Paris (1991)

  25. Suter, H.: Das Buch der Seltenheiten der Rechenkunst von Abū Kāmīl el Misri. Bibliotheca Mathematica 3 11, 102 (1910/1911)

  26. Tabak, J.: Algebra: Sets, Symbols, and the Language of Thought. Infobase Publishing, New York (2009)

    Google Scholar 

  27. Vanhée, L.: Les cent volailles ou l’analyse indéterminée en Chine. T’oung Pao 14, 435–450 (1913)

    Article  Google Scholar 

  28. Vinogradov, I.M.: Elements of Theory of Numbers. Dover, Mineola (1954)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Eva Caianiello.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Translated from the Italian by Daniele A. Gewurz.

Appendices

Appendix 1: About packet counting

In the classic method of consulting the oracle, which the I Ching (Book of Changes) describes ..., one of the fifty stalks or rods is set aside before the forty-nine are divided into two random heaps symbolising the Yin and the Yang. It was very natural, therefore, that mathematicians, seeking for remainders of one by continued divisions, should have remembered this.

Thus writes the eminent Chinese civilisation scholar Joseph Needham in Science and Civilisation in China [18, pp. 119–120, note j]. He continues:

Other “remainders” follow, for the divining process continues by throwing out the residual rods when each successive heap is counted through by fours. In China, therefore, indeterminate analysis was connected with, if not actually derived from, an ancient method of divination using yarrow stalks. An association of these with the counting-rods at some time may perhaps be presumed.

Therefore, in the I Ching, at least in its original version, the remainder of the division by 4 has a special importance for divination, but subsequently also the remainders by 3, by 2, etc. While the modulo can change, what matters is the search for the remainder. This is the case in many counting-based divination practices of traditional societies. In Quechua-speaking Andean peoples, for instance, when sowing, a cupful is extracted from a sack of wheat, the extracted seeds are thrown on the ground, and then they are divided in two heaps. If the remainder is zero, it is a favourable omen. The remainder in the count by two is widespread, but is not the only one; the remainders different from seven in the count by ten are of good omen among the Kikuyu population of Kenya [7]. There are innumerable examples. Another interpretation of the origin of Sun Tzu’s problem is given by the 13th-century Chinese mathematician, Yang Hui, who wrote in his Yang Hui suanfa (The Computational Methods of Yang Hui) (c. 1275) that Master Sun Tzu’s problem was usually called “the secret method of Prince Ch’in to count the soldiers”. Yarrow stalks or soldiers, it is always about counting. On the other hand, as many ethnographic data confirm, the practice of counting by packets has been ingrained since the beginning in the activity of counting and computation systems. So, even though it is controversial (see Libbrecht [14, p. 367 ff.]), why not give credit to this hypothesis regarding the origin of indeterminate analysis in China?

Appendix 2: The pulveriser (kuṭṭakā)

1.1 First example

$$\begin{aligned} 5y \equiv 3\; (\bmod \;{17})\ \leftrightarrow \ 5y = 3+17x\ \leftrightarrow \ y=\frac{3+17x}{5} \end{aligned}$$
(4)

Let us apply the Euclidean algorithm to the dividend and the divisor:

$$\begin{aligned} 17&= 5\cdot \underline{3} + 2\\ 5&= 2\cdot \underline{2} + 1. \end{aligned}$$

Let us count the number of quotients: it is even.

Two columns are arranged, with quotients and remainders:

$$\begin{array}{*{20}l} 3 & {\quad 2} \\ 2 & {\quad 1.} \\ \end{array}$$

In the quotient column, two positive integer numbers w and z that satisfy the following equation are added:

$$\begin{aligned} z=\frac{1\cdot w-3}{2} \end{aligned}$$

w must be a positive integer whose product by the last remainder, minus the constant term of (4), is divisible by the last divisor (or the next-to-last remainder) and is obtained by trial and error; z is the quotient of this division. (If the number of quotients were odd the constant term would be added.) So:

$$\begin{aligned} \begin{array}{r} 3\\ 2\\ w=5\\ z=1 \end{array} \end{aligned}$$

Alongside the column of quotients we construct two other columns whose terms are obtained by successively multiplying w by the number occupying the upper position and adding the result to the number of the lower position: \(5\cdot 2 + 1 = 11\). The number thus obtained is in turn multiplied in the next column by the number immediately above it, and the product added to the number immediately under it. So:

$$\begin{array}{*{20}l} 3 \hfill & {\quad 3} \hfill & {\quad 38} \hfill \\ 2 \hfill & {\quad 11} \hfill & {\quad 11} \hfill \\ 5 \hfill & {\quad 5} \hfill & {} \hfill \\ 1 \hfill & {} \hfill & {} \hfill \\ \end{array} {\text{ }}$$

The two values in the last column give the solutions to the equation: \(x = 11\) and \(y = 38\). Now we divide \(y = 38\) by 17, and 11 by 5. The smallest solutions \(x_0\), \(y_0\) are given by the congruence classes modulo, respectively, the coefficients b (\(= 5\)) and a (\(= 17\)) of equation (4):

$$\begin{aligned} x \equiv x_0\; (\bmod \;{5}) \hbox { and } y \equiv y_0\; (\bmod \;{17}). \end{aligned}$$

By replacing the numerical values we obtain:

$$\begin{aligned} 11 \equiv 1\; (\bmod \;{5}) \hbox { and } 38 \equiv 4\; (\bmod \;{17}); \end{aligned}$$

thus, \(x_0 = 1\) and \(y_0 = 4\) are the smallest solutions of (4).

1.2 Second example

$$\begin{aligned} \begin{array}{c} \begin{array}{c} 137x + 10 = 60y\\ \\ 137 = 60\cdot 2 + 17\\ 60 = 17\cdot 3 + 9\\ 17 = 9\cdot 1 + 8\\ 9 = 8\cdot 1 + 1 \end{array}\\ \\ \begin{array}{cc} \hbox {Column of quotients} &{} \hbox {Column of remainders}\\ 2&{}17\\ 3&{}9\\ 1&{}8\\ 1&{}1 \end{array} \end{array} \end{aligned}$$

Since the number of coefficients is even, we choose a multiplier w such that the product of w by the last remainder decreased by 10 is divisible by the last divisor (or next-to-last remainder) 8; \(z=(w-10)/8\), hence: \(w=18\) and \(z=1\).

Let us construct a table, as above:

$$\begin{aligned} \begin{array}{|c|c|c|c|c|} \hline 2&{}2&{}2&{}2&{}297=y\\ \hline 3&{}3&{}3&{}130&{}130=x\\ \hline 1&{}1&{}37&{}37&{}\\ \hline 1&{}19&{}19&{}&{}\\ \hline 18&{}18&{}&{}&{}\\ \hline 1&{}&{}&{}&{}\\ \hline \end{array} \end{aligned}$$

Thus, \(x=130\), \(y=297\). Reasoning as in the previous example, we find \(130 \equiv 10\; (\bmod \;{60})\) and \(297 \equiv 23\; (\bmod \;{137})\). Hence, the smallest solutions are given by \((x_0, y_0)=(10, 23)\).

Appendix 3: Fragments of the history of Chinese mathematics (from the Han period to the 13th century)

In the early Han period (208 BC–206 AD) the two oldest mathematical texts of which we have a written testimony appear: Zhoubi Suanjing (The Zhou Dynasty Canon of Gnomonic Computations), referred to as ZBSJ, a treatise of quantitative cosmology (containing a kind of decimal numeration, applications of the Pythagorean theorem, the value 3 for the ratio of circumference to diameter), and Jiuzhang Suanshu Suanshu (The Nine Chapters on the Mathematical Art, simply called The Nine Chapters), referred to as JZSS, of uncertain date, which became, in the Chinese tradition, the classic of classics, the Chinese mathematical bible. It contains arithmetic, algebraic and geometric algorithms, presented in relation to various problems, including some which allude to the tasks of the Han dynasty administrative officials, such as measuring fields, taxation based on wheat types, the salaries of officials according to hierarchy, excavation works, etc. The mathematical contents comprise topics in arithmetic (the rule of three, proportional division, rule of simple and double false position), geometry (calculation of surfaces and volumes), algebra (linear systems with the Fangcheng rule, including negative numbers). As with every canonical work, many of the results collected in the Nine Chapters date back to earlier times and over the centuries many authors added explanations, clarified passages, provided proofs or new procedures and drafted countless commentaries. The most important is that by Liu Hui (late 3rd century AD), since it is the first text of Chinese mathematics, before the 13th century, that provides proofs in the modern sense.

From the 3rd to the 6th century AD, the mathematical procedures become more theoretical: less importance is given to the empirical verification and more to proofs. A reflection on the correctness of the procedures was begun. Liu Hui computed the value of \(\pi = 155/50\), while Chu Chongzi found the value 355/113 at the end of the 5th century. Liu Hui showed an important algorithm to determine the volume of solids based both on their reconstruction through elementary components and on their decomposition into non-arbitrary, even infinitesimal, elements. Thus, the volume of the sphere is found by applying a generalised version of what came to be known in the West as “Cavalieri’s principle” and the volume of the pyramid is found through a division into infinitesimal surfaces. Many of these topics were then developed in commentaries on the JZSS. Science and technology made a leap forward: in cartography, Pei Xiu introduced the division into rectangular grids (end of the 3rd century), Yu Xi (307–338) discovered the precession of the equinoxes, Chu Chongzhi invented machines (late 5th century).

Starting in the time of the Sui dynasty (588–618) and throughout the Tang empire (618–907), mathematics, even though it was considered a marginal subject with respect to the humanistic education of the Confucian scholars, was officially taught in the guozzxue (School for the Sons of the State) based on a collection of mathematical texts, assembled during the 7th century AD by a group of scholars under the guidance of the mathematician and imperial astronomer Li Chunfeng [3]. This collection contained contemporary and ancient mathematical writings and is called The Ten Computational Canons (SJSS).Footnote 21 The level of these texts is lower than the Nine Chapters’, but new topics in number theory appeared, such as “100 fowls problem”, “Master Sun’s problem” and a procedure to extract a generalised cubic root. The official teaching of mathematics declined at the end of the Tang dynasty, then disappeared for about two centuries with the formation of the five independent kingdoms. It was re-established after the reunification of the empire under the Song dynasty, first Northern Song (960–1127), later Southern Song (1127–1279), even if in a more discontinuous and fragmentary way. After 1113 it completely disappeared from the curricula for the imperial exams until the 1887 reform.

From the 10th to the 12th century, the scarcity of written sources makes it difficult to accurately describe mathematical activity in China. From allusions and references by later authors, it seems that Xian and Liu Yi, mathematicians of the 11th century, knew the method known in the West as Ruffini-Horner’s method, Pascal’s triangle (referred to as an ancient procedure), and the resolutive procedure of magic squares.

In 1084 the Ten Canons were printed, apparently occasioned by a renewal in the studies during the 11th and 12th centuries. This may have paved the way to the blossoming of mathematical studies in the second half of the 13th century. The golden age of Chinese algebra and mathematics in general corresponds to the half-century between 1247 and 1303, with four major mathematicians at work:

  • Qin Jiushao (c. 1202–1261), author of the Shushu Jiuzhang (1247) (Nine-chapter treatise of mathematics), known for having formulated the general algorithm to solve simultaneous congruences;

  • Yang Hui, about whom it is known only that he lived under the Southern Song, and who worked in the area of elementary arithmetic. His books are among the few contemporary Chinese mathematics works to survive. Among these we mention the Xiangjie jiuzhang suanfa (A Detailed Analysis of the Nine Chapters on the Mathematical Procedures)(1261) and the Yang Hui suanfa (The Computational Methods of Yang Hui, c. 1275), consisting of three treatises;

  • Li Zhi (1192–1279), the author of several works on polynomial algebra, even with negative exponents for the unknown;

  • Zhu Shijie (late 13th century), the latest algebraist of his century, author of Szjuan Yujzan (1303) (Jade Mirror of the Four Origins), who handled complex algorithms and equations up to the 14th degree.

Qin Jiushao and Yang Hui lived in Southern China; Li Zhi and Zhu Shijie in the North. Finally, we must remember Guo Shoujing (1231–1316) who introduced spherical trigonometry. According to Martzloff [16, p. 20 ff], 13th-century Chinese mathematicians carried out very similar work, although they apparently did not have contact with each other and did not refer to each other in their texts. They shared a language whose terms were often borrowed from the esoteric language, and a way of conceiving algebraic activity that was much more abstract and free from realistic constraints than in the past, aimed at solving very complex problems with sophisticated and sometimes abstruse algorithms. The great expansion of algebra and mathematics took place in the period when China came into contact with Islamic mathematical culture through the Yuan (Mongol) dynasty (1264–1368); many topics were common but the procedures were very different.

Appendix 4: Mahāvirā

Mahāvirā, known as “Mahāvirā the master”, a Jain mathematician who lived in the 9th century AD—not to be confused with Vardhamana Mahāvirā (Mahāvirā means in Sanskrit “great hero”), born around 599 BC and founder of Jainism—was active in Karnataka, in South-Western India, and lived during the reign of Amoghavarṣa (c. 814–880). He was the author of a single work, the Ganita-Sāra-Sangraha (Compendium of the Essence of Mathematics), the first treatise exclusively about mathematics in the history of Indian mathematics. It consists of 1130 verses divided into nine chapters; the first is on terminology and the other eight concern mathematical procedures called pāṭī (“algorithms”):

  1. 1.

    Terminology;

  2. 2.

    Procedures for basic operations;

  3. 3.

    Procedures to reduce fractions to a common denominator;

  4. 4.

    Procedures for various problems;

  5. 5.

    Procedures on the rule of three;

  6. 6.

    Procedures on compounds;

  7. 7.

    Procedures for geometric computing;

  8. 8.

    Procedures on excavations;

  9. 9.

    Procedures on shadows.

The topics covered in the work include basic operations, reduction of fractions, miscellaneous problems involving rates of interest, proportional distribution, first- and second-degree determinate and indeterminate equations (with the method of the “pulveriser”), number series, combinatorial calculus applied to Sanskrit prosody, geometric calculations with plane and solid figures and shadows.

Mahāvirā made a great contribution to the terminology about the definitions of plane figures. Writing about zero and negative numbers, he states that a negative quantity does not have a square root because it is not a square. His contribution to the decomposition of a fraction in the sum of unit fractions is original. It also seems that he was the first Indian mathematician to admit two solutions for second-degree equations. We recall, among his innumerable results, the discovery of identity: \(a^3 = a(a+b)(a-b) + b^2(a-b) + b^3\) and the identification of the formula:

$$\begin{aligned} C_{n,k} = \frac{n(n-1)(n-2)\cdots (n-k+1)}{k(k-1)\cdots 2\cdot 1}. \end{aligned}$$

For more about Mahāvirā, see [10, 12, 26].

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Caianiello, E. Indeterminate linear problems from Asia to Europe. Lett Mat Int 6, 233–243 (2018). https://doi.org/10.1007/s40329-018-0242-4

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s40329-018-0242-4

Keywords

Navigation