Let $p=X^2-Y \in \Bbb R[X,Y]$ and let $g \in \Bbb R[X,Y]$. Show that $g$ can be written as $g=pq+r$ for $q \in \Bbb R[X,Y]$ and $r \in \Bbb R[X]$.
Hint: $g$ can be written as $\sum_{i=0}^n f_iY^i$, where $f_i \in \Bbb R[X]$. Use induction on $n$.
I don't quite know how to approach this problem with the given hint. Doesn't this follow from the fact that the remainder must have degree in $Y$ less than the degree of $X^2-Y$ and so it would need to have degree $0$ on $Y$ implying that it's a polynomial only on $X$?
How would this induction approach work here?