I am trying to prove a lemma that the only solution of $q|(p^2-1)$ with $p<q$ is $p=2$ and $q=3$.
i.e if $p<q$ are primes and $q|(p^2-1)$, then $p=2$ and $q=3$.
Since $q|(p^2-1)$, then $q|(p+1)$ or $q|(p-1)$. Since $p<q$, we have only $q|(p+1)$. But I am not sure if $q|(p^2-1)$ implies $q|(p+1)$ or $q|(p-1)$, since $p<q,$ we have $q|(p+1)$. But I got stuck here.