Question:
How do modulars work and what are they used for??
anonymous
2008-03-05 21:01:54 UTC
im really not understanding modulars so here's an example 38=14 (mod 12) -why does it have to be mod 12? and how is this going to help in solving problems???
Three answers:
Chase
2008-03-05 21:21:04 UTC
It doesn't HAVE to be mod 12. This is just one example.



Mod 12 gives the remainder after dividing out all the 12s. So, 38(mod 12) == 38 - 12 == 26 == 26 - 12 == 14 == 14 - 12 == 2.



We can re-express 38 == 14 (mod12) as

38 = 14 + 12k for some integer k. Here, k = 2. We can also say

38 = 2 + 12m for some integer m. Here, m = 3.

We CANNOT say 38 == 19 (mod 12) because that would mean...

38 = 19 + 12n for some integer n. So,

19 = 12n,

19/12 = n, but this is not an integer. So, 38 is not congruent to 19 (mod 12).





Modular arithmetic is useful for division problems. For example, suppose you wanted to make a division rule for 5. We already know a number is divisible by 5 if its last digit is either 0 or 5. Let's prove it.



Suppose n = d0 + 10d1 + 100d2 + 1000d3 + ... + 10^k dk.



For example, if n = 593, then d0 = 3, d1 = 9, d2 = 5.



Now, n (mod 5) == d0 + 10d1 + 100d2 + ... + (10^k)dk



Notice that 10d1, 100d2, ... are all divisible by 5 since they are multiples of 10 (and 10 is divisible 5). Thus, they all == 0 (mod 5).



Therefore, n == d0 (mod 5).

If n == 0 (mod 5), then n is divisible by 5, and thus d0 is divisible by 5 since n == d0 (mod 5). The only digits divisible by 5 are 0 and 5. Thus, n is divisible by 5 if and only if d0 (the last digit) is 0 or 5.
musical_bell
2008-03-06 05:15:16 UTC
Mod is just a sign that tell you to change all numbers into a positive values.

For example, mod(-10)=10 while mod(10)=10.

It simply asks you to remove any negative sign of the negative number (if it exists) inside the mod. Meanwhile, remain the positive number unchanged.



As for your example 38=14 (mod 12), did you type out the complete question? That equation that you typed doesn't make sense to me...
Love me
2008-03-06 05:27:34 UTC
Suppose I have 5 marks and you have 10 marks.

that mean you have more than me by 5 marks.



Now mathmatically any one don't know how to slove. I mean say that he don't know which is greater.



= 5 - 10

= -5

-5 is not possible becuase marks can not below 0 (Zero)

but he got write answer ie. 5



with the help modular,

= |5 - 10|

= |-5|

= 5


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...