If w^3 = 1 and w != 1, then compute (1 - w + w^2)(1 + w - w^2).

just crank out the algebra. The result is 4

note that w = cis(2pi/3) or cis(4pi/3)