Since
2−2x+x2=(x−1)2+1 =(x−(1+i))(x−(1−i)), each factor of the product splits, and as
k runs from
0 to
12, ωk runs over all
13th roots of unity. Because
∏k(x−ωk)=x13−1, for any
α we get
∏k(ωk−α)=(−1)13(α13−1) =1−α13. Hence the product equals
(1−(1+i)13)(1−(1−i)13).
Since
(1+i)2=2i, we get
(1+i)13=(1+i)(2i)6 =−64(1+i)=−64−64i, and by conjugation
(1−i)13=−64+64i. So the product is
(65+64i)(65−64i)=652+642=4225+4096=8321, whose remainder upon division by
1000 is
321.