Section 01

A Mathematical Text in Mystical Dress

Sefer Yetzirah (ספר יצירה, “The Book of Formation”) is among the shortest, oldest, and most enigmatic texts in the Jewish mystical canon — six brief chapters, dated by current scholarship to between the 2nd and 6th centuries CE, with critical editions disagreeing on details. It is also one of the most mathematically explicit sacred texts in any tradition: a short book whose central content includes combinatorial counts, an explicit factorial sequence, and a self-aware description of the alphabet as a generative arithmetic structure.

Why this text matters here

Most pages on Codex Numerica catalogue numerical patterns that readers have found in sacred texts. Sefer Yetzirah is different: the text itself performs the combinatorial mathematics it discusses. The 231 gates and the factorial sequence are stated in the book’s own words, not in a later commentary. Where elsewhere we apply the methodology of §Statistical Methodology to claims found about a text, here the text’s own arithmetic is the primary content.

Early commentators recognised this. Judah Halevi’s Kuzari (12th century) treats Sefer Yetzirah as mathematical-linguistic theory, not mysticism in the sense the term acquired in later Kabbalah. Modern scholarship (Hayman 2004, Glaz 2021) reads the text as something between proto-combinatorics and contemplative practice.

verified — The textual structure described below is the consensus reading of the standard critical edition (Hayman, Mohr Siebeck, 2004) and the popular Kaplan edition (Weiser, 1997).

Section 02

The 32 Paths — 10 Sefirot + 22 Letters

verified textual structure   primary cosmology (belief content)

The book opens with one of the most quoted sentences in Jewish mysticism:

“In 32 mystical paths of wisdom did Yah, the Lord of Hosts, engrave … and create his universe with three books: with text, with number, and with communication.”

Sefer Yetzirah 1:1 (Kaplan ed.).

The Decomposition

32 paths = 10 sefirot + 22 Hebrew letters

The number 32 is not arbitrary; the text itself decomposes it explicitly. The 10 sefirot are the divine numerical principles, and the 22 letters are the building blocks of language and creation.

The 22 Letters — 3 + 7 + 12

The 22 letters are further classified by the text itself into three groups:

The 3 + 7 + 12 Partition

GroupLettersCountMapped to
Three “mothers” א (Aleph)   מ (Mem)   ש (Shin) 3 Three elements: air, water, fire
Seven “doubles” ב ג ד כ פ ר ת 7 Seven classical planets / days of the week
Twelve “simples” ה ו ז ח ט י ל נ ס ע צ ק 12 Twelve zodiac signs / months

The 7 doubles are letters with two pronunciations (hard/soft); the 3 mothers are vocalic anchors; the 12 simples are the remainder. The classification is the text’s own — an explicit combinatorial taxonomy, c. 2nd–6th century CE.

3 + 7 + 12 = 22 — Mapped onto a Tripartite Cosmos

The text correlates the three letter groups with three corresponding cosmological partitions: 3 elements (air, water, fire), 7 planets and 7 days of the week, 12 zodiac signs and 12 months. The arithmetic of 3 + 7 + 12 = 22 is fixed; the cosmological mapping is primary doctrine. This is the kind of structural correspondence that earned the text its reputation as a generative theory of language and cosmos.

verified — The 32 = 10 + 22 decomposition and the 3 + 7 + 12 partition of the 22 letters are direct readings of the text’s opening chapters; both are explicitly stated in the book itself.

Section 03

The 231 Gates — Combinatorics as Liturgy

verified mathematics   remarkable mnemonic

The book’s most striking mathematical statement appears at Sefer Yetzirah 2:4–5 (Kaplan numbering):

“Twenty-two foundation letters: He placed them in a circle … with 231 gates. The circle rotates back and forth.”

Sefer Yetzirah 2:4 (Kaplan ed.). The image is a circle of 22 letters with every pair joined by a chord; the chords are the “gates.”

The Combinatorial Identification

The number 231 is exactly the count of unordered pairs of 22 letters:

C(22, 2) = (22 × 21) / 2 = 462 / 2 = 231

