Finding Solutions for na=0 (mod m) with Positive Integers m and n

  • Context: Undergrad 
  • Thread starter Thread starter quasar987
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around finding all positive integer solutions for the equation na = 0 (mod m), where n and m are positive integers. Participants explore various methods and approaches to derive these solutions, focusing on the implications of the greatest common divisor (gcd) and the structure of the integers involved.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant asks how to find all solutions to na = 0 (mod m).
  • Another participant suggests that if na = 0 (mod m), then na can be expressed as km for some integer k, and proposes a method using the gcd of n and m to find solutions in the form a = m/d * l, where d = gcd(n, m) and l is any positive integer.
  • A different participant mentions that solving an = mt is a valid approach and discusses the limitations of the congruence relation m/n, providing an example to illustrate their point.
  • One participant acknowledges the previous contributions and expresses interest in proving that the identified solutions are the only ones, specifically within the range 1 ≤ a ≤ m.
  • Another participant claims to have found a solution in a book, proposing a method involving the decomposition of m and n in terms of their gcd and concluding that the solutions are multiples of p, where p is derived from the factorization of m and n.

Areas of Agreement / Disagreement

Participants generally agree on the form of the solutions involving the gcd, but there is no consensus on proving that these are the only solutions. Multiple approaches and interpretations are presented, indicating ongoing debate and exploration of the topic.

Contextual Notes

Some assumptions regarding the properties of gcd and the structure of integers are present, but not all participants have fully resolved the implications of their methods or the completeness of their solutions.

quasar987
Science Advisor
Homework Helper
Gold Member
Messages
4,796
Reaction score
32
Given n and m positive integers, how can I find all the solutions to na=0 (mod m)??
 
Physics news on Phys.org


If na = 0 (mod m) then na = km for some k. To find all a consider d = gcd(n,m), if we let a = m/d * l for l any positive integer then a is guaranteed to be an integer as d divides m and as d divides n we must have na = m * (n*l/d) which implies na is a integer multiple of m.

I assume that a = m/d is the smallest a allowed as d is the greatest common divisor and I don't want to think of a proof.
 


solve an = mt

PS the congruence relation m/n does not work since n does not have to be a divisor of m, eg 11/5 = 9 mod n since 9*5 = 1 mod n, but the congruence relation m/gcd(m,n)*t mod m works. as m/1 is the solution for a in that case. (Re the t If a = 2 is a solution to m = 14, n = 7 so are 4,6,8,10.12 and 14)

Sorry but Thirsty Dog gave the correct solution before me.
 
Last edited:


Thanks for the reply guys.

However, I had already figured out that all elements of the form a = m/d * l (ThirstyDog's notation) are solutions. What remains for me to do is prove that these are the only solutions.

Also, I actually only interested in solutions mod m... that is, solutions such that [itex]1\leq a \leq m[/itex].
 


Ok, I found the solution in a book.

Write m=pd and n=qd (where d=gcd(m,n)) and notice that p and q are relatively prime, otherwise, d would not be the greatest common divisor of m and n.

And then it's easy: we have that m|an <==>pd|aqd <==>p|aq <==> p|a.

So the solutions are all the multiples of p.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K