Step-by-step explanation:
x³⁰ - 2x³ + 5 / x + 1 = x²⁹-x²⁸+x²⁷-x²⁶+x²⁵ ... -x⁴+x³
- x³⁰ + x²⁹ -3x²+3x-3
-----------------------
0 - x²⁹-2x³
- - x²⁹-x²⁸
-----------------------
0 x²⁸-2x³
...
- -x⁵-x⁴
----------------------
0 x⁴-2x³
- x⁴+ x³
-----------------------
0 -3x³+5
- -3x³-3x²
-----------------------------
0 3x²+5
- 3x²+3x
-----------------------------------
0 -3x+5
- -3x -3
------------------------------------
0 + 8
the remainder is 8