Let p be an odd prime number, and let Fp denote the field of integers modulo p. Let Fp[x] be the ring of polynomials over Fp, and let q(x)∈Fp[x] be given by q(x)=∑k=1p−1akxk where ak=k(p−1)/2 mod p. Find the greatest nonnegative integer n such that (x−1)n divides q(x) in Fp[x].
Putnam 2019Putnamnumber theory