The correct option is A ab
By actual division, we get
ax3+bx+cx2+px+1=ax−ap+R(x)x2+px+1
Remainder polynomial
R(x)=(b−a+ap2)x+c+ap
If ax3+bx+c has a factor of the form x2+px+1, then R (x) must be identically zero,
if b−a+ap2=0 and c+ap=0
Eliminating p between these equations, we get
b−a+a(−ca)2=0 or a2−c2=ab