The remainder in $-25÷2$

algebra-precalculus

While solving my homework in Math, I just thought of this and I don't know if it's correct. I've never done the simple division in negative number, so it's a little confusing if the remainder in $-25÷2$ must be negative. When we multiply the quotient by $2$ and add back $-1$ , I got $-25$. so I can say that the remainder in $25÷(-2)$ must be $1$. Is this correct?

Best Answer

Mathematicians have the convention that for any $n$ (in this case $n=-25$) and a divisor $q$ (in this case $q= 2$) then there is a unique pair of integers $d$ (which may be positive, negative, or $0$) and $r$ (which must be so that $0\le r < q$) so that $n = dq + r$.

In this case those unique integers so that $-25 = d\times 2 + r$ where $0 \le r < 2$ are $-25 = (-13)\times 2 + 1$ so $d = -13$ and $r = 1$.

So the remainder is $r=1$.

(Note: If $n$ is negative then $|md| > n$ which might be counterintuitive as we are multiplying $2$ by negative numbers to do $-2, -4, -6,....., -20,-22,-24,-26$ and we go past $-25$. Mathematicians figure this is okay as we want remainders to be non-negative always. We find that to be more consistent.)

Computer scientists, so for as I can tell, have a different convention that $d$ can be positive or negative. And $|r|< q$ but $r$ is the same sign as $d$

So $-25 = (-12)\times 2 - 1$ so $r = -1$ and to a computer scientist $d = -12$ and the remainder is $r=-1$.

(Note: this way we are multiplying be $-2$ and getting $-2,-4, -6,......, -20, -22, -24$ and we don't go past $-25$. This is okay to them as a remainder can be negative and can be thought of how far past the $-24$ term we need to go.)

Ask you teach which convention you are expected to use. But the conventional mathematician one is remainders are $0$ or positive. Never negative.

Related Question