We have the equation y2+cy+px2−x−2y+p=0
We know any general equation ax2+by2+2hxy+2gx+2fy+c=0...(1)
represents two straight lines if abc+2fgh−af2−bg2−ch2=0...(2)
On comparing given equation with (1), We get a=p,b=1,h=21,g=−21,f=−1,c=p
Put these value in equation (2) p×1×p+2×−1×−21×21−p×(−1)2−1×(−21)2−p×(21)2=0 ⇒p2+21−p−41−4p=0⇒p2−45p+41=0 ⇒4p2−5p+1=0⇒(4p−1)(p−1)=0 ⇒p=1,41