×

# Remainders Affect My Mod

Can anyone guide on how I can solve the following problem without using trial-and-error:

A number when divided by 5 leaves a remainder of 2 and when divided by 7, leaves a remainder of 4. What is the remainder when the same number is divided by $$5 \times 7$$?

Note by Nilabha Saha
1 year, 3 months ago

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold
- bulleted- list
• bulleted
• list
1. numbered2. list
1. numbered
2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in $$...$$ or $...$ to ensure proper formatting.
2 \times 3 $$2 \times 3$$
2^{34} $$2^{34}$$
a_{i-1} $$a_{i-1}$$
\frac{2}{3} $$\frac{2}{3}$$
\sqrt{2} $$\sqrt{2}$$
\sum_{i=1}^3 $$\sum_{i=1}^3$$
\sin \theta $$\sin \theta$$
\boxed{123} $$\boxed{123}$$

Sort by:

You see let the number be X. Then X is of the form 5a+2 or 5b-3. Similarly, X is of tge form, 7c+4 or 7d-3. So, when divided by 35 , we can say it will leave remainder -3 which is common both cases. So, X = 35e -3 which corresponds to a remainder of 35-3 = 32. You can do it in congruent modulo concept too.

- 1 year ago

It is 32.

- 1 year ago

I got that answer by trial-and-error. But, may you please explain the mathematical way to solve it?

- 1 year ago

You see, let us take the no. to be X. And € represent congruence. X € 2 (mod 5) and X € 4 (mod 7). X € 2 (mod 5)= X € 2-5 (mod 5)=X € -3 (mod 5) & similarly, X € 4 (mod 7)= X € 4-7 (mod 7)=X € -3 (mod 7). Now, X € -3 (mod 5×7)= X € -3 (mod 35)=X € -3 +35 (mod 35)=X € 32 (mod 35). So, the remainder left when divided by 35 is 32.

- 1 year ago

I see. It all makes sense now. Thank you again for helping me understand the mathematics behind solving this problem.

- 1 year ago

You are welcome.

- 1 year ago