Lemma P2.1

In Z[x],\mathbb{Z}[x],

xn1=(x1)(k=0n1xk).x^n - 1 = (x - 1)\left(\sum_{k=0}^{n-1}x^k \right).

Proof

(x1)(k=0n1xk)=x(k=0n1xk)(k=0n1xk)=(k=0n1xk+1)(k=0n1xk)=(x1+x2++xn1+xn)(x0+x1++xn2+xn1)=xnx0\begin{align*} (x - 1)\left(\sum_{k=0}^{n-1}x^k \right) &= x\left(\sum_{k=0}^{n-1}x^k\right) - \left(\sum_{k=0}^{n-1}x^k\right)\\ &= \left(\sum_{k=0}^{n-1}x^{k+1}\right) - \left(\sum_{k=0}^{n-1}x^k\right)\\ &= \left(x^1 + x^2 + \ldots + x^{n -1} +x^n\right) - \left(x^0 + x^1 + \ldots + x^{n - 2} +x^{n -1}\right)\\ &= x^n - x^0\\ \end{align*}

\blacksquare

Proposition A

Let a,bZ>0.a,b \in \mathbb{Z}_{>0}. In Z[x],\mathbb{Z}[x], xb1x^b - 1 divides xa1x^a - 1 if and only if bb divides a.a.

Proof

For convenience, I will use the notation [k1;k2)[k_1; k_2) to denote the polynomial xk1+xk1+1++xk21.x^{k_1} + x^{k_1 + 1} + \ldots + x^{k_2 - 1}. Note that xm[k1;k2)=[k1+m;k2+m)x^m [k_1;k_2) = [k_1 + m; k_2 + m) and [k1;k2)+[k2;k3)=[k1;k3).[k_1; k_2) + [k_2; k _3) = [k_1;k_3).

Suppose bb divides aa and let cc be such that a=cb.a = cb.

By P2.1 we have

xa1=(x1)[0;a)andxb1=(x1)[0;b).x^a - 1 = (x - 1)[0;a)\quad\text{and}\quad x^b - 1=(x - 1)[0;b).

To prove divisibility, it suffices to find a cofactor CC such that

[0;a)=C[0;b).[0;a) = C[0;b).

Set C=x0+xb+x2b++x(c1)b.C = x^0 + x^b + x^{2b} + \ldots + x^{(c-1)b}. Then

C[0;b)=x0[0;b)+xb[0;b)+x2b[0;b)++x(c1)b[0;b)=[0;b)+[b;2b)+[2b;3b)++[(c1)b;cb)=[0;a).\begin{align*} C[0;b) &= x^0[0;b) + x^b[0;b) + x^{2b}[0;b) + \ldots + x^{(c-1)b}[0;b)\\ &= [0;b) + [b;2b) + [2b;3b) + \ldots + [(c-1)b;cb)\\ &= [0;a). \end{align*}

⚠️ Suppose, conversely, that there exists a cofactor CC such that xa1=C(xb1).x^a - 1 = C(x^b - 1).

By cancellation, we get [0;a)=C[0;b).[0;a) = C[0;b). Observe that both [0;a)[0;a) and [0;b)[0;b) have x0x^0 as their constant term, thus the minimum degree monomial of CC must be x0.x^0.

We will now prove that all monomials of CC are of the form xanbx^{a - nb} starting with the maximal degree monomial and descending.

Note that the leading coefficient of [0;a)[0;a) is the same as the leading coefficient of [0;b),[0;b), namely 1.1. Thus, the leading coefficient of CC must also be 1.1. For the equality [0;a)=C[0;b)[0;a) = C[0;b) to hold, it must be that deg(C)+b=a,\deg(C) + b = a, so deg(C)=ab.\deg(C) = a - b. This proves that the leading monomial of CC is xab.x^{a - b}.

Let C=Cxab.C' = C - x^{a - b}. Now, consider [0;a)=(C+xab)[0;b),[0;a) = (C' + x^{a - b})[0;b), which implies [0;ab)=C[0;b).[0;a-b) = C'[0;b). The second highest degree monomial of CC is the leading monomial of C.C'. We can apply this procedure inductively. At each step, we remove one monomial from C,C, and since CC has finitely many monomials, this must terminate.

This shows that all monomials of CC are of the form xanb.x^{a - nb}. Since x0x^0 is among them, there exists nn such that anb=0,a - nb = 0, hence a=nb.a = nb. So bb divides a.a.

\blacksquare

Proposition B

Let a,b,cZ>0a,b,c \in \mathbb{Z}_{>0} with c>1.c > 1. Then, cb1c^b - 1 divides ca1c^a - 1 if and only if bb divides a.a.

Proof

Suppose bb divides a.a. Then, by Proposition A, xb1x^b -1 divides xa1,x^a - 1, and evaluating at x=cx = c completes this part of the proof.

Suppose that cb1c^b -1 divides ca1.c^a - 1. Then there exists CC such that ca1=C(cb1).c^a -1 = C(c^b - 1).

Write a=qb+r,a = qb + r, where 0r<b.0 \leq r < b. Then ca1=cr(cqb1)+(cr1).c^a - 1 = c^r (c^{qb} - 1) + (c^r - 1). Since cqb1c^{qb} - 1 is divisible by cb1,c^b - 1, cr1c^r - 1 must be also divisible by cb1.c^b - 1. ⚠️

But cr1<cb1c^r - 1 < c^b - 1 so cr1=0,c^r - 1 = 0, hence r=0.r = 0.

\blacksquare