I want to rewrite a question not so well written on this site and clarified by Mr. Lahtonen (thank you again).
So here the question:
Let the extention $GF(p^m) \supset GF(p)$ that contains roots of $p(x)=x^{p^{m}}-1$. Show that those roots are distinct and that forms a field
I know that the roots of $p(x)=x^{p^{}}-1$ are contained in $p(x)=x^{p^{m}}-1$, but then?
edit: probably the correct exercise was $p(x)=x^{p^{m}-1}$
I am not sure if you understood the proof completely or approximately, so I will include a full proof.
$P(X)=X^{p^m-1}-1$ vanishes at every nonzero point of the field, and there are $p^m-1$ of them. So the product of all $X-a$, where $a$ runs through all nonzero elements of the field, whoch we denote as $Q$, has degree $p^m-1$ and divides $P$. Since $P$ and $Q$ are monic and have the same degree, they are equal. Thus the root of $XP$ are pairwise distinct and are exactly the elements of the field.