Let a,b∈Z>0. In Z[x],xb−1 divides xa−1 if and only if b divides a.
Proof
For convenience, I will use the notation [k1;k2) to denote the polynomial xk1+xk1+1+…+xk2−1. Note that xm[k1;k2)=[k1+m;k2+m) and [k1;k2)+[k2;k3)=[k1;k3).
⚠️ Suppose, conversely, that there exists a cofactor C such that xa−1=C(xb−1).
By cancellation, we get [0;a)=C[0;b). Observe that both [0;a) and [0;b) have x0 as their constant term, thus the minimum degree monomial of C must be x0.
We will now prove that all monomials of C are of the form xa−nb starting with the maximal degree monomial and descending.
Note that the leading coefficient of [0;a) is the same as the leading coefficient of [0;b), namely 1. Thus, the leading coefficient of C must also be 1. For the equality [0;a)=C[0;b) to hold, it must be that deg(C)+b=a, so deg(C)=a−b. This proves that the leading monomial of C is xa−b.
Let C′=C−xa−b. Now, consider [0;a)=(C′+xa−b)[0;b), which implies [0;a−b)=C′[0;b). The second highest degree monomial of C is the leading monomial of C′. We can apply this procedure inductively. At each step, we remove one monomial from C, and since C has finitely many monomials, this must terminate.
This shows that all monomials of C are of the form xa−nb. Since x0 is among them, there exists n such that a−nb=0, hence a=nb. So b divides a.
■
Proposition B
Let a,b,c∈Z>0 with c>1. Then, cb−1 divides ca−1 if and only if b divides a.
Proof
Suppose b divides a. Then, by Proposition A, xb−1 divides xa−1, and evaluating at x=c completes this part of the proof.
Suppose that cb−1 divides ca−1. Then there exists C such that ca−1=C(cb−1).
Write a=qb+r, where 0≤r<b. Then ca−1=cr(cqb−1)+(cr−1). Since cqb−1 is divisible by cb−1,cr−1 must be also divisible by cb−1. ⚠️