Question: How to calculate -a mod -b

Hi Guys. I´ve got a problem with the mod (mods,modp) function of maple.

I want to calculate the following congruences:

mod(4,-5) = -1 BUT maple returns 4

mod(-3,-4)=-3 but maple returns 1

and so on....

 

Does anybody of you know how to fix this? thanks!

Please Wait...