I came across the following question:
Consider the following system of equivalences of integers.
$$ x \equiv 2 \bmod{15} $$
$$ x \equiv 4 \bmod{21} $$
The number of solutions in $x$, where $1\le x\le 315$, to the above system of equivalences is
(A) $0$
(B) $1$
(C) $2$
(D) $3$.
Can someone please explain to me what do $x \equiv 2 \bmod{15} $ and $ x \equiv 4 \bmod{21} $ mean?
I know that mod gives the remainder when the former number is divided by the latter like 15 mod 4 = 3.
I need some help about how to solve this sum.
I can give you a nifty formula that will take you straight to the answer, but it doesn't sound like you are ready for that. You need to build up some intuition with these sorts of questions... so try this.
$x \equiv 2\mod15$ would be the same thing as $x = 15n + 2$ where $n$ is an integer. And from the other equation $x = 21m+4$
Now, I leave it to you to do the tough part of finding a combination of $m$ and $n$ that solves both equations.