I am looking for clever applications of Euler's Theorem. On browsing the internet, I see that nearly all the applications of the theorem asks for finding last few digits of a huge number. The only other application I could find was Euler's Proof of Fermat's theorem on sums of two squares. which uses Fermat's little theorem ( A weaker form of Euler's totient Theorem) and infinite descent.
This makes me wonder if we could find more uses for the theorem?
PS: I am interested in undergraduate level theorems/problems which could be solved using Euler's theorem (along with other technique, if necessary) Please mention suitable hints along with your problem.
I can think of one possible example. As $\phi(m)$ is the number of natural numbers less than $m$ which are coprime to $m$, Euler's theorem provides a good upper bound to a lot of problems which involve coprime numbers.
For example, if we consider the problem of Quadratic Congruence, solving the equation $x^{2} \equiv a\ (mod\ p)$, where p is a prime. Solving this problem using a number of algorithms require finding a non-residue $z$ of p first. It can be shown that there are $\phi(\phi(m))$ quadratic residues for m, hence the probability of finding a non-quadratic residue for a given p is quite high in practice. Even, for a composite $m$, checking if $a$ is a quadratic residue of $m$ uses the following criteria, which is based on Euler's theorem:
Euler's Criterion: The equation $x^{2} \equiv a \ (mod\ m)$ has a solution if and only if
$a^{\frac{\phi(m)}{2}} \equiv 1 \ (mod\ m)$
As another example, I'd like to say that, finding a primitive root modulo $m$ has also a good use of Euler's theorem, the testing for primitive-rootness modulo $m$ exploits Euler's theorem and Lagrange's theorem equally.