Geometrically, the 22 letters arranged on a circle with all chords drawn produce the complete graph K₂₂, whose 231 edges are the “gates” of the text. This is — in plain language — an explicit binomial-coefficient computation, performed in a religious text dating to the early common era.

Interactive: the 231 Gates as K₂₂

Gates: 231 = C(22, 2) = (22 × 21) / 2. Each line is one of the unordered letter-pairs the text places “in a circle.”

Hover over a Hebrew letter to highlight its 21 gates. Click two letters to view the single gate between them and the pair’s combined gematria value.

The text says the 22 letters are placed in a circle; the chords are the “gates”; every unordered pair (i, j) with i ≠ j is exactly one gate. Hover or click to enumerate them.

Computation as Meditative Practice

Sara Glaz’s Bridges Conference paper (2021) makes the methodologically important observation that the 231 count was almost certainly performed by the early readers pair by pair — the text does not state the formula C(22, 2), it states the result, and the practice of working through the 231 pairs of letters became itself a meditative discipline. Computation as ritual. This is one of the cleanest documented cases of mathematics functioning as religious practice in the pre-modern world.

The Kabbalistic Mnemonic in «Yisrael»

A traditional wordplay, late but mathematically exact, recodes the 231 count inside the Hebrew name «Yisrael»:

The Yisrael Mnemonic

ישראל   (Yisrael)

The name «Yisrael» (Israel) is re-segmented as «Yesh Ra’ela» — «there are resh-lamed-aleph», where ר + ל + א reads as the numeral RL&Aleph; under standard gematria:

ר (Resh) = 200   +   ל (Lamed) = 30   +   א (Aleph) = 1   =   231

A late kabbalistic device: «Yisrael» encodes «there are 231» — the 231 gates of Sefer Yetzirah. The arithmetic under standard gematria is exact (200 + 30 + 1 = 231).

This is a textbook example of the kind of pattern that the site assesses very carefully:

The arithmetic is exact and the mnemonic is traditional. Whether the wordplay was “intended” or constructed in retrospect is the kind of question that requires the methodology of a priori commitment to settle — and the medieval kabbalistic tradition did not, on this point, make an a priori commitment. The result is genuinely beautiful and genuinely post-hoc.

verified arithmetic — C(22, 2) = 231 and ר + ל + א = 231 are both elementary. remarkable — the explicit naming of 231 in a 2nd–6th century text is among the earliest binomial coefficients on record.

Section 04

Explicit Factorials in SY 4:16

verified — the text itself states the factorial sequence

The book’s most extraordinary mathematical statement — and one of the earliest explicit factorial computations in any religious text — occurs at Sefer Yetzirah 4:16 (Kaplan numbering, with minor edition-dependent variation). The text gives the sequence directly:

“Two stones build two houses, three build six houses, four build twenty-four houses, five build one hundred twenty houses, six build six hundred twenty [sic: 720] houses, seven build five thousand and forty houses; from here on go out and calculate that which the mouth cannot speak and the ear cannot hear.”

Sefer Yetzirah 4:16 (Kaplan ed.). The 620 vs. 720 discrepancy is a known textual variant; the intended sequence is clearly the factorial.

The Factorial Sequence Made Explicit

The Sequence in SY 4:16

n stonesn! houses (modern notation)Text statesCombinatorial meaning
22! = 2“two houses”permutations of 2 letters
33! = 6“six houses”permutations of 3 letters
44! = 24“twenty-four houses”permutations of 4 letters
55! = 120“one hundred twenty houses”permutations of 5 letters
66! = 720“six hundred twenty” (variant: 720)permutations of 6 letters
77! = 5040“five thousand and forty”permutations of 7 letters

What the Text is Computing

The “stones” are Hebrew letters and the “houses” are words formed by permuting them. The text is enumerating the permutations of n distinct letters into n-letter sequences — the function we now write as n!. The phrase “from here on go out and calculate” is a recognition that the function continues beyond the values listed, and that the values grow very fast.

Why this is historically remarkable

