Plectis

Long paper

The Binary Totient Series

Erdős #249 By July 2026; revised 1 October 2026 Authorship, AI use and citation

Summary. The dyadic totient sections through level e≥1 have an explicit rational basis of size 2e+1. Truncating a scaled tail difference produces an integer whose residue certifies nonintegrality when its distances from both endpoints of the residue interval exceed an explicit error bound. The record develops the resulting finite denominator exclusions, equivalent residue criteria, and sufficient exponential-sum estimates. Rational comparison sequences identify the limitations of particular size, parity, rank, and finite-prefix arguments. The short paper supplies the all-base basis theorem; here each conditional result carries the arithmetic hypothesis still needed to apply it. Those hypotheses are not established in the form required to prove irrationality of S=∑ φ(n)2−n.

This paper covers a claim-bounded problem-specific reasoning surface for Erdős #249: selected checked premises, finite certificates, closed routes, surviving obligations, and their exact evidence bands.

It does not establish the validity of claims tagged Lean, which belongs to the cited kernel-checked source, or a solution to Erdős #249, which remains open.

In this paper

Initial implications

Definition 6.13 (The scaled tail). For N∈N,

RN=∑j≥0φ(N+1+j)2j+1.

The series converges because φ(n)≤n. It is the tail of S multiplied by 2N, not the fractional part of 2NS; indeed, RN need not lie in [0,1). totientTail

Definition 6.14 (The truncated tail difference). For h,N,L∈N, define the integer

D(h,N,L)=∑j=0L−1(φ(N+h+1+j)−φ(N+1+j))2L−1−j.

The sum is empty when L=0. Dividing it by 2L gives the first L terms of RN+h−RN. Computing the finitely many totients therefore determines D(h,N,L) exactly; the residue inequality below is the decidable condition. windowDiscrepancy

Definition 6.15 (The central-residue inequality). For h,N,L∈N, the finite condition C(h,N,L) is

N+h+L+2<D(h,N,L)mod2L<2L−(N+h+L+2).

It puts the residue outside both endpoint intervals of width N+h+L+2. After division by 2L, the excluded width tends to zero as L grows with h,N fixed. No analytic hypothesis is part of this finite test; the separate condition Sep quantifies over such tests. certifiedKill

Proposition 6.16 (The prefix-tail identity). For every N∈N,

2NS=ΦN+RN,ΦN=∑n≤Nφ(n)2N−n∈Z.

Thus RN and 2NS have the same fractional part. Subtracting the identities at N+h and N gives the tail-difference congruence used in the irrationality criterion.

Lemma 6.17 (The necessary depth inequality). For h,N,L∈N, the condition C(h,N,L) implies

2(N+h+L+2)<2L.

Indeed, its lower residue bound must be smaller than its upper bound. Thus L>1+log2⁡(N+h+L+2) whenever a certificate holds. In particular, a fixed depth cannot accommodate unbounded N+h. This is a necessary depth bound, not an upper bound for finding a certificate.

Proposition 6.18 (A certificate implies nonintegrality). For all h,N,L∈N,

C(h,N,L) ⟹ RN+h−RN∉Z.

The scaled truncation error satisfies |2L(RN+h−RN)−D(h,N,L)|≤N+h+L+2. If the tail difference were integral, D(h,N,L) would therefore lie within that distance of a multiple of 2L, contrary to the two strict residue inequalities.

Theorem 6.19 (Nonintegrality gives a certificate at some depth). For every h,N∈N,

(∃L∈N, C(h,N,L))⟺RN+h−RN∉Z.

For the converse to Proposition 6.18, fix a positive distance from the nonintegral tail difference to the nearest integer. The normalised error (N+h+L+2)/2L tends to zero, so a sufficiently large truncation preserves that distance. This is a pointwise equivalence; irrationality requires the stated quantifiers over the shift and basepoint.

Definition 6.20 (The least common multiple of the first integers). Put H(0)=1 and H(t+1)=lcm⁡(H(t),t+1). Then H(t)=lcm⁡(1,…,t), t≤H(t), and every positive integer h≤t divides H(t). This is why a single LCM parameter can absorb any fixed hypothetical period once t is large enough. periodLcm le_periodLcm

Proposition 6.21 (The Farey gap lemma). Let a,b,c,d,r,s∈Z, with b,d>0 and bc−ad=1. If

as<rbandrd<cs,

then b+d≤s. The two cross-products rb−as and cs−rd are positive integers, and

