Finding all solutions to na ≡ 0 (mod m)
- Context: Undergrad
- Thread starter quasar987
- Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 3K views
Discussion
Physics news on Phys.org
ThirstyDog
- 34
- 0
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.
ramsey2879
- 841
- 3
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:
Science Advisor
Homework Helper
Gold Member
- 4,796
- 32
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].
Science Advisor
Homework Helper
Gold Member
- 4,796
- 32
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
Lagrange multipliers: finding all solutions from 2y = x
- rudy
- · Replies 2 ·
- Calculus and Beyond Homework Help
- Replies
- 2
Finding all solutions to cos(x) + 2cos²(x) = 0 on [0, 6π]
- fordy2707
- · Replies 4 ·
- General Math
- Replies
- 4
Graduate Finding all solutions to x1² + x2² = 1 in finite fields Zp
- khotsofalang
- · Replies 4 ·
- Linear and Abstract Algebra
- Replies
- 4
Undergrad Does ab ≡ 0 (mod m) imply a|m or b|m?
- imagination10
- · Replies 1 ·
- Linear and Abstract Algebra
- Replies
- 1
Finding all solutions for α in a trigonometric equation with given parameters
- skrat
- · Replies 3 ·
- Calculus and Beyond Homework Help
- Replies
- 3
Undergrad Finding all solutions of Ax = y
- finalfreak
- · Replies 2 ·
- Linear and Abstract Algebra
- Replies
- 2
Finding all solutions to z²=a+bi using De Moivre's formula
- kat1812
- · Replies 3 ·
- Precalculus Mathematics Homework Help
- Replies
- 3
Finding all solutions to sine rule when angle B has two possible values
- ai93
- · Replies 4 ·
- General Math
- Replies
- 4
Graduate Finding all solutions to non-linear system numericaly
- charnley
- · Replies 3 ·
- General Math
- Replies
- 3
Graduate Find all solutions to 3^a - 1 = 2b^2 - B.M.O. problem
- al-mahed
- · Replies 4 ·
- Linear and Abstract Algebra
- Replies
- 4