For each integer k with 0≤k<757, reduce k2+k+1 modulo 757. Let R be the set of all nonzero residues obtained. Let P be the product of the elements of R, where each residue is represented by its least positive integer. Find the least nonnegative residue of P modulo 757.
Solution ApproachShowHide
Step-by-step approach
757 is prime. The values k2+k+1=(k+1/2)2+3/4 trace out a set of residues. Note k2+k+1=k−1k3−1 for k=1. The set R consists of residues of k2+k+1 for k=0,1,…,756. Use properties of the polynomial over F757 to compute the product.
Ready for more competition problems?
Practice the full SolveFire course and compete in ranked math battles — free to play.