Source: Romanian IMO Team Selection Test TST 2004, problem 18
May 26, 2004
modular arithmeticquadraticsnumber theory proposednumber theory
Problem Statement
Let p be a prime number and f∈Z[X] given by
f(x)=ap−1xp−2+ap−2xp−3+⋯+a2x+a1,
where ai=(pi) is the Legendre symbol of i with respect to p (i.e. ai=1 if i2p−1≡1(modp) and ai=−1 otherwise, for all i=1,2,…,p−1).a) Prove that f(x) is divisible with (x−1), but not with (x−1)2 iff p≡3(mod4);
b) Prove that if p≡5(mod8) then f(x) is divisible with (x−1)2 but not with (x−1)3.Sugested by Calin Popescu.