The explicit statement of a factorial sequence in a text dated to the 2nd–6th century CE places it among the earliest explicit factorial computations in any religious text, and one of the earliest in any text at all. The Jain mathematical tradition develops factorials and combinatorics independently and around the same era (see Jainism — Mathematical Doctrines); the Greek tradition handles them implicitly through ratios. A direct integer-by-integer enumeration of n! for n = 2 through 7, in the middle of a mystical text, is striking.

The 5040 = 7! value is also Plato’s ideal city size in Laws 737e (see Pythagorean & Platonic Numerics) — the same number appearing in two completely independent traditions, both as a recognised factorial. remarkable

Sara Glaz’s Bridges paper (2021) provides the most careful modern reading of these factorial computations as evidence of explicit combinatorial reasoning in the text. The 620/720 textual variant for 6! has been catalogued by Hayman’s critical edition; consensus is that the intended value is 720 and 620 is a scribal slip.

verified — SY 4:16 states the sequence 2, 6, 24, 120, [720], 5040. The arithmetic is independently checkable. The status of the text as among the earliest extant factorial computations is documented in Glaz (2021) and the wider history-of-mathematics literature.

Section 05

Summary & Methodological Reading

What survives every methodological test

  • 32 paths = 10 sefirot + 22 letters — explicit text decomposition. verified
  • 22 letters = 3 mothers + 7 doubles + 12 simples — explicit text classification. verified
  • 231 gates = C(22, 2) — the binomial coefficient is named in the text. verified
  • Factorials 2! through 7! enumerated in SY 4:16 — among the earliest such computations in any religious text. verified

What is striking but later

  • The Yisrael ⇒ יש רלא = 231 mnemonic is exact arithmetic and traditional but post-hoc. remarkable

Why this page is the “designed mathematics” exemplar

Most pages on this site distinguish carefully between arithmetic the text contains and meaning later readers extract. Sefer Yetzirah is the rare case where the text and the reader converge: the book is itself a piece of mathematical writing, in which permutations, partitions, and binomial coefficients are stated as part of the content. The hermeneutic ambiguity that haunts most numerical claims in sacred literature is, for this text, largely absent.

For the parallel mathematical tradition that develops factorials and infinity-counting explicitly in a religious context, see Jain Numerics. For the medieval Hebrew encoding system on which the Yisrael ⇒ 231 mnemonic depends, see Numeral Systems § Hebrew Gematria. For the broader question of when a numerical pattern in a sacred text counts as “designed,” see Statistical Methodology.

Section 06

References & Sources

Primary Text Editions

  • Hayman, A. P. Sefer Yes·ira: Edition, Translation and Text-Critical Commentary. Mohr Siebeck, 2004. — The standard critical edition; treats the textual variants (including the 620/720 reading at SY 4:16) systematically. ACADEMIC critical edition
  • Kaplan, A. Sefer Yetzirah: The Book of Creation in Theory and Practice. Weiser, 1997. — The standard accessible English edition; the chapter/verse numbering used throughout this page follows Kaplan. ACADEMIC translation/commentary
  • Westcott, W. W. Sepher Yetzirah (translation). 1887; sacred-texts.com edition. — A dated historical translation; useful for comparison but flag as 19th-century and overlaid with Theosophical interpretation. PRIMARY translation, dated

Peer-Reviewed

  • Glaz, S. “Mathematics in the Poetry of Sefer Yetzirah.” Bridges Conference Proceedings, 2021. — The most careful modern reading of the 231 gates and factorial passages as mathematics. PEER-REVIEWED conference
    archive.bridgesmathart.org/2021/bridges2021-39.pdf →

Academic Monographs & Standard References

  • Scholem, G. Kabbalah. Meridian, 1978. — Authoritative on the place of Sefer Yetzirah in the broader Jewish mystical tradition.
  • Halevi, J. Kuzari IV (c. 1140). — Early medieval reception of Sefer Yetzirah as a mathematical-linguistic theory.
  • Idel, M. Golem: Jewish Magical and Mystical Traditions on the Artificial Anthropoid. SUNY, 1990. — On the practical-Kabbalah uses of the letter combinations.

Encyclopedic

Cross-Site References