$x^d-1|x^n-1$ iff $d|n$

This is an exercise that I solved before many semesters, and I just remember I solved in a very complicated(or stupid) way, today when I need to use this exercise as a tool I wonder if there are some brief proofs

Thanks for anyone’s help!