I want to know whether it's possible that there would exist $1\lt k\lt\phi(n)$ s.t. $a^{\phi(n)}\equiv 1\pmod n$, for a given $a$ and $n$? I need to prove/disprove it. I need some hints. (For title I meant minimum mod n.)
OK, seems it may be too easy for my question but may I also ask that how to find the minimum even if I know that $(a,n)=1$? i.e. I have to know the $k$ s.t. $a^k\equiv 1\pmod n,$ given $(a,n)=1$.
$\phi(7)=6$ but $2^3\equiv 1$(mod$7$).
Edit: As I know there is no general algorithm to find the least integer $k$ such that $a^k\equiv 1$(mod$n$). Though a fact that can help is that this $k$ must divide $\phi(n)$. Even more than that, this $k$ divides every integer $m$ such that $a^m\equiv 1$(mod $m$). You can try to prove it, that's a pretty easy exercise. So for example, given that we know that $\phi(7)=6$ we know that the minimum cannot be $4$ or $5$. It must be an integer which divides $6$. So that gives us less options which makes it a bit easier.