I have tried to search similar posts to this, but unfortunately I may not have enough keywords for it. I'm looking for some help so check the following:
Given a prime number $p$, let $k, m \in\mathbb N \backslash\{0\}$ such that $k \equiv m(\bmod (p-1))$. Now given $ u, v \in\mathbb Z$ such that $u \equiv v\pmod p$, check that $u^k \equiv v^m\pmod p$.
Any tips to show this or where should I start? Thank you!