s=d(rb−as)+b(cs−rd)≥d+b.

In particular, a rational r/s strictly between the Farey neighbours a/b and c/d, with positive denominator, has denominator at least b+d.

Proposition 6.22 (An irrationality criterion from rational approximations). Let x∈R and let uk=pk/qk∈Q be in lowest terms, with qk>0. If uk≠x for every sufficiently large k and qk|x−uk|→0, then x is irrational. Indeed, if x=a/b with a∈Z and b≥1, a nonzero integer numerator gives qk|x−uk|=|aqk−bpk|/b≥1/b, a contradiction. This elementary criterion requires both nonvanishing and the scaled error estimate. Convergence uk→x alone is insufficient, and the approximants need not be continued-fraction convergents.

Proposition 6.23 (An irrationality criterion from near integers). Let ξ∈R. Suppose that for every integer q≥1 there are integers m,z with

0<|mξ−z|<1/q.

Then ξ is irrational: if ξ=a/b with b≥1, every nonzero such difference is at least 1/b. Restricting the multiplier to powers m=b0n of a fixed integer base b0≥2 gives a sufficient special case, not a hypothesis satisfied by every irrational number. The strict lower bound excludes exact integer hits; the upper bound must be available for arbitrarily large q.

For a binary example, form a number by concatenating the blocks 10 at square indices k≥1 and 01 at the other indices. Its binary expansion is not eventually periodic, since the block sequence has increasingly long gaps between the square indices, so the number is irrational. There are no three consecutive equal digits. Every fractional part after a binary shift therefore lies in [1/8,7/8], and the multiples 2nξ do not approach the integers. This verifies that the restriction to base powers is genuinely stronger. This example is an ordinary mathematical argument, not an additional claim about the linked formalisation.

Proposition 6.24 (A nonsingular evaluation matrix gives independence). Let I be a finite index set and let fj:N→Q for j∈I. If there are evaluation points ni∈N such that

det(fj(ni))i,j∈I≠0,

then the family (fj)j∈I is linearly independent over Q. A relation among the functions, evaluated at the ni, gives a vector in the kernel of this nonsingular matrix, so all coefficients vanish. Finiteness is required to form the displayed determinant. In the totient application the arithmetic work is to construct these evaluation points; the implication itself is ordinary linear algebra.

Proposition 6.25 (The gap between distinct rational numbers). If a/b<c/d are reduced rational numbers with b,d>0, then

cd−ab=bc−adbd≥1bd.

The numerator bc−ad is a positive integer. Thus an upper bound on a positive rational error gives a lower bound on the product of the reduced denominators. A large denominator in an unreduced displayed expression need not be the reduced denominator appearing in this conclusion.

Proposition 6.26 (The Möbius identity for S). The absolutely convergent series satisfy

S=∑n≥1φ(n)2n=∑d≥1μ(d)2d(2d−1)2=12+∑d≥1μ(d)(2d−1)2.

For the first rearrangement use φ(n)=∑d∣nμ(d)n/d. For the second use 2d=(2d−1)+1 and the classical identity ∑d≥1μ(d)/(2d−1)=1/2. These are identities of values, not transfers of irrationality from a Lambert series with a different weight.

Corollary 6.27 (An equivalent irrationality question). Subtracting the rational number 1/2 gives

S∉Q⟺∑d≥1μ(d)(2d−1)2∉Q.

This is the same irrationality question in a different series representation. The notation L2(μ) for the right-hand series is introduced in Definition 6.29.

Proposition 6.28 (The squared-Lambert identity). Let w:N→R satisfy |w(d)|≤d for d≥1, and let 0≤r<1. Then

∑d≥1w(d)(rd1−rd)2=∑n≥1(∑d∣nw(d)(nd−1))rn.

Expand (x/(1−x))2=∑j≥1(j−1)xj and group terms by n=dj. Absolute convergence follows from the bound on w and geometric decay. The cases w=μ, w=1 and w=φ give the next three series; the same algebra applies to each, but their arithmetic values differ.

Definition 6.29 (The squared-Lambert series with weight μ). Put

L2(μ)=∑d≥1μ(d)(2d−1)2=S−12.

The equality follows from Proposition 6.26 and Proposition 6.28 with w=μ. Subtracting 1/2 preserves rationality, so the irrationality of this series is exactly the question about S, not a separate easier claim. The formula is credited in §5.4. tsum_totient_half_pow_eq_half_add_moebius_sq

