I've been wondering how you can prove that the function $x^{2017}$ when we work in modulo $100019$ (which happens to be prime), has an inverse function? Sorry I don't have any experience in typing maths, so I'll try to describe the problem. So the function is, we substitute a positive integer ranging from $1$ to $100019$ into $x^{2017}$, then find the residue of the output number in modulo $100019$. So the domain is $1$ to $100019$. Furthermore, how can we find $f^{-1}(99999)$ where the $f^{-1}$ is the inverse of this function described?
So far my attempts included to try and notice any patterns emerging in the residues when I substituted in numbers from $1$ to $12$, using a computer program. My main problem is proving that this function is one to one. Can someone please give me directions?
Edit: I have edited my original post, to specify p as 2017.
This follows directly from Fermat's little theorem, which also gives you the inverse itself.
There's a lot of material online on this matter, and there are many books on Abstract Algebra that prove this theorem, usually in the study of Group theory