Problem

NT-B2-M04-P018 Product of Inverse Pairs

#18 Grade 8 Grade 9 Grade 10 ★★★★★ Level 5 of 5

Let \(p>3\) be prime. Find the product of all \(x\in\{1,\ldots,p-1\}\) such that \(x\not\equiv x^{-1}\pmod p\), modulo \(p\).