QUOTE(hack3line @ Apr 26 2014, 01:13 AM)
when the number get too big like, 12^17 mod 12 .. it just didn't show up
currently using CASIO fx-570MS scientific calculator
doing RSA and Diffie Helman cryptography tutorial.. i wonder how to calculate the modulus in scientific calculator
Use human brain. currently using CASIO fx-570MS scientific calculator
doing RSA and Diffie Helman cryptography tutorial.. i wonder how to calculate the modulus in scientific calculator
12 to the power of any integer (1 or above) modulus 12 is always zero. Because modulus is the remainder, and if all the factors in the number is 12, then modulus 12 would always be zero.
Scientific calculators do not have arbitrary precision. For other large values, to check the remainder, use an arbitrary precision calculator like bc (comes free with Linux. There might be a windows port somewhere if you look hard enough).
for example
CODE
$ bc
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
12 ^ 17
2218611106740436992
12 ^ 17 % 12
0
13 ^ 17
8650415919381337933
13 ^ 17 % 12
1
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
12 ^ 17
2218611106740436992
12 ^ 17 % 12
0
13 ^ 17
8650415919381337933
13 ^ 17 % 12
1
Apr 27 2014, 03:37 AM
Quote
0.0158sec
0.29
6 queries
GZIP Disabled