I'm a bit stuck on this question:
Let $p$ be a prime number. Prove that $(2p−1)(2p−2)\cdots(p + 1) \equiv−1\pmod{p}$. Hint: find the least positive residues of $2p−1,2p−2,\cdots,p + 1 \pmod{p}$.
I think the least positive residues are $\{0,1,2,\cdots,p\}$ but not entirely sure, and I don't see how it's going to help me answer the question below. Thanks, Alex