- #1
shamieh
- 539
- 0
Find a div m and a mod m when
$a = -111$, $m = 99$
so I got the first one:
$a =-2*99+87$ => amodm=87 and adivm = -2
so if I had $a=−9999$ and $m = 101$ would that mean that $a = −2∗101-9797$ ? so a mod m $= -9797$ and a div m =$ -2$ ?
or should it be $a =-1 *101 + -9898$ => amodm = $-9898$ and adivm = $-1$
$a = -111$, $m = 99$
so I got the first one:
$a =-2*99+87$ => amodm=87 and adivm = -2
so if I had $a=−9999$ and $m = 101$ would that mean that $a = −2∗101-9797$ ? so a mod m $= -9797$ and a div m =$ -2$ ?
or should it be $a =-1 *101 + -9898$ => amodm = $-9898$ and adivm = $-1$
Last edited: