Skip to main content

Command Palette

Search for a command to run...

Binary Mathematics in African and Asian Divination

How Ifá's 256 Odù, the I Ching's 64 hexagrams, and Malagasy Sikidy encode binary mathematical systems centuries before Leibniz formalized binary arithmetic.

Binary Mathematics in Divination

Two of the world's most sophisticated divination systems — Yoruba Ifá and the Chinese I Ching — are built on binary mathematics. Both encode information using two states (open/closed, yin/yang, single/double), creating vast combinatorial spaces for meaning. A third system, Malagasy Sikidy, uses the same logic at higher dimensionality (16 binary positions, 65,536 outcomes). Together they form an independent, parallel tradition of binary computation that predates the Western formalization of binary arithmetic by centuries — in Ifá's case, by millennia.

Why "binary" matters#

A binary system is one in which each unit can take only two states (commonly written 0/1, yes/no, open/closed). Combinations of binary units produce exponentially large state spaces: n binary positions yield 2ⁿ distinct outcomes. The same arithmetic underlies modern digital computing — every CPU register, every byte of memory, every disk sector resolves down to ones and zeros.

The fact that pre-modern cultures across Africa and Asia independently arrived at binary structures for systems of meaning is not an accident. Binary encoding is the smallest information unit that can still carry contrast (something vs. nothing); it is the natural primitive from which any other discrete system can be built. What is striking is not that these cultures discovered binary, but that they applied it to entire epistemologies — corpora of wisdom literature indexed by binary signatures.

Ifá: 2⁸ = 256 Odù#

The Yoruba Ifá system — preserved in Yorubaland (modern southwestern Nigeria, Benin, Togo) and across the Yoruba-Atlantic diaspora (Cuba, Brazil, Trinidad, the United States) — is the deepest binary-divination corpus in the world.

Mechanics of an Ifá cast#

A babaláwo (Ifá priest) casts the divination using either:

  1. Sixteen consecrated palm nuts (ikin) — passed between cupped hands; remaining nuts after each pass are counted to record one of two states (one or two).
  2. A divining chain (ọ̀pẹ̀lẹ̀) — eight half-shells strung together, each landing concave-up or concave-down.

Either mechanism produces an 8-bit binary signature, displayed in two parallel columns of four marks each. A single mark represents one state; a double mark represents the other. The 8-position pattern is one of 256 possible Odù.

The corpus#

Each Odù has:

  • A name (e.g., Èjì-Ogbè, Ọ̀yẹ̀kú-Méjì, Ìwòrì-Méjì).
  • An ordinal position in the canonical sequence (1 through 256), with the 16 Méjì (paired) Odù enumerated first.
  • A vast body of memorized verses (ẹsẹ Ifá) — stories, proverbs, prescriptions, songs — that the babaláwo recites and interprets.

Wande Abimbola, in Ifá Divination Poetry (1977) and Sixteen Great Poems of Ifá (1975), documents a single Odù containing dozens to hundreds of verses; the full corpus across all 256 Odù is among the largest oral literatures ever recorded.

Antiquity#

Oral tradition places the system at least 8,000 years old, originating among the Yoruba and earlier Niger-Congo peoples. Archaeological and linguistic evidence confirms it as ancient and mature long before contact with non-African binary traditions. The system's spread across the Atlantic diaspora — surviving the Middle Passage — testifies to its deep cultural embedding.

Computational equivalence#

An Ifá Odù is a single 8-bit byte in modern computing terms — 256 distinct states, indexed by an 8-position binary signature. The babaláwo's recall and interpretation operates as a kind of associative memory: given the binary index, retrieve the indexed verses. The cognitive architecture parallels a simple lookup table on a domain of 256 entries.

I Ching: 2⁶ = 64 Hexagrams#

The Chinese Yì Jīng (易經, Book of Changes) is built on six binary positions, each line either solid (yang, ─) or broken (yin, ⚋). Six lines produce 2⁶ = 64 hexagrams. Each hexagram decomposes into two trigrams (three-line units), giving the equivalent identity 8 × 8 = 64 (eight trigrams squared).

Mechanics of an I Ching cast#

Three traditional methods generate hexagrams:

  1. Yarrow stalks — fifty stalks manipulated in a multi-step process producing one of four numerical values per line (6, 7, 8, 9). Probability distribution: 6 = 1/16, 7 = 5/16, 8 = 7/16, 9 = 3/16.
  2. Three coins — three coins thrown six times. Probability distribution: 6 = 1/8, 7 = 3/8, 8 = 3/8, 9 = 1/8. Distribution differs from yarrow stalks; the choice of method affects the rate at which "changing lines" appear.
  3. Single-line digital — modern method using random number generation; recovers the yarrow distribution computationally.

In each method, even results (6, 8) are yin lines and odd results (7, 9) are yang lines; 6 and 9 are changing lines that mark transformation between the cast hexagram and its derived hexagram.

Hierarchy#

| Level | Component | Count | |---|---|---| | Bigram | Two lines | 4 | | Trigram | Three lines (an arrangement of yin and yang) | 8 | | Hexagram | Six lines (two stacked trigrams) | 64 | | Line | Individual yin or yang within a hexagram | 384 (64 × 6) |

The 64 hexagrams in the King Wen sequence have been the canonical ordering since at least the 11th century BCE.

Leibniz and the binary encounter#

In 1703, Gottfried Wilhelm Leibniz — already known for his work on infinitesimal calculus — published "Explication de l'Arithmétique Binaire" in the Mémoires de l'Académie Royale des Sciences, formalizing binary arithmetic in the modern sense. That same year, Leibniz received from Jesuit missionary Joachim Bouvet an arrangement of the I Ching hexagrams (Shao Yong's earlier Fu Xi sequence) showing the 64 hexagrams in a binary-numerical order. Leibniz wrote back, astonished: the Chinese arrangement perfectly matched the binary numbers from 0 (six broken lines, ䷁) to 63 (six solid lines, ䷀).

Leibniz did not learn binary from the I Ching — he had developed it independently — but he recognized in the hexagrams a parallel system that confirmed the universality of binary representation. The Bouvet–Leibniz correspondence, preserved at the Niedersächsische Landesbibliothek in Hannover, is the earliest documented Western recognition that East Asian thought had encoded binary mathematics centuries before European formalization.

Sikidy: 2¹⁶ = 65,536 outcomes#

The Malagasy sikidy divination, practiced by the Antemoro and other Malagasy communities, uses 16 binary rows. Seeds (fano) are randomly grouped and the parities recorded. The 16-row table generates 2¹⁶ = 65,536 possible base configurations — and through subsequent derived rows, an even larger working space.

Sikidy is widely regarded as a transmission of Arabic ʿilm al-raml (geomancy) into Madagascar via medieval Indian Ocean trade routes, but its computational sophistication and ritual integration into Malagasy life are distinct. Sikidy practitioners (ombiasy) calculate complex derived rows that act as logical operations (essentially XOR and AND across pairs of rows), producing dependencies and "agreements" between rows that the diviner reads as the answer.

Geomancy: 2⁴ = 16 figurae#

The Arabic ʿilm al-raml ("the science of sand") emerged in the 9th–10th century in North Africa and the Levant, and migrated into medieval and Renaissance Europe under the name geomancy or Ars Geomantica. Its base unit is a 4-line binary signature (each line either single or double), generating 16 figurae with names like Via, Populus, Albus, Rubeus, Fortuna Major. Each figura has astrological, elemental, and planetary associations.

Geomantic charts combine 4 base figurae (the "Mothers"), 4 derived figurae (the "Daughters"), 4 "Nieces", 2 "Witnesses", and 1 "Judge" — fifteen positions total, each computed by binary XOR-like operations on pairs of preceding figurae. The system functioned as a portable, ink-on-paper divination across Islamic civilization and was practiced from West Africa to Persia.

