# Identity in number theory

Is the following statement correct?

If gcd$$\displaystyle (a, m)=m$$, then $$\displaystyle a^m\equiv 0$$ (mod $$\displaystyle m$$)

$$\displaystyle a^m = km$$, which implies
$$\displaystyle k = a^{m-1} * \frac{a}{m}$$