Quadratic equations

Q.14
The correct answer is 3

@potterhead
let the roots be$a,a^2$
now$a^3= 1$ that means a=1 or a=w or w^2
but then$a+a^2 =p$
and p is positive hence , a cant be 1. so a is w.
1+w+w^2= 0.
but w+ w^2 =p/3.
hence p is 3

@ashishdeosingh sir how did we write if a^3=1 then a=1 or a= w, or w^2