$$a^{p-1} \equiv 1 \pmod p$$
Assuming the above expression is true, does it tell me anything about the congruence relation of the following expression:
$$a^{\frac{p-1}{2}} \pmod p)$$
I can't seem to come to a conclusion by using properties of modular exponentiation that I find online. My goal is to somehow relate the two so I can efficiently evaluate the second expression when using very large values.
Note: $a$ is some positive integer less than $p$, and $p$ is a prime number.
+-1 mod p
, but I'm looking to get the exact value. – Jacob G. Jun 30 '19 at 00:04p
is already prime in my example. I have a method of calculating the Legendre/Jacobi symbol quickly, but I was wondering if there was something quicker (seeing as how I can pick the value ofp
) – Jacob G. Jun 30 '19 at 00:51