3^y\equiv 16\pmod{31}