What does Pythagorean Comma, Zhu Zaiyu and Beat Roughness conclude, in numbers, about “Twelve Steps of Adding and Cutting a Third: the Exact Arithmetic of the Pythagorean Comma”?

Answer: Chapter 1 computes in exact fractions the ratio of huangzhong to the returning pipe, 312/219 or 23.46 cents, and shows that the Guanzi's start of eighty-one is the smallest that keeps whole numbers, twelve pipes needing 177,147.

Scope of the numbers: Its listeners, samples and copy are illustrative, and all calculations are generated by its programs; the book is not medical advice, claims no effect of any frequency, scale or instrument on body or mind, and is not purchasing advice. Marked boxes separate published evidence, runnable Python calculations (22 programs), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 12, 19, 23.46

pipestepexact lengthlengthcentsvs equal
huangzhong--8181.00000.00+0.00
linzhongsun5454.0000701.96+1.96
taicuyi7272.0000203.91+3.91
nanlvsun4848.0000905.87+5.87
guxiyi6464.0000407.82+7.82
yingzhongsun128/342.66671109.78+9.78
ruibinyi512/956.8889611.73+11.73
dalvyi2048/2775.8519113.69+13.69
yizesun4096/8150.5679815.64+15.64
jiazhongyi16384/24367.4239317.60+17.60
wuyisun32768/72944.94921019.55+19.55
zhonglvyi131072/218759.9323521.51+21.51
zhonglv, add a third: 524288/6561 = 79.9098, not 81
81 / that length = 531441/524288 = 1.01364326
that is 3^12 / 2^19 = 531441 / 524288
Pythagorean comma = 23.46 cents
each fifth exceeds 700 cents by 1.955
sum of the deviations from equal temperament = 129.03
Show the full program
# Chapter 1. p11: twelve steps of san fen sun yi, exactly, and the comma.
# Model: pipe length 81 for huangzhong (the Guanzi integer). Each step
# multiplies the length by 2/3 (sun, cut a third) or 4/3 (yi, add a
# third); the step is chosen so the length stays inside the octave
# (40.5, 81]. Pitch in cents above huangzhong is 1200 log2(81 / L).
# All lengths are exact Fractions; only the cents are rounded.
import math
from fractions import Fraction

NAMES = ["huangzhong", "linzhong", "taicu", "nanlv", "guxi",
         "yingzhong", "ruibin", "dalv", "yize", "jiazhong", "wuyi",
         "zhonglv"]
SEMI = [0, 7, 2, 9, 4, 11, 6, 1, 8, 3, 10, 5]   # place in the octave


def cents(r):
    return 1200 * math.log2(r)


def main():
    top = Fraction(81)
    x = top
    rows = []
    for k, name in enumerate(NAMES):
        if k == 0:
            op = "--"
        else:
            y = x * Fraction(2, 3)
            if y <= top / 2:
                y, op = x * Fraction(4, 3), "yi"
            else:
                op = "sun"
            x = y
        c = cents(top / x)
        rows.append((name, op, x, c, c - 100 * SEMI[k]))
    print("pipe        step  exact length   length    cents  vs equal")
    for name, op, x, c, d in rows:
        print("{:<11} {:<4} {:>13} {:>8.4f} {:>8.2f} {:>+8.2f}".format(
            name, op, str(x), float(x), c, d))
    back = x * Fraction(4, 3)
    print("zhonglv, add a third: {} = {:.4f}, not 81".format(
        back, float(back)))
    comma = top / back
    print("81 / that length = {} = {:.8f}".format(comma, float(comma)))
    print("that is 3^12 / 2^19 = {} / {}".format(3 ** 12, 2 ** 19))
    print("Pythagorean comma = {:.2f} cents".format(cents(comma)))
    print("each fifth exceeds 700 cents by {:.3f}".format(
        cents(Fraction(3, 2)) - 700))
    print("sum of the deviations from equal temperament = {:.2f}".format(
        math.fsum(r[4] for r in rows)))


main()

Single source and citation

Fan, Y. (2026). The Unclosed Circle of Pythagorean Tuning, Zhu Zaiyu's Root Approximation of Equal Temperament and the Beat Roughness of Just-Intonation Overtones (Version 1.0.0), Chapter 1: Twelve Steps of Adding and Cutting a Third: the Exact Arithmetic of the Pythagorean Comma. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-159 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026159,
  author    = {Fan, Yafu},
  title     = {The Unclosed Circle of Pythagorean Tuning, Zhu Zaiyu's Root Approximation of Equal Temperament and the Beat Roughness of Just-Intonation Overtones},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book