> Using school maths I get:
> 
>   7 div  3 ,  7 mod  3 =>  2 ,  1
>  -7 div  3 , -7 mod  3 => -2 , -1
>   7 div -3 ,  7 mod -3 => -2 ,  1
>  -7 div -3 , -7 mod -3 =>  2 , -1

Don't forget that under Modulo 3, the numbers -1 and 2 are equivalent.

Reply via email to