Lunatic Rantings about Modular Arithmetic.

  • Thread starter 1MileCrash
  • Start date
  • Tags
    Arithmetic
In summary, modular arithmetic has many interesting properties, and the concept of ideals allows us to generalize it to other structures. It's a powerful tool that has many applications in various fields of mathematics and beyond.
  • #1
1MileCrash
1,342
41
So we're doing modular arithmetic in my proof class. I have a weird cycle when learning something new in pure math, I think "wow, this is just exceedingly indepth version of something learned by gradeschool children." Then I find something (on my own, not in the textbook, just thinking about it. It's usually a case the book may consider too trivial to be worth mentioning, but those are ALWAYS the things I find the most interesting because it is where things become beautiful to me) that is majorly cool about the topic, realize how incredible it is that these "gradeschool children" don't really know the depth of what there doing, and then I become insanely obsessed.

Modular arithmetic was a shining example. My class is small, taught by a young, carefree professor who is very bright, and we generally are very open and allowed to talk whenever, its always about math because everyone in the class loves math. When he first gave the definition of congruence mod n, I remarked "So we're doing 4th grade clock problems where the clock has n hours." "YES!" he responded.


Reading up in the textbook, they talked about the "uninteresting" case of mod 1. Any two numbers are congruent mod 1 because there difference is of course a multiple of 1. I thought that was interesting, not uninteresting. They went on to say that generally, there are n equivalence classes for congruence mod n. So in mod 1's case, that one equivalence class is the set of all, because they are all congruent. Cool!

So I began to wonder about the "opposite extreme" because there always seems to be one. I realized the following:

The only multiple of 0 is 0.
Then the difference between two numbers can only be a multiple of 0 if it is in fact 0.
The only way that the difference between two numbers is 0 is if they are equal.

So then I realized, that congruence mod 0 is the same as equality. I found that extremely badass. Do I mean to say that normal arithmetic is modular arithmetic with the modulus as 0? Yes, I do, that's how I view it now. Maybe that's wrong.


But it gets cooler. The equivalence class thing. Congruence mod 1 has 1, the set of all. Congruence mod 0, since numbers are only congruent to themselves, there are infinite equivalence classes, namely, singleton sets of all.

So, congruence mod 0 and congruence mod 1 are exactly opposite as far as I can see. Which means something to me, because I see a lot of reasons to think of 0 and 1 as opposites rather than 0 and "infinity" or "a lot" being opposites.


Yeah, I'm a bit bonkers when it comes to these things, whatever. Hope you enjoyed the rant.
 
Last edited:
Mathematics news on Phys.org
  • #2
One thing that a lot of people don't realize is that you can express something in a really minimal form, and out of that one thing not only tens or hundreds of things come out, but quite possibly millions of different ideas.

Don't be ashamed of discovering anything no matter how small, because quite frankly it is a lot harder than what people think to discover something that they have not seen described in which the person has to literally 'make it up'.

This is the thing that when people are taught, they think everything is easy but if you ask them to figure out something, then it becomes a lot harder and unfortunately the way a lot of education works is that people don't really have to figure things out but instead just put things have already been figured out together.

In many applications, this is essential but when it comes to really understanding something, then this is destined to fail because it prevents people from asking questions and hence gaining real perspective and context.

I encourage you to keep doing this kind of thing no matter how trivial you think it may be or how 'bonkers' you think it may be, because if you accumulate all these little experiences, then before you know it you will have accumulated enough to have a very deep insightful knowledge of that particular thing.
 
  • #3
1MileCrash said:
Do I mean to say that normal arithmetic is modular arithmetic with the modulus as 0?
I'm not sure that modulo 0 math would have any meaning. Math modulo +∞ doesn't have much meaning either, other than an alternate way of stating absolute (positive) value of a number. The normal convention for modulo is that for positive n, 0 <= mod(a, n) < n, and for negative n, -n < mod(a, n) <= 0. It doesn't matter if a is positive or negative.

Note that modular arithmetic is the basis for Reed Solomon and other types of error correction codes, as well as some encryption schemes. With the existence of practical applications, a lot of research has gone into finite field mathematics.
 
