The King Wen sequence (Chinese: 文王卦序) is an arrangement of the sixty-four divination figures in 易經 Yì Jīng, the I Ching or Book of Changes. They are called hexagrams in English because each figure is composed of six 爻 yáo—broken or unbroken lines, that represent 陰 yin or 陽 yang respectively.
The King Wen sequence is also known as the received or classical sequence because it is the oldest surviving arrangement of the hexagrams. Its true age and authorship are unknown. Traditionally, it is said that 周文王 Zhōu Wén Wáng (King Wen) arranged the hexagrams in this sequence while imprisoned by 商紂王 Shāng Zhòu Wáng in the 12th century BC. A different arrangement, the binary sequence named in honor of the mythic culture hero 伏羲 Fú Xī, originated in the Song Dynasty. It is believed to be the work of scholar 邵雍 Shào Yōng (1011–1077 AD). As mirrored by the 先天 Earlier Heaven and 後天 Later Heaven arrangements of the eight trigrams, or 八卦 bā guà, it was customary to attribute authorship to these legendary figures. Of the two hexagram arrangements, the King Wen sequence is, however, of much greater antiquity than the Fu Xi sequence.
The 64 hexagrams are grouped into 32 pairs. For 28 of the pairs, the second hexagram is created by turning the first upside down (i.e. 180° rotation). The exception to this rule is for the 8 symmetrical hexagrams that are the same after rotation (1 & 2, 27 & 28, 29 & 30, 61 & 62). Partners for these are given by inverting each line: solid becomes broken and broken becomes solid. These are indicated with icons in the table below.
Given the mathematical constraints of these simple rules, the number of lines that change within pair partners will always be even (either 2, 4, or 6). Whereas the number of lines that change between pairs depends on how the pairs are arranged, and the King Wen Sequence has notable characteristics in this regard. Of the 64 transitions, exactly 48 of them are even changes (32 within-pairs plus 16 between-pairs) and 16 are odd changes (all between-pairs). This is a precise 3 to 1 ratio of even to odd transitions. Of the odd transitions, 14 are changes of three lines and 2 are changes of one line. Changes of five are absent.