Lecture 5: The Wisdom of Number Theory in the East—China and India
Lecture 5: The Wisdom of Number Theory in the East — China and India
Section titled “Lecture 5: The Wisdom of Number Theory in the East — China and India”Review and Introduction
Section titled “Review and Introduction”In the previous lectures, we explored the brilliant achievements of Greek mathematics in geometry, number theory, and the concept of infinity. However, the mathematical sky was not only bright over the Mediterranean. On the other side of the world, ancient Eastern civilizations independently developed distinctive and equally profound mathematical ideas.
Today, we turn our attention to Asia, particularly ancient China and India. We will see that some ideas we consider “Greek,” such as the Euclidean algorithm, also took root here independently. More importantly, Eastern mathematicians made astonishing breakthroughs in solving problems that the Greeks had not deeply explored or had not fully resolved, especially in finding integer solutions to equations. In this lecture, we will focus on the crystallization of ancient Chinese mathematical wisdom — the Chinese Remainder Theorem — and the Indian mathematicians’ remarkable skills in solving Pell’s equation.
Practical Background of Congruence Problems: Ancient Calendrical Science
Section titled “Practical Background of Congruence Problems: Ancient Calendrical Science”Before diving into the ingenious algorithm of the Chinese Remainder Theorem, we first need to understand an important question: why was solving systems of congruences so important in ancient China? The answer lies primarily in one extremely important field — Calendrical Science.
Unlike purely solar calendars (such as the ancient Roman Julian calendar), the ancient Chinese calendar was a lunisolar calendar. It had to reflect both the solar year cycle (determining seasons and solar terms) and the lunar month cycle (determining month divisions). These two cycles are not simple integer multiples of each other:
- A tropical year is approximately 365.2422 days.
- A synodic month is approximately 29.5306 days.
Coordinating these two different cycles, along with the 60-day sexagenary cycle used for daily timekeeping, was a core challenge faced by ancient astronomers and mathematicians. This naturally led to congruence problems.
A Simplified Example: Imagine an ancient calendar maker who needs to predict an important day. He knows the universe follows several independent “clocks”:
- Solar clock: Cycles every 365 days (simplified year).
- Lunar clock: Cycles every 30 days (simplified month).
- Sexagenary clock: Cycles every 60 days.
Suppose the starting point of the universe, called “Shang Yuan,” is when all clocks point to 0. Now, the calendar maker observes that today is the 4th day of the “solar clock,” the 10th day of the “lunar clock,” and the 25th day of the “sexagenary clock.” How many days () have passed since “Shang Yuan”? This problem translates into a system of congruences:
Ancient mathematicians needed a general method to solve such problems in order to create accurate calendars, predict eclipses, and guide agricultural production. The Chinese Remainder Theorem and its systematic algorithm, the “Dayan Qiyishu,” were powerful mathematical tools developed precisely for this practical challenge.
The Chinese Remainder Theorem: An Ingenious Algorithm for Congruence Problems
Section titled “The Chinese Remainder Theorem: An Ingenious Algorithm for Congruence Problems”This is one of the most important contributions of ancient Chinese mathematics to the world, with profound ideas and wide applications.
Origin: The “Master Sun’s Problem”
Section titled “Origin: The “Master Sun’s Problem””Around the 3rd century CE, the ancient Chinese mathematical text Sunzi Suanjing recorded the following famous problem:
“There is an unknown number. When counted by threes, the remainder is 2; when counted by fives, the remainder is 3; when counted by sevens, the remainder is 2. What is the number?”
In modern mathematical language, this is a system of congruences:
Sunzi’s Solution: A Constructive Genius Idea
Section titled “Sunzi’s Solution: A Constructive Genius Idea”Sunzi’s solution is clear and systematic:
- Find a number divisible by 5 and 7 (i.e., a multiple of 35) that leaves remainder 1 when divided by 3. This number is 70. Since we need remainder 2, we take .
- Find a number divisible by 3 and 7 (i.e., a multiple of 21) that leaves remainder 1 when divided by 5. This number is 21. Since we need remainder 3, we take .
- Find a number divisible by 3 and 5 (i.e., a multiple of 15) that leaves remainder 1 when divided by 7. This number is 15. Since we need remainder 2, we take .
- Add these three numbers: . This number satisfies all conditions.
- Finally, subtract multiples of to get the smallest positive solution: .
From Specific to General: Qin Jiushao’s “Dayan Qiyishu”
Section titled “From Specific to General: Qin Jiushao’s “Dayan Qiyishu””Sunzi’s method was ingenious, but it did not explain how to systematically find the key number “that leaves remainder 1 when divided by a certain number” (i.e., the modular inverse). It was not until 1247 CE that the Southern Song mathematician Qin Jiushao, in his book Shushu Jiuzhang (Mathematical Treatise in Nine Sections), proposed a fully systematic algorithm — the “Dayan Zongshu Shu,” whose core is the “Dayan Qiyishu.”
The “Gengxiang Jiansun Shu” as Foundation: Before explaining the “Dayan Qiyishu,” we need to understand its foundation — the “Gengxiang Jiansun Shu” for finding the greatest common divisor. This method, recorded in the earlier Nine Chapters on the Mathematical Art, is essentially identical to the Euclidean algorithm. The procedure is: for two positive integers, subtract the smaller from the larger, and repeat with the difference and the smaller number until both numbers are equal. This equal number is their GCD.
Dayan Qiyishu: Systematic Modular Inverse: The essence of the “Dayan Qiyishu” is what we now call the extended Euclidean algorithm. It is a clever backtracking process built on the “Gengxiang Jiansun Shu.” Its goal is to systematically solve the linear congruence equation .
- Prerequisite: First, and must be coprime, i.e., . If they are not coprime, no inverse exists.
- The “Qiyi” Process: The algorithm uses the “Gengxiang Jiansun Shu” to find , recording the quotients at each step.
- Backtracking Construction: Starting from the last step where , the algorithm works backward using the recorded quotients to express as a linear combination of and , i.e., finding integers and such that .
- Obtaining the Modular Inverse: When the equation is considered modulo , the term becomes 0, so the equation reduces to . The value of is then a modular inverse of modulo .
Historical Significance: Qin Jiushao systematized this algorithm, providing a general method for solving any linear congruence system. This achievement marks the high level of algorithmic design in ancient Chinese mathematics, nearly 600 years before European mathematicians like Gauss established the complete theory.
Pell’s Equation: Another Peak of Indian Mathematics
Section titled “Pell’s Equation: Another Peak of Indian Mathematics”Turning to India, we find remarkable achievements in solving another famous Diophantine equation — Pell’s equation .
Brahmagupta’s “Composition Method” (c. 628 AD)
Section titled “Brahmagupta’s “Composition Method” (c. 628 AD)”Brahmagupta was the first mathematician to systematically study Pell’s equation and make breakthroughs. His core contribution is a remarkable identity (now called “Brahmagupta’s identity”):
“Composition of Solutions”: This identity means that if you have solutions to and , you can “compose” them to obtain a solution to .
Significance: This provides a powerful tool for generating new solutions from known ones (even from solutions where ). For example, from one solution, infinitely many solutions can be generated.
Bhaskara II’s “Cyclic Method” (Chakravala, c. 1150 AD)
Section titled “Bhaskara II’s “Cyclic Method” (Chakravala, c. 1150 AD)”Brahmagupta’s method, though powerful, was not universally applicable for all . Five hundred years later, Bhaskara II perfected the theory and proposed a universal algorithm known as the “cyclic method.”
The Essence of the Algorithm — Iteration and Approximation: The Chakravala (meaning “wheel”) is a sophisticated iterative algorithm. Starting from a solution of an auxiliary equation , it composes with another trivial solution (satisfying ) to construct a new equation with a solution , cleverly choosing so that the new constant is smaller than .
Steps:
- Initial Solution: Start with a simple integer triple satisfying . For example, choose such that is as small as possible, with .
- Finding the Next Multiplier : Find a positive integer satisfying two conditions: (i) must be divisible by ; (ii) should be as small as possible.
- Constructing the New Solution: Using Brahmagupta’s identity, compose the solution with the “trivial solution” , and use the special choice of to “reduce,” obtaining a new integer solution of . Here . Due to the choice of , .
- Cyclic Iteration: Using the new triple as the basis, repeat steps 2 and 3. This process “cycles” like a wheel.
The Power of the Algorithm: Bhaskara II proved that this cyclic process must eventually reach an equation with value of or . For these cases, there exist simple methods to ultimately derive a solution to . To demonstrate the power of his method, Bhaskara II solved . This problem is quite difficult, and its smallest positive integer solution is a huge number (). This demonstrates the high ability of Indian mathematicians in developing general iterative algorithms.
Rational Triangles: Another Masterpiece of Brahmagupta
Section titled “Rational Triangles: Another Masterpiece of Brahmagupta”After the ancient Greeks perfectly described rational right triangles, a natural question arises: how do we describe general rational triangles? A reasonable definition is: a rational triangle is a triangle whose side lengths and area are all rational numbers.
This question was rarely mentioned in Greek mathematics, but again, it was the Indian mathematician Brahmagupta (c. 628 AD) who gave a detailed study in his work.
Core Idea: Brahmagupta discovered that any rational triangle can be decomposed by one of its altitudes into two rational right triangles.
Proof Sketch: For a triangle with sides , suppose the altitude falls on side , dividing it into and . By the Pythagorean theorem:
Subtracting gives . Since are rational and , the difference is also rational. Solving the system for and gives and as rational numbers. If the area is also rational, then must be rational. Thus, the original triangle is decomposed into two right triangles with rational side lengths ( and ).
Questions for Exploration
Section titled “Questions for Exploration”-
Chinese Wisdom: Try using Sunzi’s approach to solve a new congruence problem: a number leaves remainder 1 when divided by 3, remainder 2 when divided by 4, and remainder 3 when divided by 5. Write out your steps.
-
Indian Skill: Verify Brahmagupta’s identity by hand. How do you think this identity was discovered?
-
East-West Comparison: The Greeks studied mainly to find rational approximations of , while Indian mathematicians focused on finding integer solutions. How do these different research motivations reflect the differences in their mathematical styles?
-
Mathematics and Civilization: How did political needs (such as promulgating calendars), economic activities, and cultural traditions profoundly influence the direction and focus of ancient mathematical development?