### King Wen Sequence in Decimal Numbers

I Ching hexagrams are encoded decimal numbers. In decimal, the hexagrams are the following 64 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56 57, 58, 59, 60, 61, 62 and 63.

To convert the 64 I Ching hexagrams to decimal numbers, each hexagram is converted to a binary number and then converted from base 2 to base 10.

How to convert I Ching hexagrams to base 2 is explained by King Wen sequence in binary numbers.

To convert the a hexagram to binary numbers, substitute 0 for broken lines and 1 for unbroken line. Example: |¦||¦| is equal to 101101.

Base 10 equivalent of 101101 is derived as follows:

101101 = 1×25  + 1×23 + 1×22 + 1×20
= 1×32 + 1×8 + 1×4 + 1×1
= 32 + 8 + 4 + 1
= 45

The 64 I Ching hexagrams with their corresponding values in decimals are:

63 → ||||||

0 → ¦¦¦¦¦¦

34 → |¦¦¦|¦← 17

58 → |||¦|¦ ← 23

16 → ¦|¦¦¦¦ ← 2

59 → |||¦|| ← 55

56 → |||¦¦¦ ← 7

47 → |¦|||| ← 61

8 → ¦¦|¦¦¦ ← 4

38 → |¦¦||¦ ← 25

48 → ||¦¦¦¦ ← 3

37 → |¦¦|¦| ← 41

1 → ¦¦¦¦¦| ← 32

39 → |¦¦||| ← 57

33 → |¦¦¦¦|

30 → ¦||||¦

18 → ¦|¦¦|¦

45 → |¦||¦|

14 → ¦¦|||¦ ← 28

15 → ¦¦|||| ← 60

5 → ¦¦¦|¦| ← 40

43 → |¦|¦|| ← 53

10 → ¦¦|¦|¦ ← 20

49 → ||¦¦¦| ← 35

62 → |||||¦ ← 31

6 → ¦¦¦||¦ ← 24

22 → ¦|¦||¦ ← 26

46 → |¦|||¦ ← 29

36 → |¦¦|¦¦ ← 9

11 → ¦¦|¦|| ← 52

44 → |¦||¦¦ ← 13

27 → ¦||¦|| ← 54

19 → ¦|¦¦|| ← 50

51 → ||¦¦||

12 → ¦¦||¦¦

42 → |¦|¦|¦ ← 21