Roy Andrade on the right of a black and neon pink cryptocurrency banner with Bitcoin, Ethereum, a world map and a coastal scene.
Approved white-gold Kickoff Ministry coin with interlocking KM initials, a cross, and neon pink and cyan circuitry.
TheKickoffBlockchain

Sunzi’s Remainder Problem: Recovering Numbers from Partial Information

Kickoff Ministry coin and Roy Andrade portrait with mathematics, calculation, and computer artwork

The Sunzi Suanjing, or Mathematical Classic of Master Sun, makes calculation a sequence of actions that a reader can follow. Its date is uncertain, conventionally falling somewhere between the third and fifth centuries CE. O’Connor and Robertson (2003) explain why a precise year is difficult to defend: the surviving text may combine material written or revised at different times. References to taxation and measurement help date particular passages, but they need not date every part of the work. The author is also distinct from the much earlier military writer associated with The Art of War. In its received form, the mathematical classic has three chapters. These include instructions for arithmetic with counting rods and problems involving quantities, fractions, areas, and volumes. This practical setting matters for its celebrated remainder problem. The procedure belongs to a larger effort to make numerical work reproducible through ordered operations. It is possible to appreciate that achievement without supplying an invented biography or assuming that the version preserved today exactly matches a single original manuscript. The text is evidence for a tradition of computation whose transmission is itself part of the historical problem.

The famous example asks for a quantity that leaves two objects when grouped in threes, three when grouped in fives, and two when grouped in sevens. The stated answer is twenty-three. More revealing than the answer is the construction used to obtain it. In Shen’s (1988) account of the original procedure, the three remainders are multiplied by seventy, twenty-one, and fifteen respectively. Thus two times seventy gives 140, three times twenty-one gives 63, and two times fifteen gives 30. Their sum is 233. Subtracting 210 produces twenty-three, which meets all three conditions. A reader can verify it directly: twenty-three contains seven groups of three with two left over, four groups of five with three left over, and three groups of seven with two left over. The method therefore combines information from three separate counts into one answer. It also replaces an open-ended search through possible quantities with a short calculation. The particular multipliers deserve attention because they are not ordinary weights attached arbitrarily to the three measurements. Each has been chosen to preserve one remainder condition while avoiding interference with the other two.

Modern arithmetic makes that last feature especially clear. Seventy is divisible by five and seven but leaves one when divided by three. Twenty-one is divisible by three and seven but leaves one when divided by five. Fifteen is divisible by three and five but leaves one when divided by seven. Multiplying each by its required remainder and adding therefore assembles the three conditions. Subtracting 105 changes none of them, since 105 is divisible by all three divisors. Patterson (2026) uses these checks to distinguish the historical procedure from a general modern Chinese remainder algorithm. The distinction preserves what the text actually supplies: a numerical construction and a rule for these divisors, expressed without modern congruence notation. For a fresh illustration of the same arithmetic, remainders of one, two, and three give 70 + 42 + 45 = 157; subtracting 105 yields fifty-two, which satisfies those altered conditions. This example is a modern demonstration, not an additional ancient problem. The procedure’s meaning lies in coordinating partial information through deliberately chosen numbers. Its relationship to a modern theorem is illuminating, while the historical text remains a work of computation with its own form, examples, and limits.

References

O’Connor, J. J., & Robertson, E. F. (2003, December). Sun Zi. MacTutor History of Mathematics, University of St Andrews. https://mathshistory.st-andrews.ac.uk/Biographies/Sun_Zi/

Patterson, B. (2026, October 6). Chinese remainder theorem. Teaching Computation in the Sciences Using MATLAB, Science Education Resource Center, Carleton College. https://serc.carleton.edu/teaching_computation/workshop_2026/activities/312912.html

Shen, K. (1988). Historical development of the Chinese remainder theorem. Archive for History of Exact Sciences, 38(4), 285–305. https://people.math.harvard.edu/~knill/crt/lib/Kangsheng.pdf

Disclaimer: Health articles may include material adapted from the National Institutes of Health (NIH), which does not endorse this website. Market charts are provided by TradingView. All content is for educational and informational purposes only; Kickoff Ministry does not provide medical or financial advice.