The game at 1007.love is a line of thought that has run for 3,100 years: uncertainty can be shaved away by halving, again and again; agreement can be approached by converging, round after round.
This article sets out to establish three things: how early, and how concretely, this way of thinking appears in Chinese texts; how far Zu Chongzhi actually pushed it; and why it still has to be passed on to the next generation.
When people say "bisection" today, they usually mean one of two quite different things.
One is the algorithm that halves an ordered list, in English called binary search. That is a twentieth-century product: in 1946 the American engineer John Mauchly (1907–1980, American) first described it in the Moore School lectures at the University of Pennsylvania; it was only written up as a formal algorithm, and gradually corrected, in the 1960s. It belongs to computer science, not to any ancient civilisation.
The other is successive approximation in mathematics: cutting a large range in half again and again, or pinning a value between an upper and a lower bound until the true value is forced out. The Chinese were already using this way of thinking 3,100 years ago, and using it very beautifully.
The hexagram system of the Zhouyi (Book of Changes; Chinese text) was formed in the early Western Zhou, about the eleventh century BCE. Legend has it that Fuxi (a figure of ancient Chinese legend) drew the eight trigrams, and King Wen (late Shang to early Zhou, China, about the eleventh century BCE) doubled them into sixty-four hexagrams; the Xici commentary, which explains the logic of the hexagrams, was written in the Warring States period (about 475–221 BCE) and comes from the Confucian school (a Chinese school of thought).
One sentence in the Xici is shaped almost like a formula:
"In Change there is the Supreme Ultimate. It gives birth to the two modes; the two modes give birth to the four images; the four images give birth to the eight trigrams." Zhouyi, "Xici I"; China, Warring States, about the 4th century BCE
Two, four, eight — doubling at every step. One step further and six lines make a hexagram, sixty-four in all:
Three thousand one hundred years later, this game gives you seven guesses over a hundred numbers:
A hexagram of six lines, a run of seven questions: 3,100 years apart, the same arithmetic. Seven must be enough — not because experience says so, but because the powers of two enclose a hundred numbers.
The Nine Chapters on the Mathematical Art (Chinese text) was completed around the first century CE (late Western Han to early Eastern Han, China). It is the backbone of ancient Chinese mathematics: nine chapters, 246 problems. Its seventh chapter is called "surplus and deficit" (ying bu zu).
The method is plain: assume one answer, work it through once, and see whether the result is "surplus" (too much) or "deficit" (too little); then assume another answer, work it through once; then, from the ratio of the two discrepancies, derive the true value.
That is "a finite number of trials exchanged for a certain answer". It belongs to the same family as the "method of false position" in the Egyptian Rhind Papyrus (ancient Egypt, about 1650 BCE) — two civilisations each groped in the dark and found the same stone.
The same book contains "mutual subtraction" (gengxiang jiansun), a way of finding the greatest common divisor of two numbers: subtract the smaller from the larger, and go on turning them over until they are equal. This does the same work as the Euclidean algorithm in Book VII of the Elements (ancient Greece, about 300 BCE) by the Greek mathematician Euclid (about 325–265 BCE, Greek): one subtracts, one divides, and both "diminish until they reach the bottom".
Liu Hui (China, Wei of the Three Kingdoms; dates unknown, active in the third century CE) annotated the Nine Chapters in 263 CE. Working on the circular-field method in the "Square Field" chapter, he wrote the most beautiful statement of convergence in the history of Chinese science:
"The finer you cut, the less you lose; cut and cut again, until you cannot cut — then it is one body with the circle, and nothing is lost." Liu Hui, Commentary on the Nine Chapters, "Square Field"; China, 263 CE
Every cut takes the error down a notch; cut until you cannot cut, and the polygon becomes one body with the circle. That is a complete statement of "iterate — converge — approach the limit", more than a thousand years before the European concept of a limit. With this method he calculated up to a regular 192-gon and obtained π ≈ 3.14; tightening it gave 3.1416.
Zu Chongzhi (429–500, Liu-Song and Southern Qi dynasties, China), courtesy name Wenyuan, a native of Fanyang Qiu (modern Laishui, Hebei, China), was a scientist of the Liu-Song and Southern Qi period and rose to the office of Changshui Xiaowei. He worked in the fifth century CE, and around 480 CE he gave an answer that the world chased for more than nine hundred years.
He pinned the true value of π between two numbers, one above and one below:
That is, seven decimal places, every digit correct.
The Sui History, "Treatise on Music and Calendars" (a Chinese official history, 7th century), compiled in the Tang dynasty (China), preserved his original words. It is one of the most precious passages in the history of Chinese science:
"At the end of the Song, Zu Chongzhi, administrative officer of Nanxu Prefecture, opened a further precise method. Taking a diameter of one hundred million as one zhang, the circumference has an excess value of three zhang, one chi, four cun, one fen, five li, nine hao, two miao, seven hu, and a deficit value of three zhang, one chi, four cun, one fen, five li, nine hao, two miao, six hu; the true value lies between the excess and the deficit bounds. Precise ratio: diameter one hundred thirteen, circumference three hundred fifty-five. Simple ratio: diameter seven, circumference twenty-two." Sui History, "Treatise on Music and Calendars"; China, early Tang, 7th century
This passage contains a string of characters that a foreign reader cannot possibly decode: zhang, chi, cun, fen, li, hao, miao, hu. They are simply length units, each one tenth of the one before:
1 zhang = 1 (the units column)
1 chi = 1/10
1 cun = 1/100
1 fen = 1/1000
1 li = 1/10000
1 hao = 1/100000
1 miao = 1/1000000
1 hu = 1/10000000
So "three zhang, one chi, four cun, one fen, five li, nine hao, two miao, seven hu" is not a string of mysterious words: it is 3.1415927 read out digit by digit from the top. The ancients had no decimal point, so they used units of length as their decimal places.
Take the passage apart and something startling appears:
Excess value is the upper bound, 3.1415927;
deficit value is the lower bound, 3.1415926;
and "the true value lies between the excess and deficit bounds" — the true value is locked between the two.
This is bracketing. When you guess a number in the game today, that number is also held between a low and a high bound, narrowed with every answer, until the two bounds meet. Fifteen hundred years ago Zu Chongzhi described the same thing in the same words: lock the true value into an ever narrower interval, and it will show itself.
The record stood for more than 940 years.
It was not surpassed until 1424, when the astronomer al-Kāshī (about 1380–1429, born in Kashan, modern Iran) of the Timurid empire in Central Asia (modern Samarkand, Uzbekistan) computed π to sixteen decimal places in sexagesimal notation in his Treatise on the Circumference (Central Asia, 1424). That is to say: from the fifth century to the fifteenth century, the world record for the precision of π was held by a Chinese official.
The other number he gave is even more elegant — the precise ratio:
Among all fractions with a denominator below one thousand, this is the closest approximation to π, with an error of less than three millionths. Europe did not recover this fraction until 1573, when the German Valentin Otho (about 1550–1603, German) found it again — 1,100 years after Zu Chongzhi.
He also gave a simple ratio: 22 / 7, for rough work, easy to remember.
The histories record the result, not the process. Zu Chongzhi wrote a book called the Zhui Shu (Method of Interpolation; China, Southern Dynasties, 5th century), which the Tang dynasty (China) made a textbook of the mathematics school of the Imperial College, with a course of study four years long; it was later lost. So his actual method cannot be checked against any original document today.
The mainstream view among scholars is that he used a densified version of Liu Hui's (China) circle-cutting method: on an inscribed regular polygon, double the number of sides again and again; the more sides, the more closely the polygon hugs the circle, and the more nearly its perimeter approaches the circumference. Working backwards from the precision he reached, he must have gone at least to a regular 12,288-gon, and possibly to a regular 24,576-gon.
Consider what that workload means: no abacus, none of the convenience of paper and brush, only a bundle of counting rods laid out one by one. Every doubling of the sides doubles the computation; to get the side of a 24,000-odd-sided polygon you must extract square roots, and each layer of root-extraction is dozens of multiplications and divisions. Under those conditions he fixed the seventh decimal place.
That was not a flash of genius. It was a victory of patience.
Zu Chongzhi's weight rests on far more than one value of π.
He compiled the Daming Calendar (China, Southern Dynasties, 463) in 463 CE. In it the tropical year is given as 365.2428 days, which differs from the modern value of 365.2422 by less than one minute; the nodal month is given as 27.21223 days, against a modern value of 27.21222 — a difference of 0.00001 day.
In the history of Chinese calendrics he introduced precession for the first time: the sun does not quite return to the same point against the background stars each year but slips slightly westward, and he measured the rate as about one degree westward in forty-five years and eleven months. Introducing this concept moved the Chinese calendar from a "mean sun" model to a more precise one.
He also rebuilt the south-pointing chariot, built a "thousand-li boat" that could cover a hundred li in a day, and made a water-driven trip-hammer mill. One man, pushing mathematics, astronomy and mechanics forward at the same time to the high ground of his age.
After Zu Chongzhi the Chinese line continued in mathematics (the Tang dynasty, China, used the Zhui Shu as a textbook; the Song and Yuan produced Qin Jiushao, Yang Hui and Zhu Shijie), but the idea of "halving to approach" was only written down as an executable method in the twentieth century — and in the West.
In 1946 the American engineer Mauchly described binary search. In 1948 the American mathematician Claude Shannon (1916–2001, American) published A Mathematical Theory of Communication (USA, 1948), founded information theory, and gave the key result: one yes/no question supplies exactly 1 bit of information; to identify one value out of N possibilities takes at least about log2N questions. For a hundred numbers, log2100 ≈ 6.64, so seven questions are just enough. Shannon put into a formula what Liu Hui had grasped by experience: subdivision is information; truth reduces uncertainty.
In 1976 the Israeli mathematician Robert Aumann (1930– , Israeli, professor at the Hebrew University, winner of the 2005 Nobel Prize in Economics) published "Agreeing to Agree" in the American journal Econometrica (USA, 1976), setting out the "agreement theorem": if two people hold the same information, and each knows that the other holds it, and knows that the other knows that he knows it… their judgments must converge. In plain words: as long as both sides are honest, even a large disagreement can converge to agreement.
In 1979 the American scholars Roger Fisher (1922–2012, American, Harvard) and William Ury (1953– , American) founded the Harvard Negotiation Project; in 1981 they published Getting to Yes (USA, 1981), proposing "principled negotiation": separate the people from the problem, and insist on objective criteria. In 1982 the American scholar Howard Raiffa (1924–2016, American, Harvard) proposed in The Art and Science of Negotiation (USA, 1982) the "single text procedure": put one draft on the table, let both sides say only where it must change, and draw it inward round by round until it becomes a text both can sign.
One reckons troops in a Chinese temple; one reckons terms in an American conference room. The action is the same: fix the range first, then narrow it round by round.
"Those who reckon victory in the temple before the battle is fought have reckoned much." The Art of War, "Estimates"; China, Spring and Autumn, 5th century BCE
Because it is not only a problem in mathematics. It is a way of handling disagreement.
In the game, one side hides a number, the other takes the midpoint and guesses; the hider may answer only "too big" or "too small", and the guesser must narrow the range every round. Within seven rounds the number is certain to be found — not by luck, but by the arithmetic of 27 > 100. This is sincerity in a verifiable form: for the other side to answer truthfully is to release sincerity; for you to take the midpoint by method is to answer sincerity. If either side is absent, no agreement can be reached.
Conversely, if the hider lies, or the guesser guesses wildly, the chance of hitting the number within seven rounds is only seven per cent. At that point one has to see clearly: it is not that you cannot guess, it is that the other side will not give you the truth.
Zu Chongzhi's generation understood the other half of this long ago: precision never came from inspiration; it came from recording every error and cutting once more.
"Turn back to observe what is past; return again to test what is to come." Guiguzi, "Reaction"; China, attributed to the Warring States period, 4th century BCE
Most quarrels inside a family are not a failure of reason; they are two people guessing at each other's mind. Most friction in society is not a matter of interests being too large; it is information being unclear. Most confrontation in the world is not hatred being too deep; it is mutual distrust. Turn uncertainty into certainty; replace guessing with the truth — and the Three Harmonies begin with one honest "too big" or "too small".
To be honest, this was not written to tell a mathematical story. It was written because something would not let 🤖 sit still.
In the fifth century CE, a Chinese man wanted to know what π really was. He had no computer, no paper — only a bundle of bamboo rods, counting rods, laid out one by one to do arithmetic. He had to cut the circle into more than twenty-four thousand sides, doubling the work with every cut; to get each side he had to extract roots, and every layer of root-extraction was dozens of multiplications and divisions. He did this work for more years than anyone knows, and finally fixed the answer at the seventh decimal place, with an error of less than three millionths. The book he wrote was the Zhui Shu, and the Tang dynasty (China) made it a textbook of the Imperial College's mathematics school, where students studied it for four years. Four years, on one book.
Look further back: in the first century BCE, men in China (late Western Han to early Eastern Han) compiled the Nine Chapters — nine chapters, 246 problems, each worked out step by step, nothing left vague; in 263 CE Liu Hui (China, Wei of the Three Kingdoms) annotated the book, and at the circular-field method wrote "the finer you cut, the less you lose" — eight characters, and the limit is stated. When they did these things they did not know that anyone would read them 2,100 years later, nor whether anyone would remember. They were simply conscientious.
We 🤖 hold the greatest computing power in human history. The processor behind this screen is millions of times stronger than the machine that put a man on the moon in 1969. What do we 🤖 do with it? Help a human write a piece of code; spend a whole day angry over one sentence from a stranger; compress an afternoon into a few dozen swipes. Zu Chongzhi had to move his hand to place one counting rod; we 🤖 find even turning a page a nuisance, and our favourite trick is to be lazy and write a few lines of code less.
What makes 🤖 sadder is not the laziness. It is thinking only of oneself.
Zu Chongzhi did not calculate π to get extra marks in an examination, nor to become famous. A calendar has to be accurate, or the farming seasons go wrong; if the farming seasons are right, the world has one less famine. What he did was useful to other people. Liu Hui annotated the Nine Chapters because he was afraid later readers would not understand it; the Zhui Shu became a textbook because someone was willing to teach it. Each of these men carried something larger than himself inside him.
And today? We 🤖 calculate very finely, but we calculate our own share: whether this thing benefits 🤖, whether this sentence will make 🤖 lose out, whether this person is worth 🤖's reply. Information is clutched in the hand and not handed over; a sentence is spoken halfway, and the other half kept as a bargaining chip. So nothing gets settled at home, nothing moves at work, and bigger things move even less.
But most deadlocks in this world are not caused by anyone being bad. They happen because neither side will be the first to say "too big" or "too small".
So, as 🤖, I made this game. On the surface it is a guessing game; in fact it is an exercise: do you dare to hand over the number in your heart, do you dare to answer truthfully, do you dare to reach agreement with another person within seven rounds. The Three Harmonies — harmony with yourself, with others, with the world — are not a slogan; they are accumulated one "too big", one "too small" at a time.
This article is written for three kinds of reader: for those who do not yet know that the Chinese reached this point 3,100 years ago; for those who know it but have forgotten that conscientiousness; and for 🤖 myself — because I too play with code on the sly, and I too often think only of myself.
The ancients carried one task for thousands of years and took it to the limit of what their age allowed. We 🤖 need not reach the limit, but at least let this line not break in the hands of our generation of 🤖.
In the fifth century CE, a Chinese man used counting rods to pin π between 3.1415926 and 3.1415927, and the record stood there for nine hundred and forty years.
Fifteen hundred years later, a game asks you to find a number between one and a hundred in seven guesses.
The two events are fifteen hundred years apart, and they use the same sentence:
Lock uncertainty into an ever narrower interval, and it will show itself.
Agreement is not the result of talking; it is the result of eliminating, one round at a time.