Does anyone know how to calculate a Mod b in Casio fx-991ES Calculator. Thanks
This calculator does not have any modulo function. However there is quite simple way how to compute modulo using display mode ab/c
(instead of traditional d/c
).
How to switch display mode to ab/c
:
ab/c
(number 1).Now do your calculation (in comp mode), like 50 / 3
and you will see 16 2/3
, thus, mod is 2
. Or try 54 / 7
which is 7 5/7
(mod is 5
).
If you don't see any fraction then the mod is 0
like 50 / 5 = 10
(mod is 0
).
The remainder fraction is shown in reduced form, so 60 / 8
will result in 7 1/2
. Remainder is 1/2
which is 4/8
so mod is 4
.
EDIT: As @lawal correctly pointed out, this method is a little bit tricky for negative numbers because the sign of the result would be negative.
For example -121 / 26 = -4 17/26
, thus, mod is -17
which is +9
in mod 26. Alternatively you can add the modulo base to the computation for negative numbers: -121 / 26 + 26 = 21 9/26
(mod is 9
).
EDIT2: As @simpatico pointed out, this method will not work for numbers that are out of calculator's precision. If you want to compute say 200^5 mod 391
then some tricks from algebra are needed. For example, using rule
(A * B) mod C = ((A mod C) * B) mod C
we can write:
200^5 mod 391 = (200^3 * 200^2) mod 391 = ((200^3 mod 391) * 200^2) mod 391 = 98
There is a switch a^b/c
If you want to calculate
491 mod 12
then enter 491 press a^b/c then enter 12. Then you will get 40, 11, 12. Here the middle one will be the answer that is 11.
Similarly if you want to calculate 41 mod 12
then find 41 a^b/c 12. You will get 3, 5, 12 and the answer is 5 (the middle one). The mod
is always the middle value.
Note: Math error means a mod m = 0
type normal division first and then type shift + S->d
You need 10 ÷R 3 = 1 This will display both the reminder and the quoitent
Here's how I usually do it. For example, to calculate 1717 mod 2
:
1717 / 2
. The answer is 858.52
) to get 1716
1717
) minus the number you got from the previous step (1716
) -- 1717-1716=1
.So 1717 mod 2
is 1
.
To sum this up all you have to do is multiply the numbers before the decimal point with the mod then subtract it from the original number.