synthetic division (the best kind of polynomial division).

but it's opaque - hard to see what it's actually doing at each step