Find $1<a<9991$ such that \begin{align} a^{4995}\not \equiv 1 &\mod 9991 \\ a^{4995}\not \equiv -1 &\mod 9991 \\ a^{2\cdot4995}\not \equiv -1 &\mod 9991 \end{align}
I'm having a hard time in finding $a$.
Is there any approach that is not computational?
So far I figured out from third condition that $a$ might be a coprime integer to 9991.
If $\gcd(a,9991) = d> 1$ then $d|9991k + a^m$ for all $k$ and $m$ so $a^m \equiv $ a multiple of $d$ for any power $m$. So $a^m \not \equiv \pm 1 \mod 9991$
So we just need to find a number that is not coprime with $9991$.
So any factor or a multiple of a factor of $9991$ will do. So if we can show that $9991$ is not prime we will be done.
(And if $9991$ is prime then there is no solution as all $a; 1< a<9991$ would be coprime and $a^{2*4995} = a^{9991 - 1}$ would be $ \equiv 1 \mod 9991$.)
So it is necessary and sufficient to show $9991$ is not prime and to find any multiple of a factor of $9991$.