I'm trying to learn a bit of Number Theory. And while I understand the definition of congruence relations modulo $n$ and that they are an equivalence relations, I fail to see the motivation for it. So what is congruence relation $\bmod n$ intuitively? (The "bold lines" below are my questions that I'm seeking answer to.)
Definition: For $a,b \in \mathbb{Z}$ and $n \in \mathbb{N}$, $a\equiv b \bmod n \Leftrightarrow n|(a-b)$
Okay, so let's start with the definition, what is really the point of "$n | (a-b)$?" That $a=nq + b$, for some $q \in \mathbb{Z}$? So what do I do with this and why is it so important?
Secondly, if $a$ and $b$ leave the same residue or remainder upon division by $n$ then $a \equiv b \bmod n$, again I don't see why are we so interested in remainders?
And lastly, I keep seeing examples of clocks, days of the week and months. That's good but is that all there's to it?
I have a strong feeling, I'm grossly underestimating congruence relations modulo $n$, perhaps that's because I don't have the intuition for it and where should I should use it. So any intuitive explanations of it and where should one use them would be really really really nice. I'm desperately trying to figure this out. Thanks in advance.
Modulo weakens equality, helps divisibility, and allows dealing with huge numbers. It's relevant to Cryptography, and therefore cybersecurity. It can even help with divisor form:
Assume a number is of form $2^p-1$ , it's clear that any time $2^p\equiv 1\pmod q$ that $q\mid 2^p-1$ . Assume they are both primes, then we get $p\mid q-1$ any time $p>2$ ( Fermat's little theorem, and a bit more theory) but that means $q=jp+1$ with $j$ even ( $j=2k$ for some integer $k$ ) because $q$ must be odd.
It can also be looked at as linear polynomials with all integer variable, coefficients and constants as $y\equiv b\pmod m\implies y=mx+b$
Expanding more upon this $$y\not\equiv b\pmod m\implies y\ne b$$ you can set up $b$ with properties and prove $y$ doesn't have a property. This is used in diophantine equations to show or disprove an example could exist with a property.
An example is checking the conjecture that all natural numbers can be expressed as the sum of $3$ cubes of integers. You can show modulo $9$ that there are only $7$ possible sums of remainders , so there are at least $2$ remainders that will never be possible.