First solution (original one) The proof is split into two essentially orthogonal claims, which we state as lemmas.
**Lemma (Lemma I: elimination of g)**
Assume valiant g:Z/nZ→Z/nZ exists. Then
k!x∈Z/nZ∑xk≡0(modn)
for k=0,1,…,100.
*Proof.* Define gx(T)=g(x)+Tx for any integer T. If we view gx(T)k as a polynomial in Z[T] of degree k with leading coefficient xk, then taking the kth finite difference implies that, for any x,
k!xk=(0k)gx(k)k−(1k)gx(k−1)k+(2k)gx(k−2)k−⋯+(−1)k(kk)gx(0)k.
On the other hand, for any 1≤k≤100 we should have
x∑gx(0)k≡x∑gx(1)k≡⋯≡x∑gx(k)k≡Sk=def0k+⋯+(n−1)k(modn)
by the hypothesis. Thus we find
k!x∑xk≡[(0k)−(1k)+(2k)−…]Sk≡0(modn)
for any 1≤k≤100, but also obviously for k=0. □
We now prove the following self-contained lemma.
Lemma (Lemma II: power sum calculation)
Let p be a prime, and let n,M be positive integers such that
M divides 1k+2k+⋯+nk
for k=0,1,…,p−1. If p∣n then νp(M)<νp(n).
*Proof.* The hypothesis means that any polynomial f(T)∈Z[T] with degf≤p−1 will have ∑x=1nf(x)≡0(modM). In particular, we have
0≡x=1∑n(x−1)(x−2)⋯(x−(p−1))=(p−1)!x=1∑n(p−1x−1)=(p−1)!(pn)(modM).
But now νp(M)≤νp((pn))=νp(n)−1. □
Now assume for contradiction that valiant g:Z/nZ→Z/nZ exists, and p≤101 is the smallest prime dividing n. Lemma I implies that k!∑xxk≡0(modn) for k=1,…,p−1 and hence ∑xxk≡0(modn) too. Thus M=n holds in the previous lemma, impossible.
A second solution Both lemmas above admit variations where we focus on working modulo pe rather than working modulo n.
Lemma (Lemma I')
Assume valiant g:Z/nZ→Z/nZ exists. Let p≤101 be a prime, and e=νp(n). Then
x∈Z/nZ∑xk≡0(modpe)
for k=0,1,…,p−1.
*Proof.* This is weaker than Lemma I, but we give an independent specialized proof. Begin by writing
x∑(g(x)+Tx)k≡x∑xk(modpe).
Both sides are integer polynomials in T, which vanish at T=0,1,…,p−1 by hypothesis (since p−1≤100).
We now prove the following more general fact: if f(T)∈Z[T] is an integer polynomial with degf≤p−1, such that f(0)≡⋯≡f(p−1)≡0(modpe), then all coefficients of f are divisible by pe. The proof is by induction on e≥1. When e=1, this is just the assertion that the polynomial has at most degf roots modulo p. When e≥2, we note that the previous result implies all coefficients are divisible by p, and then we divide all coefficients by p.
Applied here, we have that all coefficients of
f(T)=defx∑(g(x)+Tx)k−x∑xk
are divisible by pe. The leading Tk coefficient is ∑kxk as desired. □
Lemma (Lemma II')
If e≥1 is an integer, and p is a prime, then
νp(1p−1+2p−1+⋯+(pe−1)p−1)=e−1.
*Proof.* First, note that the cases where p=2 or e=1 are easy; since if p=2 we have ∑x=02e−1x≡2e−1(2e−1)≡−2e−1(mod2e), while if e=1 we have 1p−1+⋯+(p−1)p−1≡−1(modp). Henceforth assume that p>2,e>1.
Let g be an integer which is a primitive root modulo pe. Then, we can sum the terms which are relatively prime to p as
S0=defgcd(x,p)=1∑xp−1≡i=1∑φ(pe)g(p−1)⋅i≡gp−1−1gpe−1(p−1)2−1(modpe)
which implies νp(S0)=e−1, by lifting the exponent. More generally, for r≥1 we may set
Sr=defνp(x)=r∑xp−1≡(pr)p−1i=1∑φ(pe−r)gr(p−1)⋅i(modpe)
where gr is a primitive root modulo pe−r. Repeating the exponent-lifting calculation shows that νp(Sr)=r(p−1)+((e−r)−1)>e, as needed. □
Assume to the contrary that p≤101 is a prime dividing n and a valiant g:Z/nZ→Z/nZ exists. Take k=p−1 in Lemma I' to contradict Lemma II'
A third remixed solution We use Lemma I and Lemma II' from before. As before, assume g:Z/nZ→Z/nZ is valiant, and n has a prime divisor p≤101. Also, let e=νp(n).
Then (p−1)!∑xxp−1≡0(modn) by Lemma I, and now
0≡x∑xp−1(modpe)≡penx=1∑pe−1xp−1≡0(modpe)
by Lemma II', contradiction.
A fourth remixed solution We also can combine Lemma I' and Lemma II. As before, assume g:Z/nZ→Z/nZ is valiant, and let p be the smallest prime divisor of n.
Assume for contradiction p≤101. By Lemma I' we have
x∑xk≡0(modpe)
for k=0,…,p−1. This directly contradicts Lemma II with M=pe.