Show that for $k \gt 0$ and $m \ge 1$, $x \equiv 1 \pmod {m^k}$ implies $x^m \equiv 1 \pmod {m^{k+1}}$
This question has already been asked in SE (Show that for $k \gt 0$ and $m \ge 1$, $x \equiv 1 \pmod {m^k}$ implies $x^m \equiv 1 \pmod {m^{k+1}}$.), but I think it´s not really answered. ( the hint given was enough but I didn’t realize it before)
I tried with Fermat´s little theorem but I get nowhere.
note: If $a \equiv b \pmod m$, then $a \cdot t \equiv b \cdot t \pmod {m \cdot t}$ with $t \gt 0$ (don´t know if this is useful)
Any help would be appreciated. Thanks.