First step do the division.
However, before diving in the division, check that there is no remainder by substituting (x-3)=0, or x=3 into the numerator. If the result is 0, there is no remainder.
f(x)=x^3-7*x^2+13*x-3, and f(3)=27-63+39-3=0 so no remainder.
We can proceed with the long division to get
(x^3-7*x^2+13*x-3)/(x-3)=x^2-4x+1
So choose the factors (x^2-4x+1) and (x-3) and choose the appropriate function.
Note: question is not very complete with details, it seems that the question had been abridged.
Advice: post the complete and unabridged question if *correct* answers are exprected *rapidly*.