Let $a,b,c,d$ integers, $c\not=0$ such that $ad-bc=1$ and $c\equiv 0 \pmod p$ for some prime $p>3$.
Show that if $a+d=\pm1$ then $p\equiv 1\pmod 3$
I don't know how to approach this problem because when I take the expression $ad-bc$ modulo $p$ we have that either $d-d^2\equiv 1\pmod p$ or $d+d^2\equiv 1\pmod p$.