Modulus

0 views
Skip to first unread message

DurgaBasnet

unread,
May 17, 2008, 5:01:49 AM5/17/08
to libnepal
Where do we use modulus(i. e. 10 mod 3 =1) except for programming?
What is its practical use? Where do we use it? One or two examples
would be greate.

nepbabu.cx

unread,
May 29, 2008, 6:27:47 PM5/29/08
to libn...@googlegroups.com
Hi DurgaBasnet,

For practical everyday use, have a look in the RSA crypto system. Also,
http://en.wikipedia.org/wiki/Modular_arithmetic.

hth

cheers

Prakash Manandhar

unread,
May 29, 2008, 6:28:56 PM5/29/08
to libn...@googlegroups.com
what about:

the division algorithm

You have 3123 paint balls and you have a gun to load 13 paint-balls
and hit them to 13 of your chosen friends, but you can only load the
gun with 13 paint-balls at once, not less than that. How many
paint-balls will be remaining when you are done with loading, firing,
loading... as many times as you can.

Answer: 3123 mod 13 = 3

Notice that the modulus (remainder) is also used in the division
process itself, if you divide the above manually.

13*2 = 26
31 mod 13 = 31 - 26 = 5
get 2 down
repeat with 52....

jaH

nepbabu.cx

unread,
May 29, 2008, 6:29:28 PM5/29/08
to libn...@googlegroups.com
nepbabu.cx wrote:
> Hi DurgaBasnet,
>
> DurgaBasnet wrote:
>> Where do we use modulus(i. e. 10 mod 3 =1) except for programming?
>> What is its practical use? Where do we use it? One or two examples
>> would be greate.
>
> For practical everyday use, have a look in the RSA crypto system. Also,
----------------------------^of modulus-------

> http://en.wikipedia.org/wiki/Modular_arithmetic.

sorry for the typo

Durga Basnet

unread,
May 30, 2008, 6:13:47 AM5/30/08
to libn...@googlegroups.com
Thanks a lot for the reply.
 
Durga

 
Reply all
Reply to author
Forward
0 new messages