Number theoryDifficulty 6.2National olympiadProve it
5. Let p be a prime, k⩾1. Prove 1k+2k+⋯+(p−1)k≡{0(modp),−1(modp),p−1∤kp−1∣k
Solution
5. Let g be a primitive root modulo p. 1k+⋯+(p−1)k≡∑j=1p−1gjk(modp), and from this, along with gk≡1(modp) when p−1∤k; gk≡1(modp) when p−1∣k, we can derive the desired conclusion.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic and difficulty added by this site.