King Wen Sequence

Pair Analysis

The 32 paired hexagrams of the King Wen sequence — each pair connected by inversion (反覆 fanfu) or complementation (旁歸 pangui).

Inverse Pairs

反覆

Flipping a hexagram upside down produces its partner. This represents seeing the same situation from opposite perspectives — what appears one way from above looks entirely different from below.

28 of 32 pairs

Complement Pairs

旁歸

When a hexagram is symmetrical (its inverse is itself), flipping all lines (yin to yang, yang to yin) produces its partner. These pairs are complete structural opposites.

4 pairs: 1/2, 27/28, 29/30, 61/62

Hamming Distance Distribution

The number of line positions that differ between paired hexagrams. Higher distances indicate greater structural divergence within a pair.

Hamming = 2
12 pairs
Hamming = 4
12 pairs
Hamming = 6
8 pairs

All 32 Pairs

Pair 1Complement
Hamming: 6
Shared: 0 lines

Complete opposites — every line inverted

Pair 2Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 3Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 4Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 5Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 6Inverse
Hamming: 6
Shared: 0 lines

Mirror image — maximum structural change

Pair 7Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 8Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 9Inverse
Hamming: 6
Shared: 0 lines

Mirror image — maximum structural change

Pair 10Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 11Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 12Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 13Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 14Complement
Hamming: 6
Shared: 0 lines

Complete opposites — every line inverted

Pair 15Complement
Hamming: 6
Shared: 0 lines

Complete opposites — every line inverted

Pair 16Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 17Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 18Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 19Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 20Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 21Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 22Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 23Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 24Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 25Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 26Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 27Inverse
Hamming: 6
Shared: 0 lines

Mirror image — maximum structural change

Pair 28Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 29Inverse
Hamming: 4
Shared: 2 lines

Mirror image — moderate structural change

Pair 30Inverse
Hamming: 2
Shared: 4 lines

Mirror image — differ by a single line shift

Pair 31Complement
Hamming: 6
Shared: 0 lines

Complete opposites — every line inverted

Pair 32Inverse
Hamming: 6
Shared: 0 lines

Mirror image — maximum structural change

Sources & Further Reading

  1. 序卦傳 (Xugua zhuan, “Sequence of Hexagrams Commentary”). One of the Ten Wings (十翼). The classical source explaining the rationale for pairing consecutive hexagrams.
  2. 雜卦傳 (Zagua zhuan, “Miscellaneous Notes on the Hexagrams”). Another of the Ten Wings, providing terse characterizations of hexagram pairs as complementary opposites.
  3. Wilhelm, Richard, trans. The I Ching, or Book of Changes. Rendered into English by Cary F. Baynes. 3rd ed., Princeton University Press, 1967. See “Ta Chuan” (Great Treatise) II.2 on the inversion principle.
  4. 來知德 (Lai Zhide, 1525–1604). 周易集註 (Zhouyi jizhu). Ming dynasty commentary that systematized the inverse/complement pair analysis (反對).
  5. Kunst, Richard A. The Original “Yijing”: A Text, Phonetic Transcription, Translation, and Indexes, with Sample Glosses. PhD dissertation, University of California, Berkeley, 1985. Pioneering structural analysis of hexagram pair relationships.
  6. Hamming, Richard W. “Error Detecting and Error Correcting Codes.” Bell System Technical Journal, vol. 29, no. 2, 1950, pp. 147–160. The original definition of Hamming distance applied here to hexagram binary representations.
  7. Chan, Augustin. King Wen Sequence as Learning Optimization. Zenodo, 2025. [PDF]