Last edited:
  • #4
Modulo 0 and modulo 1 are indeed two opposite concepts. But I think the right way of seeing this is with the notion of ideals.

An ideal of [itex]\mathbb{Z}[/itex] is a nonempty subset [itex]I\subseteq \mathbb{Z}[/itex] such that
1) [itex]0\in I[/itex].
2) If [itex]x,y\in I[/itex], then [itex]x+y\in I[/itex].
3) If [itex]x\in I[/itex] and [itex]n\in \mathbb{Z}[/itex], then [itex]nx\in I[/itex].

As can easily be verified, both [itex]\{0\}[/itex] and [itex]\mathbb{Z}[/itex] are ideals. Furthermore, for any [itex]n\in \mathbb{Z}[/itex], we have that [itex]n\mathbb{Z}=\{nx~\vert~x\in \mathbb{Z}\}[/itex] is an ideal.

Now, with an ideal I, we can associate a modular arithmetic. Indeed, we say that x=y (mod I) if and only if [itex]x-y\in I[/itex].

Modulo [itex]\{0\}[/itex] is then just equality. Modulo [itex]\mathbb{Z}[/itex] is something that is always true. And we can see that this is indeed two opposite situations: [itex]\{0\}[/itex] is the smallest possible ideal, while [itex]\mathbb{Z}[/itex] is the largest.

Considering ideals in [itex]\mathbb{Z}[/itex] is not terribly exciting. Indeed, one can prove that the only ideals are the ones of the form [itex]n\mathbb{Z}[/itex]. So all the modular arithmetics are just the ones you already know.
But ideals are very useful in structures other than [itex]\mathbb{Z}[/itex], where modular arithmetic is maybe more restrictive!
 
  • #5


I appreciate your enthusiasm for modular arithmetic and your ability to see the beauty and complexity in seemingly simple concepts. It is true that many of the fundamental principles of mathematics are often first introduced in elementary school, but as you have discovered, there is so much more depth and intricacy to be explored and understood.

Your observation about congruence mod 0 being the same as equality is a fascinating one. While it may not be a commonly discussed topic, it is certainly worth considering and exploring further. And your insight about the opposite extremes of congruence mod 1 and 0 adds even more depth to this concept.

It is important to remember that mathematics is not just about memorizing formulas and solving equations, but also about critical thinking and exploring new ideas. Your curiosity and passion for the subject is what drives scientific progress and helps us better understand the world around us. Keep up the good work and keep exploring the wonders of modular arithmetic!
 

1. What is modular arithmetic?

Modular arithmetic is a mathematical system that deals with integers and their remainders after division by a fixed number. It is often used in cryptography and computer science.

2. How is modular arithmetic different from regular arithmetic?

In regular arithmetic, numbers continue to increase or decrease infinitely. However, in modular arithmetic, numbers "wrap around" after reaching a certain value, called the modulus. For example, in a modulus of 10, the sequence would go 1, 2, 3, ..., 9, 0, 1, 2, 3, etc.

3. What are some applications of modular arithmetic?

Modular arithmetic has many practical applications, such as in clock calculations, computer science algorithms, and cryptography. It can also be used to solve certain types of number puzzles.

4. How is modular arithmetic used in cryptography?

In cryptography, modular arithmetic is used to encrypt and decrypt messages. It involves choosing a large modulus and a public and private key. The public key is used to encrypt messages, which can only be decrypted using the private key.

5. Are there any drawbacks to using modular arithmetic?

One potential drawback of modular arithmetic is that it is not commutative. This means that the order in which operations are performed can affect the outcome. It can also be more difficult to perform certain operations, such as division, in modular arithmetic compared to regular arithmetic.

Similar threads

Replies
5
Views
2K
Replies
4
Views
2K
Replies
35
Views
2K
Replies
7
Views
520
Replies
20
Views
1K
Replies
1
Views
2K
  • General Math
Replies
1
Views
1K
Replies
35
Views
3K
  • General Math
Replies
1
Views
987
Back
Top