Loading...
Loading...
How Pingala encoded poetic meters in binary notation around 200 BCE — inventing what we now call binary arithmetic, Pascal's triangle, and combinatorics
Around 200 BCE, an Indian prosodist trying to organise poetry discovered a mathematical tool that would, 2000 years later, become the foundation of the digital revolution. Pingala didn't need computers — he just needed good poetry.
In Sanskrit poetry, each syllable is either "laghu" (light, short) or "guru" (heavy, long). An 8-syllable meter could have 2⁸ = 256 possible rhythmic patterns. The question was: how to systematically enumerate all these patterns?
Pingala's answer: encode L = 0, G = 1. Then all 2ⁿ combinations correspond to binary numbers. Example: "LLG" = 001 (binary) = 1 (decimal). "GLG" = 101 = 5.
This discovery wasn't accidental — it was a systematic mathematical approach needed for organisation. Pingala developed algorithms that could generate all possible patterns for any n-syllable meter.
Pingala's "dvih shunye" ("two zeros") rule: to convert a meter number to binary —
1. If number is odd: subtract 1, note "G" (guru=1)
2. If even: divide by 2, note "L" (laghu=0)
3. Repeat until number reaches 0
4. Read noted syllables in reverse = binary representation
This is exactly the algorithm taught in schools today for decimal-to-binary conversion.