Gallardo and Rahavandrainy studied an analogue of the Collatz map on F2[x], in which x(x+1) plays the role of 2 and x2+x+1 that of 3: an odd polynomial A is sent to the odd part of 1+(x2+x+1)A. They proved that every orbit reaches 1, and conjectured that the orbit of the trinomial xn+x+1 has length 2s+1, where s is the largest integer with 2s+1<n, and that for 1≤t≤s−1 it contains 2t terms of the same degree. We prove both statements for every n≥3. The proof rests on the identity (x2+x+1)+x(x+1)=1: it reduces the dynamics to a map from one plateau to the next, characterises the last plateau of any orbit, and shows that along the orbit of xn+x+1 the plateaus start at the 2j-th powers of the odd parts of the polynomials xm(x2+x+1)+1, the index m following an explicit binary recursion. We also note that a later restatement of the conjecture, with a non-strict inequality, fails exactly when n is a power of 2. A script checks all the statements numerically.
Introduction
Throughout we work in F2[x] and put
D=x(x+1)=x2+x,M=x2+x+1,so thatM+D=1.(1)
A polynomial A is odd if gcd(A,D)=1, that is, A(0)=A(1)=1. For B=0 we write odd(B) for B with all its factors x and x+1 removed. For odd A the Collatz step of Gallardo and Rahavandrainy [2] is
T(A)=odd(1+MA).
In their notation A1=odd(A), A2k=1+MA2k−1 and A2k+1=odd(A2k), so the odd sequence of an odd A is A,T(A),T2(A),…; they proved [2 Theorem 1.2] that it reaches 1, with length at most 2degA−1. Its length ℓA is the number of its terms up to and including the first 1; this is the integer ℓA=m+1 of [2 Theorem 1.2], whose odd sequence is [A1,A3,…,A2m−1,1].
For the trinomials Tn=xn+x+1 they made two conjectures [2 Section 3.10]. Let s be the largest integer such that n−2s+1≥1.
Conjecture 3.12. For every positive integer t≤s−1, the odd sequence of Tn contains 2t polynomials which have the same degree dt; in particular d1=degA5=degA7 and d2=degA9=⋯=degA15.
Conjecture 3.13.ℓTn=2s+1.
The family is considered for n≥2; for n=2 one gets s=−1, while T2=M has length 2, so the conjectures are meaningful for n≥3. For n≥3 one has s=k−2, where k=⌈log2n⌉, since $2^{s+1}<n\le 2^{s+2}.Weprovebothconjecturesforeveryn\ge 3.
Theorem 1. Let n≥3 and k=⌈log2n⌉. The odd sequence of Tn=xn+x+1 has length 2k−2+1. If n≥5, it consists of Tn, then of k−2 blocks B1,…,Bk−2, where Bj consists of exactly 2j−1 consecutive terms of the same degree δj, with n>δ1>δ2>⋯>δk−2, and finally of 1.
Corollary 2. Conjectures 3.12 and 3.13 of [2] hold for every n≥3.
Proof. Theorem 1 with s=k−2 gives Conjecture 3.13. For 1≤t≤s−1 the block Bt+1 consists of 2t terms of degree δt+1, and no other term has this degree since the degrees n,δ1,δ2,… are distinct; this is Conjecture 3.12, with dt=δt+1. Moreover Tn and B1,…,Bt have 2t terms in all, so Bt+1 occupies the positions 2t+1,…,2t+1 of the odd sequence, that is, it consists of A2t+1+1,A2t+1+3,…,A2t+2−1; for t=1,2 these are A5,A7 and A9,…,A15.
The blocks are made explicit in Proposition 9: Bj starts with V(mj)2j−1, where V(m)=odd(xmM+1), m1=n−3, and mj+1 is obtained from mj by a binary rule (Lemma 10). The last block starts from a power of one of the four polynomials x3+x+1, x3+x2+1, x4+x+1, x5+x3+x2+x+1.
Section 2 contains three statements valid for every odd polynomial: the plateau lemma, the plateau-to-plateau map with a necessary and sufficient criterion for the orbit to end after a given plateau, and an infinite family of polynomials whose orbit is a single plateau. Section 3 treats the trinomials. In Section 4 we note that the restatement of Conjecture 3.13 as Conjecture 3.3 of [3], with a non-strict inequality, fails exactly at the powers of 2.
The polynomial analogue of the 3x+1 problem goes back to Hicks, Mullen, Yucas and Zavislak [4], who used the map sending f to f/x if x∣f and to (x+1)f+1 otherwise; see also Nichols [5]. The variant studied here, with x(x+1) in the role of 2, is that of [2, 3].
Three facts valid for every odd polynomial
For odd u we write z=u+1, which is divisible by D, and
μ(u)=max{t≥0:Dt∣u+1}≥1.
Since D=x(x+1) with x, x+1 coprime, μ(u)=min(vx(u+1),vx+1(u+1)), and μ(u2e)=2eμ(u) because u2e+1=(u+1)2e.
Lemma 3 (Plateau lemma). Let u be odd of degree at least 1, z=u+1 and μ=μ(u).
(i) degT(u)≤degu, with equality if and only if μ≥2; in that case T(u)+1=Mz/D and μ(T(u))=μ−1.
(ii) Consequently u,T(u),…,Tμ−1(u) all have degree degu, and degTμ(u)<degu.
Proof. (i) Since M+1=D, we have 1+Mu=M(z+1)+1=Mz+D. As M(0)=M(1)=1, the valuation of Mz at x is vx(z)≥1, while vx(D)=1. Hence vx(Mz+D)=1 if vx(z)≥2, and vx(Mz+D)≥2 if vx(z)=1; the same holds at x+1. Since deg(Mz+D)=degu+2, the degree of T(u)=odd(Mz+D) is degu+2−vx(Mz+D)−vx+1(Mz+D)≤degu, with equality exactly when both valuations equal 1, that is, when D2∣z, that is, when μ≥2. In that case T(u)=(Mz+D)/D=Mz/D+1, so T(u)+1=Mz/D, and μ(T(u))=μ−1 because M is coprime to D.
(ii) follows by applying (i) μ times: the values of μ along u,T(u),… are μ,μ−1,…,1, and the step from the term with μ=1 lowers the degree.
We call u,T(u),…,Tμ−1(u) the plateau issued from u.
Lemma 4 (Plateau-to-plateau map). Let u be odd of degree at least 1, μ=μ(u), and
W=DμMμ(u+1)∈F2[x].
Then degW=degu, Tμ(u)=odd(W+1), and
Tμ(u)=1⟺W+1=xi(x+1)j for some i,j≥0.
Proof. By Lemma 3(i), Tt(u)+1=Mtz/Dt for 0≤t≤μ−1. For w=Tμ−1(u) we get, as in the proof of Lemma 3,
1+Mw=M(w+1)+D=Dμ−1Mμz+D=D(W+1),
so Tμ(u)=odd(D(W+1))=odd(W+1). The degree of W is degu+2μ−2μ; in particular W+1=0. Finally odd(W+1)=1 if and only if W+1 is a product of powers of x and x+1.
In the terminology of [1], the orbit ends right after the plateau issued from u if and only if W is a Mersenne polynomial, the exponents i,j being allowed to vanish.
Proposition 5 (Single-plateau orbits). Let i,j≥0 with (i,j)=(0,0) and i≡j(mod3). Then M divides xi(x+1)j+1, and the polynomial
Pi,j=1+MD(xi(x+1)j+1)
is odd of degree i+j. For every e≥0 the odd sequence of Pi,j2e consists of 2e terms of degree 2e(i+j), followed by 1. Proof. Let ω∈F4 be a root of M; then ω+1=ω2, so ωi(ω+1)j+1=ωi+2j+1, which vanishes since i+2j≡i−j≡0(mod3). The same holds for the conjugate root ω2, so
M∣E:=xi(x+1)j+1.
Clearly Pi,j(0)=Pi,j(1)=1 and degPi,j=2+(i+j)−2. Since (i,j)=(0,0), degE=i+j and at least one of E(0),E(1) equals 1; as Pi,j+1=DE/M, we get μ(Pi,j)=1+min(vx(E),vx+1(E))=1. For u=Pi,j2e we get μ(u)=2e and
W=M2e(Pi,j+1)2e/D2e=E2e,
so
W+1=(E+1)2e=xi2e(x+1)j2e.
Lemmas 3 and 4 conclude.
For instance P1,1=M, P3,0=x3+x+1, P0,3=x3+x2+1, P2,2=x4+x+1 and P1,4=x5+x3+x2+x+1.
The trinomials
For m≥0 put
Fm=xmM+1,V(m)=odd(Fm).
Thus F0=D and V(0)=1.
Lemma 6 (First step). For n≥3, μ(Tn)=1 and T(Tn)=V(n−3). Proof. Here z=Tn+1=xn+x=x(xn−1+1), so vx(z)=1 and μ(Tn)=1. Then
W=DMz=x+1M(xn−1+1),
and, using M+x+1=x2,
W+1=x+1Mxn−1+M+x+1=x+1Mxn−1+x2=x+1x2Fn−3.
By Lemma 4, T(Tn)=odd(W+1)=V(n−3).
Lemma 7 (Valuations). For m≥1, vx(Fm)=0 and
vx+1(Fm)=1,3,1,2according asm≡0,1,2,3(mod4).
Hence degV(m)=m+2−vx+1(Fm); in particular degV(m)≤m+1, and degV(m)≤m if m is odd. Moreover V(1)=1 and degV(m)≥3 for m≥2.
Proof.Fm(0)=1 for m≥1. Put y=x+1; then M=y2+y+1 and
the coefficients being read modulo 2. If m is even, the coefficient of y is 1. If m is odd, it vanishes and the coefficient of y2 is (2m), which by Lucas’ theorem is odd if and only if the bit of weight 2 of m is 1, that is, m≡3(mod4). If m≡1(mod4), then (2m) and (3m) are even, again by Lucas, and the coefficient of y3 is m≡1. The degree formula follows from degFm=m+2. Finally F1=x3+x2+x+1=(x+1)3, and for m≥2 the bound vx+1(Fm)≤3 gives degV(m)≥m−1≥3 when m≥4, while degV(2)=degV(3)=3.
and in each case M2x2m′+1=(Mxm′+1)2=Fm′2. Taking odd parts, T(V(m))=odd(Fm′2)=V(m′)2.
For the last assertion, by Lemma 3(i) it suffices to show degT(V(m))<degV(m), that is, 2degV(m′)<degV(m). If m is even, 2degV(m′)≤2(m′+1)=m<m+1=degV(m) (for m′=0, V(0)=1). If m is odd, then m′ is odd, since m−3≡2(mod4) when m≡1 and m−1≡2(mod4) when m≡3(mod4); hence degV(m′)≤m′ by Lemma 7, and 2degV(m′)≤m−3<m−1=degV(m) if m≡1(mod4), 2degV(m′)≤m−1<m=degV(m) if m≡3(mod4).
Proposition 9 (Frobenius induction). Let m≥2, e≥0 and u=V(m)2e. Then μ(u)=2e and T2e(u)=V(m′)2e+1.
Proof. By Lemma 8, μ(u)=2eμ(V(m))=2e. Put H=M(V(m)+1)/D; then W=M2e(u+1)/D2e=H2e and W+1=(H+1)2e. By (1),
H+1=DM(V(m)+1)+D=DMV(m)+1,
so odd(H+1)=T(V(m))=V(m′)2 by Lemma 8. By Lemma 4, T2e(u)=odd(W+1)=odd(H+1)2e=V(m′)2e+1.
:::`
Lemma 10 (A binary recursion). For m≥2 put N=m+2 and N′=m′+2. Then N′ is obtained from N by deleting its two lowest binary digits b1b0 and appending the digit b1∨b0:
N′=2⌊N/4⌋+(b0∨b1).
In particular, if N has L≥3 binary digits then N′ has L−1, and after t≤L−2 iterations the value has digits bL−1…bt+1(bt∨⋯∨b0).
Proof. If m is even, N is even, b0=0, and N′=m/2+1=N/2=2⌊N/4⌋+b1. If m≡1(mod4), then N=4q+3 and N′=(m+1)/2=2q+1. If m≡3(mod4), then N=4q+1 and N′=(m+3)/2=2q+1. The other assertions follow by induction.
Proof of Theorem 1. If n∈{3,4}, then T3=P3,0 and T4=P2,2, so ℓTn=2=2k−2+1 by Proposition 5.
Let n≥5, so m1=n−3≥2, and define mj+1=mj′ as long as mj≥2. Put Nj=mj+2. Since 2k−1<n≤2k, the integer N1=n−1 has exactly k binary digits, and by Lemma 10 Nj has k−j+1 digits. Hence mj≥2 (i.e. Nj≥4) exactly for 1≤j≤k−2, and mk−1∈{0,1}, so V(mk−1)=1.
By Lemma 6 the odd sequence starts with Tn, a plateau of length 1, followed by V(m1). By Proposition 9 and induction on j, for 1≤j≤k−2 the term following Tn and the blocks B1,…,Bj−1 is V(mj)2j−1, and the plateau issued from it, Bj, has exactly 2j−1 terms; the term after Bk−2 is V(mk−1)2k−2=1. By Lemma 3(ii) the degree drops strictly after Tn and after each block. The length is 1+(1+2+⋯+2k−3)+1=2k−2+1.
Remark 11 (The last block). The last block starts from V(mk−2)2k−3, where Nk−2=mk−2+2 has the three digits 1bk−2(bk−3∨⋯∨b0) of n−1=∑bi2i. Thus V(mk−2) is V(2)=x3+x+1, V(3)=x3+x2+1, V(4)=x5+x3+x2+x+1 or V(5)=x4+x+1 according as Nk−2=4,5,6,7; these are P3,0, P0,3, P1,4 and P2,2 of Proposition 5. For example, n=33 gives m=30,14,6,2 and x3+x+1.
A remark on the restatement in the 2025 paper
In the arXiv version of [3], Conjecture 3.13 of [2] is restated as Conjecture 3.3, for both the even and the odd sequences of A=xn+x+1, n≥4, with s the greatest positive integer such that n−2s+1>0. With this non-strict inequality the predicted length 2s+1 differs from the true length 2k−2+1 exactly when n is a power of 2: for n=2k it predicts 2k−1+1. Thus it fails for n=4 and n=8 (predicting 3 and 5 instead of 2 and 3), and for instance, for n=32 the length is 9, as in the table of [3], whereas the restated formula gives 17. The original statement of [2], with the strict inequality n−2s+1≥1, is the one proved here.
Verification
The ancillary file verify_collatz_binary.py (Python 3, no dependency) recomputes, by exact arithmetic on bit-encoded polynomials, the identities used above and the statements of Lemmas 3–10, Propositions 5 and 9 and Theorem 1 on the ranges it prints (for instance the length formula for 3≤n≤1199, and the blocks and the last block for 5≤n≤699), and the comparison of § 4 for 4≤n≤2099. It runs in less than two minutes. These computations check the statements; the proofs above do not depend on them.
Acknowledgements. Technical assistance: Claude (Anthropic).
References
[1]L. H. Gallardo and O. Rahavandrainy, On Mersenne polynomials over F₂, Finite Fields Appl. 59 (2019), 284–296.DOI
[2]L. H. Gallardo and O. Rahavandrainy, On Collatz conjecture for binary polynomials, arXiv:2308.01181, 2023.arxiv.org/abs/2308.01181
[3]L. H. Gallardo and O. Rahavandrainy, A variant of Collatz’s conjecture over binary polynomials, arXiv:2510.07530, 2025; Rev. Un. Mat. Argentina 69 (2026), no. 1, 295–302, doi:10.33044/revuma.5555.DOI
[4]K. Hicks, G. L. Mullen, J. L. Yucas and R. Zavisak, A polynomial analogue of the 3N + 1 problem, Amer. Math. Monthly 115 (2008), no. 7, 615–622.DOI
[5]D. Nichols, Analogues of the 3x + 1 problem in polynomial rings of characteristic 2, Experiment. Math., doi:10.1080/10586458.2016.1227734; arXiv:1610.02545.DOI