SkarpSkarp

Chapter 3 of 11

Combinatorics of the 231 Gates

The enigmatic 231 Gates resolve into a clean combinatorial count, yet the modeling choices behind them are anything but trivial. This module dissects ordered vs. unordered pairs, directionality, and the geometry of arranging 22 letters around a circle.

15 min readen

From 22 Letters to 231 Gates

From Mystery to Count

The "231 Gates" from Kabbalistic texts become a clean combinatorial count once you treat the 22 Hebrew letters as a finite set of symbols.

What You Will Do

You will derive 231 from 22 letters, compare ordered vs. unordered pairs, link them to directed vs. undirected edges, and visualize everything via the complete graph `K_22`.

Why Modeling Matters

The number 231 is simple; the modeling choices behind it are not. Different conventions (order, direction) give different combinatorial objects with different interpretations.

Counting Unordered Pairs: Deriving 231

Unordered Gates

Interpret a gate as a connection that ignores order: the gate between Alef and Bet is the same as between Bet and Alef. Mathematically, this is a 2-element subset.

Using Combinations

The number of 2-element subsets of an n-element set is `C(n, 2) = n(n - 1) / 2`. For 22 letters, `C(22, 2) = 22 * 21 / 2 = 231`.

Hidden Assumptions

This count assumes: letters are distinct; no self-pairings like (Alef, Alef); and gates are unordered, so (Alef, Bet) = (Bet, Alef).

Quick Check: Small Alphabet Warm-Up

To see the pattern, shrink the problem.

Imagine an alphabet of just 4 letters: A, B, C, D.

  1. List all unordered gates (no self-pairing). Write them out explicitly, ignoring order. For example, A–B is the same as B–A, so only list it once.
  • How many do you get?
  • Compare your list with the formula `C(4, 2) = 4 * 3 / 2`.
  1. Now imagine you *did* allow self-pairings like A–A.
  • How many unordered gates would you have then?
  • Hint: there are 4 self-pairings plus the non-self pairs.
  1. Reflect:
  • Which set of assumptions (with or without self-pairings) matches the traditional idea of the 231 Gates? Why?

Pause and actually write the sets before moving on. This will make the 22-letter case feel almost mechanical.

Ordered vs. Unordered Pairs

Ordered Gates

If order matters, (Alef, Bet) and (Bet, Alef) are different. With 22 letters and no self-pairing, that gives `22 * 21 = 462` ordered pairs.

Relation to 231

Each unordered pair {x, y} corresponds to two ordered pairs (x, y) and (y, x). So 462 ordered pairs = 2 × 231 unordered pairs.

Two Conventions

Unordered model: 231 combinations, each a 2-element set. Ordered model: 462 permutations, each a 2-tuple. The traditional count 231 matches the unordered convention.

Quiz: Which Convention Fits 231?

Check that you can match the verbal description of gates to the correct combinatorial model.

You are told there are 231 distinct gates formed from 22 letters, each gate connecting two *distinct* letters, and reversing the two letters does *not* create a new gate. Which model is being used?

  1. Unordered pairs without self-pairing (combinations C(22, 2))
  2. Ordered pairs without self-pairing (permutations P(22, 2))
  3. Unordered pairs with self-pairing allowed
Show Answer

Answer: A) Unordered pairs without self-pairing (combinations C(22, 2))

If reversing the letters does not create a new gate, order is ignored, so we use unordered pairs. Excluding self-pairing matches the formula C(22, 2) = 231.

Graph-Theoretic Models: K_22 and Variants

Undirected Graph: K_22

Model letters as vertices and gates as undirected edges. The result is the complete graph `K_22`, which has `C(22, 2) = 231` edges, one for each unordered gate.

Directed Graph: Complete Digraph

If gates are ordered, you get a directed edge for each ordered pair (x, y), x ≠ y. This complete digraph on 22 vertices has `22 * 21 = 462` directed edges.

Loops as a Modeling Choice

Allowing self-loops adds 22 extra edges. Undirected with loops has 253 edges; directed with loops has 484. Traditional 231 Gates usually exclude these loops.

Geometric Picture: 22 Letters Around a Circle

22 Points on a Circle

Place 22 points equally around a circle and label them with the 22 letters. This is a regular 22-gon, a convenient canvas for visualizing all pairwise connections.

Chords as Gates

