Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

Science how to calculate modulus in scientific calculator, already try to do d/c method not working

views
     
SUShack3line
post Apr 26 2014, 01:13 AM, updated 12y ago

New Member
*
Junior Member
29 posts

Joined: Jul 2009
From: MALAYSIA maksudnya Tanah Melayu dalam bahasa latin


when the number get too big like, 12^17 mod 12 .. it just didn't show up sad.gif

currently using CASIO fx-570MS scientific calculator

doing RSA and Diffie Helman cryptography tutorial.. i wonder how to calculate the modulus in scientific calculator
dkk
post Apr 27 2014, 03:37 AM

10k Club
Group Icon
Elite
11,400 posts

Joined: Jan 2003
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  sad.gif

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. smile.gif

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



SUShack3line
post Apr 27 2014, 11:15 AM

New Member
*
Junior Member
29 posts

Joined: Jul 2009
From: MALAYSIA maksudnya Tanah Melayu dalam bahasa latin


thanks for the explanation dkk smile.gif

 

Change to:
| Lo-Fi Version
0.0138sec    0.66    5 queries    GZIP Disabled
Time is now: 30th November 2025 - 08:34 PM