What does Najia and Qimen Combinatorics conclude, in numbers, about “How Often the Patterns Occur, How Conventions Disagree, and Neighbouring Hours”?
Answer: Chapter 6 computes the patterns: a punishment is on the heaven plate in 0.5296 of bureau-hours, and three common tomb rules disagree about the same chart, pair by pair, in 0.1944 to 0.4046 of cases; the verse of the five non-meeting hours omits the second solution on ji and geng days; between neighbouring double-hours the fu yin, punishment and tomb flags change in two fifths to more than half of all pairs.
Scope of the numbers: Marked boxes separate evidence, 16 runnable Python programs, classical sources and hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. printed values that match the answer: 0.1944, 0.4046, 0.5296
| 1,080 bureau-hours | |
| six yi punish somewhere on the heaven plate | 0.5296 |
| a qi in the tomb, common rule | 0.3426 |
| a qi in the tomb, same-life rule | 0.3361 |
| a qi in the tomb, yang-dies rule | 0.3315 |
| tomb verdict differs, common vs same-life | 0.2102 |
| tomb verdict differs, common vs yang-dies | 0.1944 |
| tomb verdict differs, same-life vs yang-dies | 0.4046 |
| Reading: some 'punishment' is on the heaven plate in more | |
| than half of all charts and a qi is in a tomb in about a third. | |
| The three printed tomb rules disagree about a given chart for | |
| between a fifth and two fifths of all bureau-hours. |
Show the full program
# Chapter 6. How often the named patterns occur, and under which rules.
# Heaven plate as in p08: each outer star carries the earth-plate symbol
# of its home palace round the ring; the centre's symbol rides with Rui.
# Patterns read on the heaven plate (palace numbers):
# "six yi punish" (ji xing): wu on 3, ji on 2, geng on 8, xin on 9,
# ren on 4, gui on 4;
# "three qi in the tomb" (ru mu), three printed conventions:
# common yi on 2, bing on 6, ding on 8
# same-life yi on 2, bing on 6, ding on 6 (yin and yang stems
# share their tomb)
# yang-dies yi on 6, bing on 6, ding on 8 (yin stems take the
# tomb of the opposite cycle)
SYMBOLS = ("wu", "ji", "geng", "xin", "ren", "gui", "ding", "bing", "yi")
STEMS = ("jia", "yi", "bing", "ding", "wu", "ji", "geng", "xin", "ren",
"gui")
RING = (1, 8, 3, 4, 9, 2, 7, 6)
LEADER = ("wu", "ji", "geng", "xin", "ren", "gui")
PUNISH = {"wu": 3, "ji": 2, "geng": 8, "xin": 9, "ren": 4, "gui": 4}
TOMB = {"common": {"yi": 2, "bing": 6, "ding": 8},
"same-life": {"yi": 2, "bing": 6, "ding": 6},
"yang-dies": {"yi": 6, "bing": 6, "ding": 8}}
def nine(x):
return (x - 1) % 9 + 1
def outer(p):
return 2 if p == 5 else p
def heaven(b, yang, k):
e = {s: nine(b + i) if yang else nine(b - i)
for i, s in enumerate(SYMBOLS)}
lead, stem = LEADER[k // 10], STEMS[k % 10]
r = (RING.index(outer(e[lead if stem == "jia" else stem]))
- RING.index(outer(e[lead]))) % 8
where = {}
for s, p in e.items():
src = 2 if p == 5 else p
where[s] = RING[(RING.index(src) + r) % 8]
return where
def flags(where):
punish = any(where[s] == p for s, p in PUNISH.items())
tomb = {c: any(where[s] == p for s, p in t.items())
for c, t in TOMB.items()}
return punish, tomb
if __name__ == "__main__":
rows = [flags(heaven(b, y, k)) for b in range(1, 10) for y in (1, 0)
for k in range(60)]
n = len(rows)
print(" {:,d} bureau-hours".format(n))
print(" six yi punish somewhere on the heaven plate: {:.4f}".format(
sum(p for p, _ in rows) / n))
for c in TOMB:
print(" a qi in the tomb, {:9s} rule: {:.4f}".format(
c, sum(t[c] for _, t in rows) / n))
names = list(TOMB)
for i in range(3):
for j in range(i + 1, 3):
d = sum(t[names[i]] != t[names[j]] for _, t in rows) / n
print(" tomb verdict differs, {} vs {}: {:.4f}".format(
names[i], names[j], d))
print("\nReading: some 'punishment' is on the heaven plate in more")
print("than half of all charts and a qi is in a tomb in about a third.")
print("The three printed tomb rules disagree about a given chart for")
print("between a fifth and two fifths of all bureau-hours.")Single source and citation
Fan, Y. (2026). Najia Hexagram Encoding and Qimen Dunjia Combinatorial Engines (Version 1.0.0), Chapter 6: How Often the Patterns Occur, How Conventions Disagree, and Neighbouring Hours. 5D Library. https://doi.org/10.5281/zenodo.24090182
DOI: 10.5281/zenodo.24090182 · Read the monograph · 5DL-B-067 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026067,
author = {Fan, Yafu},
title = {Najia Hexagram Encoding and Qimen Dunjia Combinatorial Engines},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24090182},
url = {https://doi.org/10.5281/zenodo.24090182}
}Other chapter answers in this book
- Chapter 1 · Jing Fang's Eight Palaces and the Najia: XOR Masks and a Closed Form
- Chapter 2 · Six Relatives, Six Spirits and the Void Branches
- Chapter 3 · The Seventy-Two Bureau Numbers and Two Calendars
- Chapter 4 · Earth Plate and Heaven Plate: a Dihedral Group and a Ring Rotation
- Chapter 5 · The Human and Spirit Plates, and the Group the Plates Generate
- Chapter 7 · The Jing shi yizhuan and the Rhapsody of the Old Fisherman
- Chapter 8 · A Budget of Conventions and a Pre-Registered Matching Test