Find $q$ and $r$, with $0\leq r\leq |b|$, such that $a=qb+r$ for
- $a=115,\ b=26$
- $a=400,\ b=-17$
- $a=-312,\ b=-64$
Sadly I missed the class where the prof went over this, so I have no idea what to do. Can somebody point me in the direction of the name of a process or theorem or something so that I can find out how to do it?