a.
\(\left(x^3-7x+6\right):\left(x+3\right)\)
\(=\left(x^3+3x^2-3x^2-9x+2x+6\right):\left(x+3\right)\)
\(=\left[\left(x^3+3x^2\right)-\left(3x^2+9x\right)+\left(2x+6\right)\right]:\left(x+3\right)\)
\(=\left[x^2\left(x+3\right)-3x\left(x+3\right)+2\left(x+3\right)\right]:\left(x+3\right)\)
\(=\left(x+3\right)\left(x^2-3x+2\right):\left(x+3\right)\)
\(=x^2-3x+2\)