Mathematical Observation · 2026
52 · 10 · 2

Cycle Decomposition of the King Wen Permutation

A mathematical observation on a 3,000-year-old sequence

Zhengwen Ge · March 2026

↓ SCROLL
← Back to Index

The Problem

The 64 hexagrams admit two canonical orderings. The binary natural order (commonly called the "Fu Xi sequence," reconstructed by Shao Yong in the 11th century) is the 6-bit counting sequence (000000 → 111111) — mathematically fully ordered. The King Wen sequence is the textual ordering of the received Zhouyi (~1000 BCE) — its organizational logic has been debated for millennia. Han Kangbo called it "not the essence of the Yi"; Zhu Xi deemed it "unknowable."

Historical clarification (Remark 1): The binary natural order was formalized approximately 2,100 years after King Wen. We do not claim or assume that King Wen "rearranged" the binary natural order. Our analysis treats the two orderings as independently defined mathematical objects and characterizes the permutation between them — analogous to comparing two genome sequences without presupposing which is ancestral.

We ask:

What is the cycle structure of the permutation mapping one ordering to the other in S₆₄?

S₆₄ = the symmetric group on 64 elements, containing 64! (≈ 1.27 × 10⁸⁹) possible permutations. The King Wen sequence is one of them.

Complete Mapping

Binary natural position (0–63) → King Wen number (1–64). Click any cell for details.

