posts / History

Counting Rods: The Forgotten Algorithm That Ruled for Two Thousand Years

phoue

10 min read --

The Story of the ‘Ancient Computer’ That Led East Asian Mathematics Before the Abacus

  • Understand why counting rods were not just simple calculation sticks but a complete algorithmic system.
  • Learn how advanced mathematical concepts like zero, negative numbers, and simultaneous equations were implemented ahead of their time.
  • Discover the implications of counting rods’ history for modern computational thinking education.

The Story Before the Calculator

What comes to mind when you think of a ‘calculator’? Most would think of the abacus or electronic calculators. But before the abacus swept through East Asia, there was a great ‘ancient computer’ called counting rods (算木) that dominated the intellectual world of East Asians for nearly two thousand years.

People often misunderstand counting rods as a primitive form of the abacus, but this is incorrect. Counting rods were not just simple counting tools; they were cutting-edge calculation devices with a complete system. They physically represented abstract algebraic concepts centuries ahead of the West using rods. Let’s follow the thrilling journey of this forgotten hero that ruled intellectual thought beyond mere calculation.

Chapter 1: The Birth of the Ancient Computer

Long Ago, Born from Practical Needs

The earliest appearances of counting rods are surprisingly found not in math books but in philosophical and military texts. As early as the 5th century BCE during China’s Warring States period, numbers expressed with counting rods appeared on coins, showing that counting rods were created to solve practical problems like tax collection and commerce.

The great thinker Laozi said in the “Tao Te Ching,” “A truly skilled calculator does not rely on counting rods (善數不用籌策).” Paradoxically, this proves how widespread counting rods were as a symbol of calculation in the intellectual society of the time. Even the strategist Sunzi mentioned counting rods to calculate war victory probabilities.

In the 1950s and 1970s, actual counting rod artifacts were discovered in ancient tombs, turning these records into vivid reality. Counting rods were not pure mathematical curiosities but products of applied sciences such as taxation, calendars, and military strategy. This practical origin fundamentally gave counting rod calculation its procedural and logical, i.e., algorithmic nature, much like modern computer programming.

Counting rod artifacts found in ancient tombs
Counting rod artifacts found in ancient tombs

The Convention Embedded in Bamboo Rods

What did this ancient computer look like? According to the “Han Shu” (Book of Han) “Treatise on Calendars and Laws,” counting rods were mainly made of bamboo, about 14 cm long and 0.7 cm in diameter. They were carried in hexagonal containers holding 271 rods, suggesting a professional tool.

By the Han dynasty, standardization meant counting rods were no longer personal tools but state-recognized cognitive tools. This was a crucial foundation for spreading a common mathematical language across East Asia. This elegant tool was called slightly different names in Korea (sangaji, sanmok), China (sanzhu), and Japan (sanki), but all explored the world of mathematics with the same system.

Chapter 2: The Secret of a Design Ahead of Its Time

The Magic of Ten Columns, Place-Value System

The greatest feature of the counting rod system was its perfect use of the decimal place-value system. On the calculation board, the value of rods was determined by which ‘column’ they were placed in. From right to left, the places were units, tens, hundreds, thousands. Moving a number one column to the left multiplied its value by exactly 10. This was a revolutionary breakthrough in mathematical history that enabled very efficient complex calculations.

Vertical and Horizontal, The Aesthetic of Alternation

How did ancient East Asian mathematicians distinguish place values when representing numbers like ‘123’ with rods?

Advertisement

They ingeniously solved this by alternating the direction of rods for each place value. Odd places like units and hundreds were placed vertically (縱), while even places like tens and thousands were placed horizontally (橫). For example, ‘12’ was represented by one horizontal rod (ten) and two vertical rods (units), looking like ‘⊤∣∣’, which was clearly distinct from ‘3’ represented by three vertical rods ‘∣∣∣’. An elegant design indeed.

Vertical (縱) and horizontal (橫) placement of counting rods
Vertical (縱) and horizontal (橫) placement of counting rods

Seeing the Invisible: Zero, Negative Numbers, Fractions

The true greatness of counting rods lies in physically embodying invisible abstract concepts.

  • Discovery of Zero: When a place value was empty, it was simply left as a blank space. Before other civilizations invented the symbol ‘0’, East Asians had already perfectly implemented the concept of a placeholder physically. This blank space was zero.
  • Concept of Debt, Negative Numbers: While European mathematics took centuries to accept negatives, East Asia freely handled negatives by using red rods (positive) and black rods (negative) or by placing the last rod diagonally. This developed naturally from the practical concept of ‘debt’ when solving simultaneous equations in the “Nine Chapters on the Mathematical Art.”
  • Representation of Division, Fractions: Numerators were placed above and denominators below with rods, almost identical to modern fraction notation.
