#Modulo
116 messages · Page 1 of 1 (latest)
- Do not ping the Moderators, unless someone is breaking the rules.
- Do not ping the Helper Moderators, unless there is a conflict between helpers.
- Do not ping other members randomly for help.
- Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
- Wait patiently for a helper to come along.
- If the Helper has answered your question, remember to thank them with the Mathematics Ranks bot and close the thread with:
+close
Feel free to nominate the person for helper of the week in #helper-nominations
If you're happy with the help you got here, and the server overall, you can contribute financially as well:
a ≡ b (mod c) means that a and b give the same remainder when divided by c. So, you can add any integer multiple of c to any of them and this will still be true.
This is confusing af. 3 mod 9 is 3 right?
Yes. Though, we trivially have a ≡ a (mod c) for any a and c.
I don't get the three-bar sign 😭 🙏
May I cut in? I think I see the issue.
As I said above, a ≡ b (mod c) means that a and b give the same remainder when divided by c.
Oh, sure!
Yeah
I haven't studied number theory, anyway. I only know about this stuff in passing.
I think there's a confusion between modular congruence and modular reduction.
Big words
I don't know those lol
The meaning is so weird
Like what math rule is that 😭
Well, that's just the definition. Like hours on the clock, they are mod 12.
Is the parenthesis really necessary
Or is it okay to remove those
It's kind of important because we have two very similar notations for two very different ideas.
Especially since I don't know how to type the three bar equals sign.
Modular congruence is a relation, while modular reduction is an operation.
So 12 = 3 mod 9 and 12 ≡ 3 mod 9 have different meanings?
Yes. Although technically the first one would be 12 mod 9 = 3.
So here's how it works. I'll start with modular congruence because that's what you're working on and because the definition of modular reduction depends on it.
We write a == b (mod n) and say "a is congruent to b mod (or modulo) n" if and only if n | a - b.
And we can prove that this definition is equivalent to a and b having the same remainder after division by n.
To do this, we use Euclidean division. a and b are integers, so supposing neither a nor b are 0, we therefore have a = nq_a + r_a and b = nq_b + r_b, with 0 <= r_a, r_b < n (presuming n > 0).
(If one is 0, WLOG b, then we trivially have that n | a - 0, that is n | a, and therefore a has a remainder of 0 when divided by n.)
Anyway, q_a, q_b, r_a, and r_b are unique integers.
Fair.
Just read through it as slowly as you need to and don't be afraid to ask if you don't understand something.
Yeah thanks
Tbh most of math guys have more patience than those tech guys lol
IT guys would just say Google it
😭 😭 😭 😭
But anyways
That's because programmers always want to finish their program as quickly as possible so they can stop programming and start doing the thing they wrote the program for.
In mathematics, the name of the game is rigor.
Eh idk, most of them ain't got no patience lol
But anyways
😭
Are you not understanding something?
Lemme read
Yeah i don't get the underscores
😭
But it's okay
I just wanted to understand the problem I faced earlier
So I feel satisfied now lol
Those indicate subscripts.
Thanks
Ohhh okay
I mean, I wasn't actually done explaining.
It's okay
I think it's pr9bably enough
I tried to understand my confusion earlier cause i'm reading cryptography
😭
I think I have a shorthand explanation now that I've fully processed your comp sci background.
Oh sure
% acts as an operator right?
I thought you'd understand that better than the math.
This is, like, programming language.
Yeah i used % all the time to check if the number is even or odd 😭
Right, it's the remainder operator. I don't know if it's technically exactly equivalent to modular reduction, but it's close enough for horseshoes.
But I'm just confused at this part though:
So 12 = 3 mod 9 and 12 ≡ 3 mod 9 have different meanings?
If so, what do they mean? In each? How do we interpret it
To say 12 = 3 mod 9 is to say that 3/9 = xR12.
That is, some integer x with remainder 12.
That's why the true statement is 12 mod 9 = 3.
Soo 12 = 3 mod 9 is false?
I feel like all of this would make much more sense to you if you let me finish my explanation.
Okay okay 😭
So did you get everything I wrote so far?
I don't get the n | a - b part
"n divides (a - b)".
(a - b)/n is an integer.
Because that's the symbol for division, not the symbol for divisibility.
Yes.
Like here.
I see i see
That's also in your book.
I didn't get the euclidean division part until the end
But it's okay
Yeah was confused at that part
Euclidean division states that if x and y are integers, and y is not 0, there exist unique integers q and r such that x = qy + r and 0 <= r < |y|.
Just wondering why the modulo arithmetic is useful
Like how do we even use it in the real world
We use it all the time to prove results you probably take for granted.
Like that an odd number plus an odd number is an even number.
Or that primes which are congruent to 3 modulo 4 are not Gaussian prime.
I think there's also a result relating mod 3 or mod 4 to whether a number is a sum of squares?
It's also very useful for deducing properties of large numbers expressed in exponential form, thanks to Fermat's little theorem.
I have a question though, 12 ≡ 3 mod 9 is the same as 3 ≡ 12 mod 9, right?
Yes, modular congruence is symmetric. That is, if a == b (mod n), then b == a (mod n). The proof is relatively trivial.
I don't get this part though
It says r is the remainder of a / m?
Idk
Yes, your book is very confused.
Like I said, there's a difference between modular congruence and modular reduction, and your book is actively confusing the two.
Okay okay
@bitter magnet
Hello hakuunnamatataa, this is a friendly reminder that your help request has been inactive for more than 24 hours. If you no longer need assistance, please consider closing the thread using the +close command. This thread will be automatically closed in 3 days if it remains inactive.