p is prime, not 2. Thanks in advance(adsbygoogle = window.adsbygoogle || []).push({});

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# [((n-1)/2)!]^2 = -(-1)^[(n-1)/2] (mod n)

**Physics Forums | Science Articles, Homework Help, Discussion**