The History of Math · Episode 08 · Act II

The Red and Black Rods of Chang’an

Han China calculates with bamboo rods on a board, solves three grains at once by eliminating columns, and Liu Hui explains why it all works.

1:49 / 3:50

This is the live scene the video is rendered from: every number is computed as it plays. Narrated with two voices and an original score; the captions are drawn into the picture.

Play all episodes in order, from this one →

How to read the picture

  • Record: what survives
  • Reading: a guess about meaning
  • Schematic: an illustration, not a copy
  • Error: a seam that doesn't hold

The ledger

Computed by the scene in your browser, and checked again in Python when this page was built.

2,306 in counting rods2 flat · 3 upright · an empty column · 6 upright
Problems in the Nine Chapters38 + 46 + 20 + 24 + 28 + 28 + 20 + 18 + 24 = 246
Chapter 8, problem 1 (dou per bundle)3, 2, 1 → 39 · 2, 3, 1 → 34 · 1, 2, 3 → 26
Columns after elimination(3, 2, 1, 39) · (0, 5, 1, 24) · (0, 0, 36, 99)
Top, middle and low grain9 1/4 · 4 1/4 · 2 3/4; every total checks
Liu Hui's commentary (263) to Gauss (1809)1,546 years
Liu Hui's areas, radius 16: 2.59808 · 12: 3.00000 · 24: 3.10583 · 48: 3.13263 · 96: 3.13935 · 192: 3.14103
His bounds at 192 sides3.14103 < ratio < 3.14271
Archimedes' 96-gon walls (Episode 06)3.14103 < ratio < 3.14271

The episode

Clip A · A Board That Counts · 0–78.445 s

  1. NARRATORThis is Chang’an, the capital of Han China.
  2. NARRATORHan officials and scribes did their sums with bamboo rods, laid out on a board.
  3. NARRATOREpisode eight. The Red and Black Rods of Chang’an.
  4. SHEIn 1983, archaeologists in Hubei, China, opened a tomb sealed around 186 BCE.
  5. HEInside were about two hundred bamboo strips, the Suan shu shu, a book of numbers and calculation.
  6. SHECalculations like these were done with counting rods, laid out in columns on a board.
  7. HEOnes stand upright, tens lie flat, hundreds stand again, so neighbouring columns never blur.
  8. SHE2,306 is two flat, three upright, a gap, then six.
  9. HEThe gap holds the place, but it isn’t a zero sign yet, that comes in episode nine.
  10. SHESlide a rod one column left.
  11. HEAnd it’s worth ten times more.

Clip B · Columns of Grain · 78.445–144.447 s

  1. SHEThe Nine Chapters, a classic of Han China, has 246 problems and a chapter on rectangular arrays.
  2. HEIn problem one, 3 bundles of top grain, 2 of middle and 1 of low yield 39 dou.
  3. SHETwo other mixes yield 34 and 26, and each mix becomes a column of rods.
  4. HEMultiply one column, subtract another, and repeat, until a single grain stands alone.
  5. SHELow grain is 2¾ dou a bundle, middle 4¼, top 9¼, and every total checks.
  6. HESubtractions can drop below nothing, so the chapter gives rules for positive and negative numbers.
  7. SHEToday it’s called Gaussian elimination, a name it picked up in the twentieth century.
  8. HERed rods for what you have.
  9. SHEBlack rods for what you owe.

Clip C · Cut Until Nothing Is Lost · 144.447–230.442 s

  1. SHEIn 263 CE in China, Liu Hui wrote a commentary on the Nine Chapters, explaining why its rules work.
  2. HEFor the circle, he doubled a hexagon’s sides again and again, with right triangles alone.
  3. SHEAt 192 sides, the area traps the circle’s ratio between 3.14103 and 3.14271.
  4. HEThose are Archimedes’ walls from episode six, to five places, reached through areas instead.
  5. SHEHe wrote, cut again and again until it can’t be cut, and nothing is lost.
  6. HEChang’an joins our global section, and the myth that Chinese math had no proofs becomes our eighth error.
  7. SHERods to count with.
  8. HEAnd reasons to trust them.
  9. NARRATORFollow for episode nine, and explore every number yourself at crackinmath.com.
  10. NARRATORDid you learn Gaussian elimination at school? Tell us in the comments.

Record, reading and error

Record. The Suan shu shu, about 200 bamboo strips, was found in tomb 247 at Zhangjiashan in Hubei, sealed around 186 BCE and excavated in 1983–84. The Nine Chapters on the Mathematical Art has 246 problems; its eighth chapter, fangcheng, solves systems of equations by eliminating columns laid out on a counting board, and gives rules for positive and negative numbers. Problem 1 asks for the yield of top, middle and low grain from three mixed bundles. Liu Hui's commentary of 263 CE says red rods stand for positive numbers and black for negative, doubles polygons inside a circle to 192 sides to bound the ratio, keeps 157/50 for use, and writes that cutting again and again until nothing can be cut leaves nothing lost.

Reading. The rule that rod digits alternate upright and flat is first written down in the Sunzi Suanjing, about 400 CE; earlier boards are assumed to follow it. The name “Gaussian elimination” attached to the method in the twentieth century; Gauss used elimination in 1809.

Schematic. The tomb, strips, board, rod shapes, commentary page and polygons are illustrations. The example 2 − 5 = −3 in red and black rods shows the rule; it is not a problem from the text.

Error. “Chinese mathematics was practical recipes without proof” is wrong. Liu Hui's commentary explains why the Nine Chapters' procedures work, and bounds the circle by reasoning that reaches the same walls as Archimedes.

Sources

  • A global history of mathematics: from the earliest evidence to the 1930s, section 4 (series source manuscript).
  • Shen Kangshen, John N. Crossley and Anthony W.-C. Lun, The Nine Chapters on the Mathematical Art: Companion and Commentary, Oxford University Press, 1999.
  • Karine Chemla and Guo Shuchun, Les neuf chapitres: le classique mathématique de la Chine ancienne et ses commentaires, Dunod, 2004.
  • Christopher Cullen, The Suàn shù shū ‘Writings on reckoning’, Needham Research Institute, 2004.
  • Joseph F. Grcar, “How ordinary elimination became Gaussian elimination”, Historia Mathematica 38 (2011).

Every claim on screen is listed with its source; a line-by-line check against them is ongoing, and corrections are welcome.