Number theory find two smallest integers with same remainders

Click For Summary
SUMMARY

The discussion focuses on finding the two smallest positive integers that yield specific remainders when divided by 3, 5, and 7. The integers identified are 23 and 128, derived using modular arithmetic. The solution employs the method of congruences, specifically the equations a ≡ 2 (mod 3), a ≡ 3 (mod 5), and a ≡ 2 (mod 7). The process involves expressing the integers in the form a = 21n + 2, where n is a positive integer, leading to the conclusion that the first two valid integers are indeed 23 and 128.

PREREQUISITES
  • Understanding of modular arithmetic and congruences
  • Basic knowledge of number theory concepts
  • Familiarity with integer solutions and positive integers
  • Ability to manipulate algebraic expressions
NEXT STEPS
  • Study the Chinese Remainder Theorem for solving systems of congruences
  • Learn about modular inverses and their applications in number theory
  • Explore advanced topics in number theory, such as Diophantine equations
  • Practice solving problems involving modular arithmetic and congruences
USEFUL FOR

Students and enthusiasts of mathematics, particularly those interested in number theory and modular arithmetic, will benefit from this discussion. It is also valuable for educators looking to enhance their teaching methods in these areas.

Wildcat
Messages
114
Reaction score
0

Homework Statement


Find the two smallest positive integers(different) having the remainders 2,3, and 2 when divided by 3,5, and 7 respectively.


Homework Equations





The Attempt at a Solution

I got 23 and 128 as my answer. I tried using number theory where I started with 7x +2 as the number, then if divided by 5 the remainder would be 3 so subtract 3 from 7x+2 to get 7x-1 when I use this method and stop there by having x=0,1,2,3,... 3 works 7(3)-1 is divisible by 5 so put 3 in the original 7(3) +2 =23 Then I just used a trial and error method to find 128. Is my answer correct?? I know my procedure is sketchy because I have never been exposed to number theory.
 
Physics news on Phys.org
Your answers are correct. There are of course, more formal methods of solving it.
In number theory, we usually use the method of taking modulos. Let me illustrate this for the question below:

From the remainders, we have:
a == 2 (mod 3) - (1)
a == 3 (mod 5) - (2)
a == 2 (mod 7) - (3)

From (3), the numbers must have the form a = 7k+2, where k is any positive integer.

Using (1): 7k + 2 == 2 (mod 3)
This implies that 7k == 0 (mod 3), quite a useful result! Thus k = 3n, where n is any positive integer, and so our numbers a = 21n + 2.

Using (2): 21n + 2 == 3 (mod 5)
This implies that 21 n == 1 (mod 5). Since 21 == 1 (mod 5), n == 1 (mod 5) as well for the equation to hold.

Thus the numbers a that satisfy the conditions are of the form 21n + 2, n = 1,6,11,16,21...
The first two numbers are thus 21(1) + 2 = 23 and 21(6) + 2 = 128
 
Fightfish said:
Your answers are correct. There are of course, more formal methods of solving it.
In number theory, we usually use the method of taking modulos. Let me illustrate this for the question below:

From the remainders, we have:
a == 2 (mod 3) - (1)
a == 3 (mod 5) - (2)
a == 2 (mod 7) - (3)

From (3), the numbers must have the form a = 7k+2, where k is any positive integer.

Using (1): 7k + 2 == 2 (mod 3)
This implies that 7k == 0 (mod 3), quite a useful result! Thus k = 3n, where n is any positive integer, and so our numbers a = 21n + 2.

Using (2): 21n + 2 == 3 (mod 5)
This implies that 21 n == 1 (mod 5). Since 21 == 1 (mod 5), n == 1 (mod 5) as well for the equation to hold.

Thus the numbers a that satisfy the conditions are of the form 21n + 2, n = 1,6,11,16,21...
The first two numbers are thus 21(1) + 2 = 23 and 21(6) + 2 = 128

Thanks! I need to take a class on number theory!
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K