7 ) 1 0 9 8 All powers must be represented. The 0 is for the missing x2 term.
Bring down the 1
7 ) 1 0 9 8
________
1 Multiply 7 times 1, place answer under the 0. Add down.
7 ) 1 0 9 8
__7______
1 7 Multiply 7 times 7, place answer under the o. Add down.
7 ) 1 0 9 8
__ 7_49_406___
1 7 58 414 Multiply 58 times 7, place answer under the 8. Add down. 414 is the remainder.
P(x) / Q(x) = x2 + 7x + 58 + (414/(x-7)).