The correct option is A a=2,p=2
x2−3x+2=(x−1)(x−2)
Since ax3−5x2+x+p is divisible by x2−3x+2, or by each of (x−1) and (x−2) we have f(1)=0 and also f(2)=0
f(1)=a(1)3−5(1)2+1+p=0
=>a−5+1+p=0
=>a+p=4 --- (1)
And
f(2)=a(2)3−5(2)2+2+p=0
=>8a−20+2+p=0
=>8a+p=18 --- (2)
Subtracting eqn 1 from eqn 2, we get
7a=14
=>a=2
Substituting a=2 in eqn 1, we get
2+p=4
=>p=2