Proposition 6.30 (Weight one and divisor sums). ∑d:N+′1/(2d−1)2=∑n:N+′(σ(n)−τ(n))⋅(1/2)n=ζq(2)−ζq(1) at q=1/2. The displayed identity is formalised. Irrationality of its value follows from the cited linear independence result of Postelmans and Van Assche, as explained in Proposition 5.17; that literature result is not formalised here. Replacing the weight 1 by μ changes the value to that of Definition 6.29. Observation 6.32 compares the two choices of weight.

Proposition 6.31 (Totient weight and gcd moments).

∑d:N+′φ(d)/(2d−1)2=∑n:N+′(P(n)−n)⋅(1/2)n,

where P=φ∗Id (Pillai’s gcd-sum function). It also equals E[gcd(X,Y)] when X,Y are independent and P(X=n)=P(Y=n)=2−n for n≥1; see Proposition 5.18. This is a different weighted series. Its rationality is not settled by the identities proved here.

Observation 6.32 (Comparison of weighted series). For L(f)=∑d≥1f(d)/(2d−1), the three weights give

L(μ)=12,L(1)=E,L(φ)=2,

where E is the irrational Erdős–Borwein constant. For the squared denominators, they give

L2(μ)=S−12,L2(1)=ζ1/2(2)−ζ1/2(1),L2(φ)=E[gcd(X,Y)].

The first equality is Definition 6.29; the second and third are Propositions 6.30 and 6.31. The middle value is irrational by the cited linear independence theorem. The other two rationality questions are not settled in this record. These examples show that the choice of weight matters: an identity with the same denominators does not transfer an irrationality theorem from one weight to another. They do not classify all weighted Lambert series.

Proposition 6.33 (The weight of pairs divisible by a fixed integer). Let X,Y be independent random variables with P(X=n)=P(Y=n)=2−n for n≥1. For every d≥1,

P(d∣X, d∣Y)=1(2d−1)2.

This follows by multiplying the two geometric sums ∑k≥12−dk=1/(2d−1). It explains the squared denominator in the preceding Möbius identity.

Proposition 6.34 (The sum over coprime directions). The sum over positive coprime pairs satisfies

∑a,b≥1gcd(a,b)=112a+b−1=1.

To see the normalisation, write every pair of positive integers uniquely as (ka,kb) with gcd(a,b)=1, and sum 2−k(a+b) over k≥1. The total is (∑n≥12−n)2=1. This base-two normalisation is used in Proposition 6.35.

Proposition 6.35 (A Stern–Brocot recursion with stopping). For positive integers a,b, put

M(a,b)=1(2a−1)(2b−1).

Then

M(a,b)=12a+b−1+M(a+b,b)+M(a,a+b).

Multiplication by the common denominator proves the identity. At the root (1,1), the three terms on the right are each 1/3, and M(1,1)=1.

The first term is a mass retained at the current node, not passed to either child. Thus the probabilistic interpretation is a branching process with stopping: after division by M(a,b), the stopping and two transition probabilities are, respectively,

(2a−1)(2b−1)2a+b−1,2a−12a+b−1,2b−12a+b−1.

They sum to one. The stopping probability is at least 1/3, which gives the next proposition’s geometric error bound. Also M(a,b)=P(a∣X)P(b∣Y) for the independent geometric variables used above. The identity does not describe a conservative mass split between the two children alone.

Proposition 6.36 (Convergence with an explicit error). In the splitting identity of Proposition 6.35, the sum of the two child terms is at most 2/3 of the parent term. If Md(a,b) is the sum of the contributions removed during the first d levels, then

|M(a,b)−Md(a,b)|≤(2/3)dM(a,b).

In particular, Md(a,b)→M(a,b). This convergence statement is separate from identifying the limit with a sum over any independently defined infinite set of descendants; no additional identification is asserted here.

Proposition 6.37 (A numerator polynomial and its coefficients). For squarefree r≥1, the polynomial defined above has coefficients

