Question: let $k$ is postivebe a positive integer, $p$ isa prime number, such that $p=3k+1$, $r<p$ be postivea positive integer, such that $2^{k+1}\equiv r\pmod p$,and and $r\not\equiv 4,5\pmod 6$. showShow that $$p\nmid k!+1$$.$$p\nmid k!+1.$$
itIt is well known $$\left(\dfrac{p-1}{2}\right)!^2+1\equiv 0\pmod p$$ where $p\equiv 1\pmod 4$,for for my problem it semmseems hard to prove it.Thanks