Top-left to bottom-right = binary natural order 0→63. Top-left 000000 = Kūn (Wen #2), bottom-right 111111 = Qián (Wen #1).

Cycle Decomposition Result

3
Cycles
0
Fixed points
81.25%
Primary cycle fraction
260
Order of σ

Zero fixed points — no hexagram occupies the same position in both orderings. (Note: zero fixed points alone is not statistically remarkable; P ≈ 0.37 for random permutations.)

3 cycles — a random permutation of 64 elements has an expected ~4.74 cycles. Fewer cycles means larger orbits.

Primary cycle of 52 — 81.25% of hexagrams are in one orbit, meaning the reordering is highly coupled rather than a collection of small local swaps.

Primary Cycle 52 hexagrams · 81.25%

Starting from Qián, it takes 52 steps to return. Each step means: the hexagram at binary position A appears at position B in the King Wen order.

52 hexagrams locked in one chain = you cannot move just a few hexagrams without affecting the rest. The entire chain moves as one. This is mathematical evidence of the King Wen sequence's high coupling.

Secondary Cycle 10 hexagrams · 15.625%

Transposition 2 hexagrams · 3.125%

Semantic Reading (with Methodological Warning)

If one insists on reading the ten-hexagram cycle narratively: Lǚ (treading/propriety) → Gèn (stillness) → Zhōng Fú (inner truth) → Dà Zhuàng (great power) → Yí (nourishment) → Jǐng (the well) → Tóng Rén (fellowship) → Xiǎo Guò (small exceeding) → Dà Yǒu (great possession) → Lǚ (the wanderer) — it reads like a "path of personal cultivation."

The transposition: Guài (breakthrough/resolution) ↔ Jì Jì (completion) — a swap between initiation and consummation.

‏⚠ The above semantic readings carry a high risk of apophenia (pattern perception in noise). The 64 hexagram names are sufficiently evocative that almost any permutation's cycles could be narrated as meaningful. Cycle structure is mathematical fact; cycle semantics is conjecture — the two must not be conflated.

Statistical Context

Fixed Points

The number of fixed points in a random permutation of 64 elements ~ Poisson(λ=1). P(0 fixed points) = e⁻¹ ≈ 0.368

Zero fixed points alone is not significant (p ≈ 0.37), but combined with the low cycle count, the overall structure is nontrivial.

Number of Cycles

Expected number of cycles = H₆₄ ≈ 4.74, standard deviation ≈ 2.0. Observed value: 3, approximately −0.9σ.

Largest Cycle Length

Expected longest cycle in a random permutation of 64 ≈ 64 × 0.6243 ≈ 40. Observed value: 52, in the upper tail of the distribution.

Monte Carlo Estimate

A simulation of 2 × 10⁶ random permutations yields: P(cycle type exactly (52,10,2)) ≈ 0.094% (~1 in 1,064).

Combined assessment: the cycle type (52, 10, 2) is uncommon (~0.1%) but not extraordinarily rare. We do not claim statistical significance. The observation of interest is that 81% of elements form a single orbit, indicating high coupling in the reordering.

We emphasize that any specific cycle type of a random permutation is individually rare, and we do not claim that 0.094% constitutes evidence of intentional design. The value of this decomposition is structural and descriptive: it reveals that 81.25% of hexagrams form a single connected orbit, meaning that iterating σ cycles through nearly the entire set before returning. This is analogous to reporting that a molecule forms one large ring rather than several small chains — a structural fact, not a statistical claim.

Hamming Distance Analysis

The Hamming distance between consecutive hexagrams = the number of differing bits in their 6-bit encodings (0–6).

Three-Way Comparison

3.349
King Wen mean
1.905
Binary natural mean
3.000
Random baseline

Distribution (63 consecutive pairs)

9 pairs
Total inversions d=6
Random expectation ~1.4 pairs
3.2 : 1
Even : odd changes
Moore ratio independently verified
76.2%
Even Hamming distance
Due to zōng/cuò guà structure

Key Insights

1. Contrast Narrative Bias

Mean Hamming distance 3.349 > random baseline 3.0. The King Wen sequence tends to place structurally dissimilar hexagrams adjacent to each other — reinforcing cognition through contrast. The 9 total inversions (d=6) are the most extreme expression; random would produce only ~1.4 pairs.

2. Even–Odd Asymmetry from Zōng/Cuò Guà Structure

The 32 pairs of inverted hexagrams (zōng guà, flipped top-to-bottom) in the King Wen sequence naturally produce even Hamming distances. This is not coincidence — the inverted-pair structure is a known organizational principle of the King Wen sequence, and the even-change ratio is its mathematical consequence.

3. Structural Distance Revealed by Cycle Decomposition

The difference between the two orderings is not "a few hexagrams swapped around." The cycle type (52, 10, 2) shows that 81% of hexagrams are locked in a single transformation chain with no hexagram remaining in place. This is systematic structural divergence, not local adjustment.

An analogy: the binary natural order is the hardware specification (binary encoding), the King Wen sequence is the operating system (application-layer ordering), the Duke of Zhou wrote the API documentation (line texts), Confucius wrote the design document (Ten Wings), and Laozi provided the code review (Dao De Jing calibration).

Related Work & Originality

AuthorContributionRelation to this paper
Leibniz (1703)Binary interpretation of Fu Xi orderFoundational premise
Shao Yong (11th c.)Reconstruction of binary natural orderFoundational premise
Moore, S.J.Even:odd Hamming ratio ≈ 3:1Independently confirmed & explained
Cook (2006)Paired-structure analysisDifferent approach (no Sₙ)
Petoukhov (2008)Algebraic structures in hexagramsComplementary perspective
VariousZōng guà / cuò guà pair analysisReexamined via permutation group

As of March 2026, searches in Google Scholar, OEIS, and CNKI have found no prior record of the cycle type (52, 10, 2).

This does not prove absolute novelty — only that the result is absent from the publicly searchable literature.

The traditional explanation for the King Wen sequence is found in the Xù Guà (Sequence of Hexagrams commentary), one of the Ten Wings. A third historical ordering, found on the Mawangdui silk manuscript (excavated 1973), organizes hexagrams by upper trigram. Applying the same cycle decomposition to other ordering pairs (e.g., binary ↔ Mawangdui, Mawangdui ↔ King Wen) is a natural extension of this work.

Reproducible Code

The following JavaScript can be executed in any browser console to independently verify all conclusions.

All numerical conclusions on this page are generated by the code above. Reproducibility = credibility.