0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【第18回】合計を固定したら、終点はどれくらい偏る? 中央係数と素数

0
Last updated at Posted at 2026-11-17

目次

前の記事

概要

2で割る回数を確率で決める話と、合計をぴったり5回にそろえる話。どちらも同じ逆像を見ていますが、出てくる分布を比べると違いがはっきりします。今回は深さ2で4通りを数えてから、短い周期の係数、終点を剰余類でまとめる公式、素数を使った標本へ進みます。

1. まず4通りを並べる

奇数から次の奇数への反復回数を $s$、その間に2で割った総回数を $V$ とします。正奇数終点 $u$ に着く逆像を $V$ ごとに数えた母関数を $\Psi_s(u;z)$、その既約形で用いる分子を $M_{s,u}(z)$ と書きます。分母は $(1-z)^{s-1}(1-z^{P_s})$、$P_s=2\cdot3^{s-1}$ です。

深さ2で $V=5$ とします。最初の除算回数 $a_1$ ごとに、終点 $u$ の法9での値は $2^5u\equiv3+2^{a_1}\pmod9$ で決まります。$2^5\equiv5$ の逆元は2。したがって、右辺の余りを2倍すればOKです。

二段の除算回数 $3+2^{a_1}$ の法9での余り 終点の法9での余り
(1,4) 5 1
(2,3) 7 5
(3,2) 2 4
(4,1) 1 2

正の除算回数を独立に、$a$ 回を確率 $2^{-a}$ で選ぶと、表の4通りはすべて $2^{-5}$ の確率です。合計5回だと分かった時点では、どの行も確率 $1/4$。一般にも、合計が $V$ と分かれば各行は同じ確率です。正の整数を $s$ 個足して $V$ にする組は $\binom{V-1}{s-1}$ 通りなので、

\Pr(\text{法 }3^s\text{ の終点が }u\mid\text{合計 }V)
=\frac{[z^V]\Psi_s(u;z)}{\binom{V-1}{s-1}} .

$[z^V]$ は、べき級数の $z^V$ の係数を取り出す記号です。合計を決めずに足した分布は $\Psi_s(u;1/2)$ です。この二つの確率には、合計で条件付ける操作が一つ挟まっています。

2. 各段を一周期に収めるとどうなる?

母関数の導出では各段に周期の倍数を足しました。ここでは、始点に近い順に第 $i$ 段の除算回数を $1,\ldots,P_i$ に限定します。$V-s$ を次数としたこの有限多項式を $G_{s,u}(z)$ とします。上の表だと一段目は1と2だけが許され、二段目は6以下です。残る終点は1と5です。

一般の深さでも、短い周期の代表列を一つ選べば、終点の単元類が一つ決まります。したがって、全終点で足すと

\sum_{3\nmid u\bmod 3^s}G_{s,u}(z)
=\prod_{i=1}^s(1+z+\cdots+z^{P_i-1}).

この足し算は、各終点の大きさの比較に使えます。図の左はさっきの表、右は中央の総除算回数 $V=2s$ で、短い周期に収まる組の割合です。右図は全終点を足した有限の整数計数です。

18_endpoint_counts.png

図を作るPythonコード
from collections import Counter
from itertools import combinations
from math import comb

import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt


def counts(depth, total, short_periods=False):
    modulus = 3**depth
    period = 2 * 3**(depth - 1)
    inverse_power = pow(pow(2, total, modulus), -1, modulus)
    result = Counter()
    for cuts in combinations(range(1, total), depth - 1):
        partial = (0, *cuts, total)
        divisions = [b - a for a, b in zip(partial, partial[1:])]
        if short_periods and any(a > 2 * 3**j for j, a in enumerate(divisions)):
            continue
        numerator = sum(3**(depth - 1 - j) * pow(2, v, modulus)
                        for j, v in enumerate(partial[:-1]))
        result[numerator * inverse_power % modulus] += 1
    if not short_periods:
        assert sum(result.values()) == comb(total - 1, depth - 1)
    assert all(u % 3 for u in result)
    assert len(result) <= period
    return result


units = [1, 2, 4, 5, 7, 8]
full = counts(2, 5)
short = counts(2, 5, True)
assert dict(full) == {1: 1, 2: 1, 4: 1, 5: 1}
assert dict(short) == {1: 1, 5: 1}
fig, (left, right) = plt.subplots(1, 2, figsize=(10, 4), layout='constrained')
left.bar([u - .16 for u in units], [full[u] for u in units], width=.31, color='#197c81', label='All compositions')
left.bar([u + .16 for u in units], [short[u] for u in units], width=.31, color='#ca7043', label='Short period representatives')
left.set(xticks=units, yticks=[0,1], xlabel='Endpoint residue mod 9', ylabel='Exact count', title='Depth 2, total divisions 5')
left.legend(loc='upper right', fontsize=8)
depths = range(1, 10)
ratios = [sum(counts(s, 2*s, True).values()) / comb(2*s-1, s-1) for s in depths]
right.plot(depths, ratios, marker='o', color='#197c81')
right.set(xticks=list(depths), xlabel='Depth', ylabel='Fraction inside short periods', title='Central slice V = 2s', ylim=(0, 1.04))
right.grid(alpha=.22)
fig.savefig('18_endpoint_counts.png', dpi=170, facecolor='white')
plt.close(fig)

中央係数の研究では、全終点の平均に対して個々の係数をどこまで下から抑えられるかを区別します。平均の漸近、粗い法にまとめた相対漸近と第1補正項、最大係数の増加は、条件付き分布を使って求められます。全終点の一様な下界には、粗い法で平均化するだけでは足りません。

3. 終点をまとめると、浅い深さに戻る

法 $3^m$ に落とすと、最後の $m$ 段だけが終点の剰余を決めます。$1\le m\le s$、$b$ を法 $3^m$ の3で割れない剰余類として、そこに落ちるすべての法 $3^s$ の剰余類を足すと

\sum_{u\equiv b\ (3^m)}\Psi_s(u;z)
=\left(\frac{z}{1-z}\right)^{s-m}\Psi_m(b;z).

前半の $s-m$ 段は自由なので、一段につき $z+z^2+\cdots=z/(1-z)$ を掛ける、という式です。例えば深さ2を法3でまとめて終点が1の類を見ると、一段目は自由、最後は偶数回。$V=5$ では最後が2回と4回の二つなので、表の終点1と4の2行に一致します。分子についても同じ式から $z^{s-m}(1-z^{P_s})/(1-z^{P_m})$ を掛けるだけだと分かります。

4. 素数を標本にする場合

固定した深さでは、終点別の母関数の値は法 $3^s$ の類だけで決まります。そこで実際の終点を素数に絞って平均すると、等差数列中の素数の分布を使い、固定法の全単元類を均等に平均した値に戻せます。この結論で深さは固定しています。

例えば深さ1では、法3で1の終点への除算回数は偶数、法3で2なら奇数です。$z=1/4$ で値はそれぞれ $1/15$ と $4/15$。素数の二つの剰余類を均等に取る極限は、その平均 $1/6$ です。この計算は、素数を終点として標本にとる方法です。始点を素数に制限した軌道の帰還を調べるときは、始点の合同条件と深さに応じて変わる法が残ります。

リーマン予想との研究では、素数の剰余類における誤差や、重み付き母関数の係数を通して現れるディリクレ級数も調べました。固定法の平均やゼータ関数の零点での恒等式を得ても、増大する法で必要な評価は別に残ります。

次回

参照

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?