The tail recurrence and the exact criteria
We rescale each tail so that its first denominator is again 2. For a convergent series ∑𝑖≥0𝑎𝑖2−𝑖−1 with 𝑎𝑖 ∈ℤ, put
𝑇𝑁=2𝑁+1∑𝑖>𝑁𝑎𝑖2−𝑖−1=𝑎𝑁+12+𝑎𝑁+24+⋯.
Thus 𝑇𝑁 starts with coefficient 𝑎𝑁+1, not 𝑎𝑁. Doubling and removing that first
coefficient gives 𝑇𝑁+1 =2𝑇𝑁 −𝑎𝑁+1. Modulo integers, a
step is simply doubling; the detailed values of the integer coefficients
disappear. This is why the recurrence gives a rationality criterion for
arbitrary integer coefficients.
At 𝑁 =0 we have 𝑇0 =2∑𝑖≥0𝑎𝑖2−𝑖−1 −𝑎0. In
particular, for the prime gaps 𝑇0 =2𝑆 −1 =2Π −5, so 𝑇0, 𝑆 and Π have the same rationality status. We
first analyse the recurrence abstractly. We then impose the vanishing
boundary condition that singles out complete tails and apply the
criterion to these prime-gap tails.
Definition 5.1. Let 𝑔 :ℕ →ℤ and 𝑇 :ℕ →ℚ or 𝑇 :ℕ →ℝ. Say 𝑇 satisfies the dyadic tail
recurrence with coefficients 𝑔 when 𝑇𝑁+1 =2𝑇𝑁 −𝑔𝑁+1 for every 𝑁. Write 𝜎ℎ(𝑁) =𝑇𝑁+ℎ −𝑇𝑁 for the
shift of length ℎ at 𝑁, and call a real number
integral when it belongs to ℤ.
For a complete-tail example, take 𝑔𝑛 =2 for odd 𝑛 ≥1 and 𝑔𝑛 =4 for even 𝑛 ≥1. Its complete tail at index 0 is 𝑇0 =(2/2 +4/4)/(1 −1/4) =8/3, and the tails
alternate between 8/3 and 10/3. Thus 𝜎1(𝑁) is always 2/3 or −2/3, whereas 𝜎2(𝑁) =0 for every 𝑁. Nonintegrality at one prescribed shift
length does not imply irrationality, even for positive even coefficients
and genuine tails.
An integral shift returns to the same fractional part. To track the
integer accumulated in ℎ steps,
define 𝐵0,𝑁 =0 and 𝐵ℎ+1,𝑁 =2𝐵ℎ,𝑁 +𝑔𝑁+ℎ+1, so that
𝐵ℎ,𝑁 =𝑔𝑁+12ℎ−1 +⋯ +𝑔𝑁+ℎ
is the weighted
integer sum accumulated in those ℎ steps.
Theorem 5.2 (block identity). For every 𝑁 and ℎ,
𝑇𝑁+ℎ=2ℎ𝑇𝑁−𝐵ℎ,𝑁,hence𝜎ℎ(𝑁)=(2ℎ−1)𝑇𝑁−𝐵ℎ,𝑁.
Proof. The case ℎ =0
follows from 𝐵0,𝑁 =0. If the
first identity holds at ℎ, then
𝑇𝑁+ℎ+1=2(2ℎ𝑇𝑁−𝐵ℎ,𝑁)−𝑔𝑁+ℎ+1=2ℎ+1𝑇𝑁−𝐵ℎ+1,𝑁.
Subtracting 𝑇𝑁 gives the second identity. ◻
Subtracting the tail recurrences at 𝑁 +ℎ and 𝑁 gives
𝜎ℎ(𝑁+1)=2𝜎ℎ(𝑁)−(𝑔𝑁+ℎ+1−𝑔𝑁+1),(7)
which is the recurrence
for the tail differences. Since 𝐵ℎ,𝑁 is an integer, Theorem 5.2 also gives the integrality
criterion: 𝜎ℎ(𝑁) is
integral if and only if (2ℎ −1)𝑇𝑁
is integral. For fixed ℎ in this
general recurrence, 𝑇𝑁 therefore
determines whether the shift is integral, regardless of the later
integer coefficients. For a complete tail, however, changing those
coefficients also changes 𝑇𝑁; the
observation does not permit arbitrary changes to prime gaps.
For rational 𝑇𝑁 =𝑢/𝑣 in lowest
terms, the recurrence gives 𝑇𝑁+1 =(2𝑢 −𝑔𝑁+1𝑣)/𝑣. The numerator
has greatest common divisor gcd(2,𝑣) with 𝑣, because gcd(𝑢,𝑣) =1. Thus
den(𝑇𝑁+1)=den(𝑇𝑁)gcd(2,den(𝑇𝑁)),𝜎ℎ(𝑁)∈ℤ⟺den(𝑇𝑁)∣2ℎ−1.(8)
The power of two in the denominator determines
how many initial steps must pass before a return is possible; the
remaining odd factor 𝑑 determines
the possible return lengths. Once that factor is reached, Euler’s
congruence supplies 𝑑 ∣2𝜑(𝑑) −1. The least positive
return length is the multiplicative order of 2 modulo 𝑑, taken to be 1 when 𝑑 =1. Before the power of two is removed
there is no return: for example, 𝑇𝑁 =1/2 gives no integral shift at 𝑁, since 2ℎ −1 is always odd. This periodicity
concerns fractional parts, not full tail values or coefficients.
Theorem 5.3 (exact rationality classification).
Let 𝑇 :ℕ →ℝ satisfy 𝑇𝑁+1 =2𝑇𝑁 −𝑔𝑁+1 with integer
coefficients 𝑔. The following are
equivalent:
𝑇0 is
rational;
𝜎ℎ(𝑁) is an
integer for some ℎ ≥1 and some
𝑁;
for some fixed ℎ ≥1,
𝜎ℎ(𝑁) is an integer at every
sufficiently large 𝑁.
Consequently 𝑇0 is
irrational if and only if every positive-length shift is nonintegral at
every index, equivalently if and only if for every ℎ ≥1 and every cutoff some later 𝑁 has 𝜎ℎ(𝑁) ∉ℤ.
Proof. For (i)⇒(iii), the block identity makes every 𝑇𝑁 rational. By (8), its
denominator is a fixed odd integer 𝑑 for all sufficiently large 𝑁. Choose ℎ =𝜑(𝑑); Euler’s congruence and the same
formula show that every subsequent 𝜎ℎ(𝑁) is integral. The implication
(iii)⇒(ii) is immediate. For (ii)⇒(i), the block identity gives 𝜎ℎ(𝑁) =(2ℎ −1)𝑇𝑁 −𝐵ℎ,𝑁 with 𝐵ℎ,𝑁 and 𝜎ℎ(𝑁) integers and 2ℎ −1 ≠0, so 𝑇𝑁 is rational, and 𝑇𝑁 =2𝑁𝑇0 −𝐵𝑁,0 then makes 𝑇0 rational. Negating the three
conditions gives the two irrationality formulations. ◻
Lemma 5.4 (the boundary condition for the tail
recurrence). Let 𝑎1,𝑎2,… be real numbers with ∑𝑗≥1|𝑎𝑗|2−𝑗 <∞, and
let 𝑈𝑁+1 =2𝑈𝑁 −𝑎𝑁+1. Then
𝑈𝑁=∑𝑗≥1𝑎𝑁+𝑗2−𝑗for every 𝑁⟺2−𝑁𝑈𝑁⟶0.
Proof. Iteration gives 2−𝑁𝑈𝑁 =𝑈0 −∑𝑁𝑗=1𝑎𝑗2−𝑗.
The limit is zero exactly when 𝑈0
equals the full series; subtracting its first 𝑁 terms then gives the claimed tail
formula. Without the boundary condition, one may add 𝐶2𝑁 to every 𝑈𝑁 without changing the
recurrence. ◻
For instance, zero coefficients and initial value 𝑈0 =1/12 give 112,16,13,23,43,…,
with 𝑈𝑁+ℎ −𝑈𝑁 =(2ℎ −1)2𝑁/12.
Shifts of length 2 become integral
at index 2; shifts of length 1 never do. These are not complete tails
of the zero sequence, since 2−𝑁𝑈𝑁 =1/12 does not tend to zero. The
denominator calculation remains valid, but the boundary condition
excludes this extra homogeneous term.
The actual prime-gap tails.
Put
𝑇𝑁=∑𝑗≥1𝑔𝑁+𝑗2𝑗,
which converges by Theorem 4.3. Reindexing
identifies this sum with the rescaled complete tail of 𝑆, as in the shifted-gap
series identity. Splitting off the first term gives 𝑇𝑁+1 =2𝑇𝑁 −𝑔𝑁+1 without a
rationality hypothesis, as formalised in the real
tail recurrence. Since 𝑇0 =2𝑆 −1 =2.349287932…, the numbers
Π, 𝑆 and 𝑇0 have the same rationality status, and
Theorem 5.3
specialises to the actual series: irrationality of Π is equivalent to nonintegrality
arbitrarily far out for each positive shift of 𝑇. The formal statement is the irrationality
equivalence for the actual prime tails. Thus the passage from the
series to its complete tails is proved. What remains is to establish the
required nonintegrality for these prime-gap tails.
Pairs of congruent indices and least-common-multiple shifts
Instead of prescribing the offset 𝑀 −𝑁, we may prescribe a positive modulus
𝑡 and allow any pair with 𝑀 ≡𝑁(mod𝑡). This gives more freedom
in finding a witness, but the test must still work for every 𝑡 and beyond every cutoff.
Theorem 5.5 (pairs of congruent indices). 𝑆 is irrational if and only if for every
𝑡 ≥1 and every 𝑁0 there are 𝑁,𝑀 ≥𝑁0 with 𝑀 ≡𝑁(mod𝑡) and 𝑇𝑀 −𝑇𝑁 ∉ℤ.
Proof. If 𝑆 is
irrational, take 𝑀 =𝑁 +𝑡 for the
𝑁 supplied by Theorem 5.3 at
shift length 𝑡. Conversely, suppose
𝑆 is rational. By (8) the orbit
reaches an index 𝑁0 beyond which
the reduced denominator is a fixed odd 𝑑; let 𝑡 be the multiplicative order of 2 modulo 𝑑, taking 𝑡 =1 when 𝑑 =1. For 𝑁,𝑀 ≥𝑁0 with 𝑀 ≡𝑁 modulo 𝑡, the difference 𝑇𝑀 −𝑇𝑁 is then an integer, contradicting
the stated property at this 𝑡 and
this cutoff. ◻
The obstruction under rationality is therefore one particular
modulus: the order of 2 modulo the
eventual odd denominator. A successful pair for some other modulus does
not exclude it.
Equal tail values do not help this criterion, since their difference
is zero. Section D.4 shows
that rationality and the prime number theorem would in fact force many
equal tail values. It also explains why, beyond the rational denominator
cutoff, an interval condition excluding integers already contradicts
rationality at indices congruent modulo the corresponding multiplicative
order. These are ordinary deductions, not additional formalised
statements.
Alternatively, one can fix the pairs in advance. Let 𝐿0 =1 and 𝐿𝑗 =lcm(1,…,𝑗). These numbers
eventually exceed any starting cutoff and are eventually divisible by
any proposed period.
Theorem 5.6 (criterion
using least common multiples). Let 𝑔 :ℕ →ℤ and 𝑇 :ℕ →ℝ satisfy 𝑇𝑁+1 =2𝑇𝑁 −𝑔𝑁+1. Then 𝑇0 is irrational if and only if 𝑇2𝐿𝑗 −𝑇𝐿𝑗 ∉ℤ for every 𝑗 ≥0.
Proof. Theorem 5.3 gives
the forward implication. Conversely, if 𝑇0 is rational then some positive shift
length ℎ is integral at every
basepoint beyond an index 𝑁0.
Choose 𝑗 so large that 𝑁0 ≤𝐿𝑗 and ℎ ∣𝐿𝑗. The telescoping identity 𝜎𝑎+𝑏(𝑁) =𝜎𝑎(𝑁) +𝜎𝑏(𝑁 +𝑎)
shows by induction that every positive multiple of ℎ is integral at every such basepoint, so
𝑇2𝐿𝑗 −𝑇𝐿𝑗 is an
integer. ◻
One could use factorials instead of least common multiples, since
they have the same eventual divisibility property. The least common
multiples are no larger at each index. Theorems 5.5 and 5.6 change
which tail differences one must test, but remain exact equivalences for
integer-coefficient recurrences. Neither proves the needed
nonintegrality for the actual prime gaps.