Solved by Matthieu Vogel
If m(x)=x2020, Albert has a winning strategy. He starts by setting a0=1. Thus, at the end of the game, f(0)=1. It is therefore impossible for f to be divisible by m, otherwise, since m(0)=0, we would have f(0)=0.
If m(x)=x2+1, Homer has a winning strategy. He pairs the ai (which is possible since 4 divides 2020) in the form (a4k,a4k+2),(a4k+1,a4k+3).
Except for the pair (a0,a2), Homer adopts the following strategy: he plays in the same pair as Albert and chooses the same real number. We then obtain that for any real number a,a(X4k+X4k+2)= aX4k(X2+1),a(X4k+1+X4k+3)=aX4k+1(X2+1), so we will indeed get a sum of polynomials divisible by X2+1.
However, if Homer proceeds in this way, at the end, he will obtain a polynomial congruent to X2020≡(−1)1010≡1 modulo X2+1. For this, Homer would like the polynomial obtained with a2 and a0 to be congruent to -1 modulo 2020. In this case, we would indeed have X2020+a2X2+a0≡ X2020−1≡0 modulo X2+1. It is therefore sufficient to have a0=a2−1.
Thus, Homer applies the following strategy:
- If Albert plays a0, Homer sets a2 to a0+1.
- If Albert plays a2, Homer sets a0 to a2−1.
In summary, the polynomial obtained at the end is divisible by X2+1, so Homer wins!