Consider the polynomial ring $F\left[x\right]$ over a field $F$. Let $d$ and $n$ be two nonnegative integers.
Prove:$x^d-1 \mid x^n-1$ iff $d \mid n$.
my tries:
necessity, Let $n=d t+r$, $0\le r<d$
since $x^d-1 \mid x^n-1$, so,
$x^n-1=\left(x^d-1\right)\left(x^{\text{dt}+r-d}+\dots+1\right)$...
so,,, to prove $r=0$?
I don't know, and I can't go on. How to do it.