that's what i tried:

I need to find r(x) ->

a = x

I continue with algorthm:

I need to find ->

Continuing with algorithm:

I need to find

But that's where i get confused by it.. the Power of the first one is smaller than second one -> can't divide..

What am i doing wrong?