We have x3−ax2+6x−a
Apply remainder theorem
x−a=0
x=a
Put x=a in equation.
(a)3−a(a)2+6a−a
=a3−a3+6a−a
=6a−a
=5a
Then reminder is 5a.