Geomancy as the bridge#

Geomancy is the most plausible historical bridge between African and Asian binary traditions: it is binary, it is Islamic-Arabic in its mature form, and its 16-figura corpus closely matches the structure of West African Fa / Vodun divination (a sister tradition to Ifá) and Malagasy Sikidy. The transmission is not fully resolved — whether Africa or the Islamic Mediterranean is the originator is debated — but the family of binary-divination systems clearly forms a single Afro-Asian network rather than independent inventions.

Comparison table#

| System | Bits | Combinations | Origin | Documented antiquity | |---|---|---|---|---| | Geomancy / ʿilm al-raml | 4 | 16 | North Africa, Arab world | 9th c. CE textual; 13th c. CE in Latin Europe | | Trigram (I Ching) | 3 | 8 | China | Pre-1000 BCE | | I Ching hexagram | 6 | 64 | China | 11th c. BCE (King Wen sequence) | | Ifá Odù | 8 | 256 | West Africa (Yoruba) | Oral tradition: millennia; archaeological corroboration: 1st millennium CE | | Sikidy | 16 | 65,536 | Madagascar | Arabic-influenced; mature form by 11th–13th c. CE |

Cognitive and philosophical significance#

Binary divination is not "computers but worse." It is binary mathematics applied to a different problem domain than the one digital computing addresses. Where a modern CPU uses binary state to perform arithmetic and logic, these traditional systems use binary state to index vast oral and ritual corpora — the binary signature is a hash into a body of memorized poetry, story, and prescription.

Three properties make these systems remarkable:

  1. Information density. A single Ifá Odù compresses an entire body of contextual wisdom under one 8-bit address; the babaláwo's role is decompression through performance.
  2. Robustness. The binary signature is reproducible (anyone can verify the cast) but the verse selection allows interpretive skill — the system is rigorous and humanistic.
  3. Cultural adaptability. Ifá survived the Middle Passage; the I Ching survived multiple Chinese dynasties; geomancy migrated from Africa into Europe and back. The binary core is so simple that it transmits intact across catastrophic discontinuities.

Connection to this knowledge base#

Binary divination is the primary example of how this wiki's modules connect:

  • The Manāzil al-Qamar module's 28-mansion division is a parallel indexing scheme — not binary but lunar — drawing on Arabic, Indian, and Chinese strands.
  • The I Ching module documents the 64 hexagrams as data records; this article frames them as a binary mathematical system.
  • The African Diaspora module's tradition pages cover the cultural and ritual context of Ifá and its diasporic cognates.
  • The Sacred Geometry module's "African Fractals" article documents Ron Eglash's parallel finding: the recursive geometric thinking that produced binary divination also produced fractal architecture.

Sources#

  • Abimbola, Wande. Ifá Divination Poetry. NOK Publishers, 1977.
  • Abimbola, Wande. Sixteen Great Poems of Ifá. UNESCO, 1975.
  • Bascom, William. Ifá Divination: Communication Between Gods and Men in West Africa. Indiana University Press, 1969.
  • Eglash, Ron. African Fractals: Modern Computing and Indigenous Design. Rutgers University Press, 1999. (See chapter on the African origin of binary code.)
  • Leibniz, G. W. "Explication de l'Arithmétique Binaire." Mémoires de l'Académie Royale des Sciences, 1703.
  • Smith, David Eugene, and Yoshio Mikami. A History of Japanese Mathematics. Open Court, 1914 (on early Asian binary).
  • Skinner, Stephen. Geomancy in Theory and Practice. Golden Hoard Press, 2011 (on ʿilm al-raml and its European reception).
  • Verin, Pierre, and Narivelo Rajaonarimanana. "Divination in Madagascar: The Antemoro Case and the Diffusion of Divination." In African Divination Systems: Ways of Knowing, ed. Philip Peek, Indiana University Press, 1991.