Solution:
Note that z=e32πi=cos32π+isin32π, so that z3=1 and z2+z+1=0. Also, s2=s1z and s3=s1z2.
Then, the sum of the coefficients of g(x) is g(1)=(1−s1)(1−s2)(1−s3)=(1−s1)(1−s1z)(1−s1z2)=1−(1+z+z2)s1+(z+z2+z3)s12−z3s13=1−s13.
Meanwhile,
s13=(r1+r2z+r3z2)3=r13+r23+r33+3r12r2z+3r12r3z2+3r22r3z+3r22r1z2+3r32r1z+3r32r2z2+6r1r2r3.
Since the real parts of both z and z2 are −21, and since all of r1,r2,r3 are real, the real part of s13 is
r13+r23+r33−23(r12r2+r12r3+r22r3+r22r1+r32r1+r32r2)+6r1r2r3.
This can be rewritten as
(r1+r2+r3)3−29(r1+r2+r3)(r1r2+r2r3+r3r1)+227r1r2r3.
From f(x), the sum r1+r2+r3=3, r1r2+r2r3+r3r1=−4, r1r2r3=−4.
Plugging in,
(r1+r2+r3)3=33=27
−29⋅3⋅(−4)=54
227⋅(−4)=−54
So the real part is 27+54−54=27.
Therefore, the answer is 1−27=−26.