It's really pretty simple
Since we are testing if x - 4 is a factor....we actually want to see if 4 is a root....this is what we divide by
The coefficients (and constant term ) of the polynomial are then written.....be careful....any missing power is represented by 0
So we have
4 [ 1pi -5pi -86pi 360pi ] bring down the first term
___________________________________
1pi
Multiply this by the divisor....and put this result (4pi) under the second term....then add
So we have
4 [ 1 pi - 5pi - 86pi 360pi ]
4pi
____________________________
1pi -1pi
Multiply 4 (-1pi) and put the result (-4pi)under the third term.....add again
4 [ 1 pi - 5pi - 86pi 360pi ]
4pi -4pi
____________________________
1pi -1pi - 90pi
Multiply 4(-90i) and put the result (-360 pi) under the last term....add again and we get 0
4 [ 1 pi - 5pi - 86pi 360pi ]
4pi -4pi -360pi
____________________________
1pi -1pi - 90pi 0
The remaining polynomial is one degree less than the one we started with ..so... degree 2
So we have
1pi x^2 - pi x - 90 pi factoring out pi, we get
pi [ x^2 - x - 90 ] = the remaining polynomial
And that's it!!!
Hope that helped