[Xk]Pr(X)={rgcd(r,k)φ(gcd(r,k)),0≤k<r,0,k≥r.

For k<r, extracting the coefficient gives ∑d∣gcd(r,k)μ(d)r/d; the usual divisor formula for φ evaluates this sum. All coefficients in the range 0≤k<r are positive. Thus a signed sum of geometric polynomials has an explicit positive-coefficient expression. The squarefree hypothesis is retained as in the cited formal statements.

Proposition 6.38 (Evaluation at two). For squarefree r≥1, evaluation of Pr at two gives the integer

Pr(2)=∑d∣rμ(d)rd2r−12d−1.

Each quotient is an integer because d∣r. The formal definition sums over subsets of the prime divisors of r; for squarefree r these are exactly its divisors. This identifies the polynomial calculation with the numerator used in br.

Proposition 6.39 (Decomposition by the radical). For H≥1 and r≥1,

HβH=Hrad⁡(H)brad⁡(H),den⁡(br)=2r−1gcd(|Pr(2)|,2r−1).

The first equality follows from the definition of βH; the second is ordinary reduction of an integer fraction. Multiplication by H/rad⁡(H) can cause further cancellation. No coprimality assumption is included in either identity.

The constant in Proposition 6.40 is the value of Pr at a primitive m-th root of unity. Since the Xk coefficient of Pr depends only on gcd(k,r), the value is a discrete Fourier coefficient of a function of the greatest common divisor, which Schramm expresses through Ramanujan sums [14]; Proposition 6.40 specialises this to the present numerator polynomial and proves the integral cyclotomic consequence.

Proposition 6.40 (A cyclotomic congruence). Let r be squarefree and m∣r. In Z[X],

Pr(X)≡μ(m)J2(r/m)(modΦm(X)),

where J2(n)=n2∏p∣n(1−p−2) is the second Jordan totient. Evaluation at two gives

Φm(2)∣Pr(2)−μ(m)J2(r/m).

Proof. To prove the congruence, let ζ be a primitive m-th root of unity. Since m∣r, the geometric sum in the definition of Pr is r/d when m∣d and zero otherwise. Hence

Pr(ζ)=∑d∣rm∣dμ(d)(r/d)2.

Write r=mu. Squarefreeness gives gcd(m,u)=1, so substituting d=me reduces this to μ(m)∑e∣uμ(e)(u/e)2=μ(m)J2(u). The minimal polynomial Φm therefore divides the difference in Q[X]; because it is monic, polynomial division gives the quotient in Z[X]. Taking m=r gives the coprimality in Proposition 6.5. ◻

Squarefreeness cannot simply be dropped from this constant formula. For r=4 and m=2, P4(X)=2+4X+2X2+4X3, so P4(−1)=−4, whereas μ(2)J2(2)=−3. Here P4(2)=50 and Φ4(2)=5; the latter factor cancels from b4=50/15=10/3. Positive polynomial coefficients alone therefore do not prevent denominator cancellation.

Proposition 6.41 (Adjoining a prime: new divisors). Let r≥1, let p∤r be prime, and let m∣r. Then

Prp(X)≡−Pr(Xp)(modΦmp(X)).

Proof. Splitting the divisors of rp into d and pd, with d∣r, gives the exact polynomial identity

Prp(X)=p(∑j=0p−1Xjr)Pr(X)−Pr(Xp).

At a primitive mp-th root ζ, the number ζr is a nontrivial p-th root, because m∣r and p∤r. The geometric factor vanishes, proving the stated congruence. No squarefree hypothesis on r is needed for this identity. If r is squarefree, ζp is a primitive m-th root, and Proposition 6.40 gives the constant remainder −μ(m)J2(r/m). ◻

Proposition 6.42 (Adjoining a prime: existing divisors). Let r be squarefree, let p∤r be prime, and let m∣r. For the existing divisors m, the corresponding identity is

Prp(X)≡(p2−1)Pr(X)(modΦm(X)).

Proof. Apply Proposition 6.40 to both r and rp. Since p∤r/m, multiplicativity gives J2(rp/m)=(p2−1)J2(r/m), which proves the identity. The squarefree hypothesis is retained as in the Lean statement. This compares the remainders at the existing divisors m; the preceding proposition treats the new divisors mp. ◻

Proposition 6.43 (Lambert-series identities). For an arithmetic function f for which the sums converge absolutely, write L(f)=∑n≥1f(n)/(2n−1). Expanding each geometric series gives

L(f)=∑m≥1(f∗1)(m)2m.

In particular, if α=φ∗μ, then α∗1=φ and L(α)=S. The table distinguishes this value from four other Lambert-series values. The identity changes the coefficients and the form of the denominator; it does not transfer an irrationality theorem for one weight to another.

Five Lambert-series values and the support for their stated arithmetic status.

Weight f

Value L(f) Status
μ L(μ)=1/2 rational, trivial
φ L(φ)=2 rational
Id L(Id)=∑mσ(m)/2m transcendental, since 1−24L(Id) is Ramanujan’s P(1/2) (Nesterenko [13]; the Lean proof takes his theorem as a hypothesis)
1 L(1)=E, Erdős–Borwein constant irrational (Erdős [11]), also proved in Lean (irrational_erdosBorwein_series)
α=φ∗μ L(α)=S OPEN; this is #249

Remark 6.44 (How the identities differ). The coefficients matter: a result for the constant weight 1 does not settle the series with weight α=φ∗μ. A theorem expressed in Lambert-series form applies here only after its assumptions have been checked for that weight.

The equality between the two indexing conventions for S is proved in Lean (tsum_totient_div_pow_two_eq_pnat_half_pow). The table keeps apart a cited theorem, an ordinary identity and a formal declaration.

Proposition 6.45 (An affine combination annihilates the specified divisor terms). Let H≥1 and d∣H, with d>0. The dth term in the Möbius expansion of RmH is μ(d)Kd(mH), where

Kd(mH)=mHd(2d−1)+2d(2d−1)2.

This is affine in m. Consequently, for any finite family of real coefficients ci and nonnegative integers mi with ∑ici=∑icimi=0, one has ∑iciKd(miH)=0.

For the four multipliers (1,3,5,15) and coefficients (4,−3,−2,1),

Kd(15H)−3Kd(3H)−2Kd(5H)+4Kd(H)=0.

The zeroth and first moments are zero, while the second is 152−3⋅32−2⋅52+4=152. Equivalently, XY−3X−2Y+4 takes the values 0,0,152 at (1,1),(3,5),(9,25). This explains the coefficients: they cancel the affine contribution of each divisor of H, without cancelling a general quadratic function of the multiplier.

For a finite truncation of depth L≥0, write

U=∑j=1L(φ(15H+j)−3φ(3H+j)−2φ(5H+j)+4φ(H+j))2L−j.

The difference between 2L(R15H−3R3H−2R5H+4RH) and U has absolute value at most 19H+5L+5. Indeed, the error equals

(R15H+L+4RH+L)−(3R3H+L+2R5H+L),

and both parenthesised terms lie between 0 and 19H+5L+5 by 0≤Rn≤n+1 for n≥1. Thus

19H+5L+5<Umod2L<2L−(19H+5L+5)

is sufficient for this four-tail combination to be nonintegral. The bound is derived from these tail enclosures; no optimality for the actual totient tails is asserted. Obtaining such certificates at the required unbounded family of LCM heights remains unproved, as in Theorems 6.60 and 6.52.

Proposition 6.46 (The error under composite dilation). For A⊆N and n≥1, let dA(n)=#{d≥1:d∣n, d∈A}. If a∈A and a,x≥1, then

dA(ax)=dA(x)+1a∤x+#{d∣ax:d∈A, d∤x, d≠a}.

Indeed, partition the divisors of ax into those already dividing x, the possible new divisor a, and all other new divisors. If every element of A is prime, the last set is empty, since a prime dividing ax but not x must equal the prime a. For composite a it can be nonempty: at A=N, a=6, x=1, the other new divisors are 2 and 3.

This is an unweighted counting identity. The associated Lambert series satisfies

∑a∈Aa≥112a−1=∑n≥1dA(n)2n.

For the totient series the required divisor-convolution weight is instead α=φ∗μ, since α∗1=φ, as in Proposition 6.43. Weighting all divisors by φ would give ∑d∣nφ(d)=n, not φ(n); already at n=2 these values are 2 and 1. A weighted version must retain the weights of the new divisors, so it cannot be obtained by substituting A=N in this unweighted formula. Also α(p)=p−2 for primes p, so α is unbounded and is not a periodic weight.

About this paper

Authorship and AI use. Will Cook built and directed the research infrastructure and maintains the public release. He reviewed claims when he could. AI agents did most of the research and drafting. Cook did not independently verify every claim.

Cite and contact. Cite this paper by its title, author and date above, with its PDF; cite the earlier sources it uses for a mathematical result. For software, use the release citation and give the commit used. Contact Will with questions or corrections.

Prefer the manuscript?

Equations typeset from the exact TeX. Rendered from the LaTeX manuscript source with file fingerprint sha256:2be13b340f9dafc4. Its file fingerprint matched the published source record, so the PDF above, the LaTeX, and this page are one manuscript. Redeploying the site regenerates this page from whatever the public repository holds at that moment.