Sub in the 3 possible values of z.
basically, if z= one of 1,w,w^2
and we call the second poly P(z)
then one of P(1), P(w), P(w^2) is equal to zero
ie P(1)P(w)P(w^2)=0. Sub in P for answer.
This is funny... first answer for ages, and after I did a polynomials lecture this arvo as well.. :-)