Solution:
Let P(x) have degree n=2020 with roots r1,…,rn. Let R(x)=∏i(x−ri2). Then
i∏rinP(rix)=i∏j∏(x−rirj)=Q(x)2R(x)
Using R(x2)=(−1)nP(x)P(−x) and Vieta, we obtain
P(x)P(−x)Q(x2)2=P(0)ni∏P(rix2)
Plugging in x=α, we use the facts that P(α)=4, P(−α)=4−2α, and also
P(riα2)=ri2020α4040+riα2+2=−ri+2(α−2)2+riα2+2=ri(ri+2)2(−α−ri)2.
This will give us
P(α)P(−α)Q(α2)2=2ni∏ri(ri+2)2(−α−ri)2=2n⋅P(0)P(−2)2nP(−α)2
Therefore,
Q(α2)2=P(0)P(−2)P(α)4nP(−α)=2⋅22020⋅44n(4−2α)=2202324041(2−α)=22018(2−α)
We can check that P(x)−4 has no double roots (e.g. by checking that it shares no roots with its derivative), which means that all possible α are distinct. Therefore, adding over all α gives 2020⋅22019, because the sum of the roots of P(x)−4 is 0.