The tangent function and power residues modulo primes
Let be an odd prime, and let be an integer not divisible by . When is a positive integer with and is an th power residue modulo , we determine the value of the product , where In particular, if with , then