Draw a straight line (chord) between every pair of distinct points. Each chord is an unordered gate. There are `C(22, 2) = 231` such chords.

Oriented Chords

If you care about order, imagine each chord carries two opposite arrows. The chord is one unordered gate; its two arrow directions are the two ordered gates.

Coding the 231 Gates (Python Example)

If you are comfortable with a bit of code, you can make the 231 Gates concrete by generating them.

The example below uses Python with the standard library only. It shows both unordered and ordered versions.

```python

from itertools import combinations, permutations

1. Represent the 22 letters as a list

For illustration, we just use strings "L1" ... "L22".

letters = [f"L{i}" for i in range(1, 23)]

2. Unordered gates: combinations of size 2

unordered_gates = list(combinations(letters, 2))

print("Number of unordered gates:", len(unordered_gates)) # Expect 231

print("First 5 unordered gates:", unordered_gates[:5])

3. Ordered gates: permutations of length 2 (no repetition)

ordered_gates = list(permutations(letters, 2))

print("Number of ordered gates:", len(ordered_gates)) # Expect 462

print("First 5 ordered gates:", ordered_gates[:5])

4. Check the 2-to-1 relationship

print("2 number of unordered gates:", 2 len(unordered_gates))

```

Try editing this:

  • Replace `"L1" ... "L22"` with actual Hebrew letters if your environment supports them.
  • Restrict to a smaller subset (e.g., 4 letters) and print all gates to see the pattern clearly.

Modeling Choices: Specify Your Convention

Suppose you are building a simple dynamical model where each letter can "send" a signal to another letter.

Decide which convention you would adopt and justify it in one or two sentences.

  1. Option A: Unordered gates (231)
  • Gates are symmetric connections.
  • You only care that two letters are related, not who sends to whom.
  1. Option B: Ordered gates (462)
  • Gates are directed transitions.
  • You care about the direction of influence: from letter X to letter Y.
  1. Your task
  • Pick A or B for this dynamical model.
  • Write down:
  • Which combinatorial object you are using: combinations or permutations.
  • Which graph model matches it: `K_22` (undirected) or a complete directed graph without loops.
  • One concrete sentence describing what a single gate means in your model.

This small design step is exactly what you will need when you move from abstract counts to actual simulations or interpretations.

Key Terms Review

Flip these cards (mentally or on paper) to solidify the core vocabulary and relationships.

231 Gates (modern combinatorial view)
The 231 unordered pairs of distinct letters from a 22-letter alphabet; mathematically, the 2-element subsets of a 22-element set, counted by C(22, 2) = 231.
Combination C(n, 2)
The number of unordered pairs from n distinct objects with no repetition: C(n, 2) = n(n - 1) / 2.
Permutation P(n, 2)
The number of ordered pairs from n distinct objects with no repetition: P(n, 2) = n(n - 1). For 22 letters, P(22, 2) = 462.
K_22
The complete simple undirected graph on 22 vertices. It has an edge between every pair of distinct vertices, for a total of C(22, 2) = 231 edges.
Complete directed graph (without loops)
A directed graph where for every pair of distinct vertices x, y there are arrows x → y and y → x. For 22 vertices, it has 22 * 21 = 462 directed edges.
Unordered vs. ordered gate
Unordered: {x, y} = {y, x}, modeled as an undirected edge. Ordered: (x, y) ≠ (y, x), modeled as a directed edge (arrow) from x to y.

Key Terms

K_22
The complete simple undirected graph with 22 vertices, containing an edge between every pair of distinct vertices; it has 231 edges.
231 Gates
A classical Kabbalistic notion interpreted in modern combinatorics as the 231 unordered pairs of distinct letters from a 22-letter alphabet, counted by C(22, 2).
Combination
A selection of items from a set where order does not matter; for 2 elements from n, the count is C(n, 2) = n(n - 1) / 2.
Loop (self-loop)
An edge in a graph that starts and ends at the same vertex, representing a connection of an element to itself.
Chord (of a circle)
A straight line segment connecting two points on a circle; used here to visualize a gate between two letters placed on the circle.
Permutation (of length 2)
An ordered selection of 2 distinct items from n; the count is P(n, 2) = n(n - 1).
Complete directed graph (complete digraph)
A directed graph where every ordered pair of distinct vertices is connected by a directed edge; on 22 vertices without loops, it has 462 edges.

Finished reading?

Test your understanding with a custom practice exam on this chapter.

Test yourself