This calculator has no modulo function. However, there is a fairly simple way to calculate modulo the display mode ab/c (instead of the traditional d/c ).
How to switch the display mode to ab/c :
- Go to settings ( Shift + Mode ).
- Click the down arrow (to view other settings).
- Select
ab/c (number 1).
Now do your calculation (in comp mode), for example 50 / 3 , and you will see 16 2/3 , so the mod will be 2 . Or try 54 / 7 , which is 7 5/7 (mod is 5 ). If you do not see any fraction, then mod 0 , like 50 / 5 = 10 (mod is 0 ).
The rest is shown in the above form , so 60 / 8 will result in 7 1/2 . Remains 1/2 , which is 4/8 , so mod is 4 .
EDIT: As @lawal correctly pointed out, this method is a bit complicated for negative numbers , because the sign of the result will be negative.
For example, -121 / 26 = -4 17/26 , so mod -17 , which is +9 in mod 26. Alternatively, you can add a base module to the calculation 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 do not match the accuracy of the calculator. If you want to calculate say 200^5 mod 391 , then some tricks from algebra are needed. For example, using the 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
NightElfik Jan 13 '12 at 23:28 2012-01-13 23:28
source share