Arabic NumeralVertical Placement (units, hundreds…)Horizontal Placement (tens, thousands…)
1
2∣∣=
3∣∣∣
4∣∣∣∣
5∣∣∣∣∣
6
7⊤∣
8⊤∣∣
9⊤∣∣∣
Example: 2024∣∣ (space) ∣∣ ∣∣∣∣
Example: 0(space) or 〇
Example: -47≡≡╱ (diagonal rod for negative)

Chapter 3: Algorithms Unfolding at Fingertips

Calculating Like a Machine, Thinking Like a Human

Calculation with counting rods, called chusan (籌算), was a physical and procedural process of moving rods according to fixed rules—algorithms. Complex multiplication and division were solved by rearranging rods on the board in a prescribed order.

Interestingly, the counting rod calculation process closely resembles how modern computers operate. The board acted as ‘memory’ storing data, the mathematician’s hand as the ‘CPU’ performing operations, and the calculation rules as ‘software (algorithms)’. This naturally trained logical problem-solving by breaking down problems into stepwise procedures.

Advanced Mathematics Beyond Basic Arithmetic

Counting rod calculations truly shined in solving higher-level problems.

  • Root Extraction (開方術): Algorithms for square roots (√) and cube roots (∛) that iteratively refined approximations. Remarkably, this is essentially the same principle as the modern numerical method known as Horner’s method.
  • Simultaneous Equations and Matrices: The “Nine Chapters” method for solving simultaneous equations arranged coefficients on the board like a table and eliminated variables by adding and subtracting rows. This is functionally identical to modern Gaussian elimination using matrices. Counting rods and the board acted as a giant matrix calculator.
  • Algebraic Peak, Tianyuan Method (天元術): A method to form and solve high-degree polynomial equations with unknown x, called ‘Tianyuan’. Coefficients were stacked visually from constants to linear and quadratic terms, then solved by an algorithm similar to synthetic division.

Chapter 4: Joseon Opens the Golden Age of Counting Rods

Pride Kept Alone

While commerce flourished in China and Japan and the abacus became popular for fast calculation, Joseon uniquely preserved and further developed counting rods. This was because the state-run technical examination, the japgwa (雜科), valued theoretical mathematics solving complex equations over simple arithmetic. Thanks to this, Joseon mathematicians could explore deep algebra using counting rods.

Joseon’s Math Superstar, Hong Jeong-ha

The golden age of Joseon mathematics blossomed in the 18th century under the middle-class mathematician Hong Jeong-ha (洪正夏). His book “Gu-iljip (九一集)” details solving 10th-degree polynomial equations using counting rods and the Tianyuan method—a level of algebra unimaginable with the abacus.

Joseon late-period mathematician Hong Jeong-ha’s book “Gu-iljip (九一集)” showcasing advanced polynomial solving (Tianyuan method)
Joseon late-period mathematician Hong Jeong-ha’s book \"Gu-iljip (九一集)\" showcasing advanced polynomial solving (Tianyuan method)

Equation problems from Hong Jeong-ha’s “Gu-iljip”

Advertisement

In 1713, a dramatic event showcased his fame. When Qing dynasty envoy He Guozhu (何國柱) visited Joseon and boasted of his math skills, Hong Jeong-ha competed with him. Hong solved a complex equation posed by He on the spot using the Tianyuan method, astonishing him. This episode symbolizes the intellectual encounter between Joseon’s peak traditional algebra centered on counting rods and Qing’s absorption of Western mathematics.

Chapter 5: The Hero’s Lonely Exit

The Challenger of Speed, The Abacus

Even the counting rods that held the throne in Joseon eventually faced a new challenger: the abacus. For everyday addition and subtraction, the abacus was much faster. I like to compare this competition as ‘a high-performance workstation (counting rods) for experts’ versus ‘a smartphone (abacus) for daily use.’ Counting rods were optimized for complex polynomial solving, while the abacus excelled in quick, simple calculations. Ultimately, versatility won.

The abacus, advantageous for fast and practical calculations, eventually prevailed with the times.
The abacus, advantageous for fast and practical calculations, eventually prevailed with the times.

The Great Wave, Arrival of Western Mathematics

However, what truly ended counting rods was Western mathematics introduced during the late 19th-century modernization. New schools taught Arabic numerals and written calculations, part of a national modernization project. The decline of counting rods was not just a technological defeat but a civilizational shift as East Asia’s unique mathematical world was absorbed into a Western-centered global knowledge system.

