If ω and ω2 are two imaginary cube roots of unity, then 1+ω+ω2=0 ⇒ω+ω2=−1 ...(i)
The sum of roots =aω317+aω382 =a(ω317+ω382) =a(ω2+ω)=−a [from (i)]
The product of roots =aω317×aω382=a2ω699=a2
Therefore, the required equation is x2− (Sum of roots) x+ (Product of roots) = 0 ⇒x2+ax+a2=0.
Note: Cube roots of −1 are −1,−ω,−ω2.