Chapter 6: The Echo That Never Fades

Traces Remaining Around Us

Though counting rods’ life as a calculation tool ended, their spirit lives on in our culture and language.

  • In Language: The phrase “breaking the counting rod container (산통을 깨다)”, meaning “to ruin something going well,” refers to the container used to hold counting rods when casting lots.
  • In Food: The name of the skewer dish ‘sanjeok (散炙)’ comes from the resemblance of skewered ingredients scattered like counting rods.

Reborn in the Classroom

Surprisingly, counting rods are returning as valued educational tools. Playing with counting rods helps children develop arithmetic skills as well as spatial perception and creativity through shape formation.

Children learning mathematical principles through counting rod play
Children learning mathematical principles through counting rod play

Moreover, the procedural nature of counting rod calculations is highly effective for teaching computational thinking emphasized in modern STEM education. Manipulating rods according to fixed rules to solve problems is the best way to physically learn the basics of algorithms. The legacy of counting rods has evolved from ‘calculation’ to ’training in how to think.’

Comparison / Alternatives

Counting Rods vs Abacus: What Was Different?

CategoryCounting Rods (算木)Abacus (籌板)
StrengthsFavorable for advanced mathematics and algebra like high-degree polynomials and matricesExtremely fast for basic arithmetic like addition and subtraction
PrincipleAlgorithmic, procedural manipulation based on place-value systemImmediate calculation through physical bead movement
UsersProfessional mathematicians, state technical officialsMerchants, general public
WeaknessesSlow for everyday calculationsUnsuitable for solving complex algebraic problems
SignificanceTraining tool for algorithmic thinkingPopularization of calculation and commercial practicality

Conclusion

The journey of counting rods tells us much:

  1. Tools shape thinking: Moving rods on a board naturally cultivated algorithmic thinking, closely aligned with the spirit of modern computer science.
  2. A system ahead of its time: Counting rods visually and physically embodied decimal notation, zero, negative numbers, and matrix concepts—a timeless mathematical system.
  3. Pride of Joseon mathematics: Through counting rods, Joseon reached the highest level of East Asian algebra, culminating in Hong Jeong-ha’s “Gu-iljip.”

Though counting rods have vanished into history, their logical principles and wisdom are being revived in today’s computational thinking education. Beyond museum artifacts, why not revisit counting rods as excellent tools for educating our children’s future?

Advertisement

References
  • Counting Rods (算가지) - Encyclopedia of Korean Culture. Link
  • Numeral Systems - Wikipedia. Link
  • Counting rods - Wikipedia. Link
  • Counting Rods - Namu Wiki. Link
  • Counting Rod Play - Korean Folk Encyclopedia. Link
  • Chinese Counting Rods: Their History, Arithmetic Operations, and Didactic Repercussions. Link
  • Rod calculus - Wikipedia. Link
  • Why All Countries Use Arabic Numerals - YouTube. Link
  • East Asian mathematics - Britannica. Link
  • “Don’t Break the Counting Rod Container!” - Chosun Ilbo. Link
  • Tianyuan Method (天元術) - Encyclopedia of Korean Culture. Link
  • Hong Jeong-ha - Namu Wiki. Link
  • Computational Thinking - Wikipedia. Link
  • Abacus (籌板) - Encyclopedia of Korean Culture. Link
  • What Was Mathematics Like in Joseon? Joseon’s Genius Mathematician Hong Jeong-ha! - YTN Science. Link
  • Hong Jeong-ha (洪正夏) - Encyclopedia of Korean Culture. Link
  • Study on the Evolution of Mathematical Expressions in Joseon Mathematics - ScienceON. Link
  • Sanjeok (散炙) - Encyclopedia of Korean Culture. Link
#Counting Rods#Ancient Mathematics#Algorithm#Joseon Mathematics#Mathematics History#Computational Thinking

Recommended for You

Declining Joseon, 『Jeonggamrok』 as the People's Hope: Where Is Your Map to the Future?

Declining Joseon, 『Jeonggamrok』 as the People's Hope: Where Is Your Map to the Future?

11 min read --
5 Secret Principles Behind the Success of M&M's, Snickers, and Mars

5 Secret Principles Behind the Success of M&M's, Snickers, and Mars

5 min read --
The Iron Kingdom Goguryeo: How It Defeated the 'Greatest Emperor' Tang Taizong

The Iron Kingdom Goguryeo: How It Defeated the 'Greatest Emperor' Tang Taizong

5 min read --

Advertisement

Comments