How to Solve for Integers Modulo n?

  • Context: High School 
  • Thread starter Thread starter JJKorman1
  • Start date Start date
  • Tags Tags
    Integers
Click For Summary

Discussion Overview

The discussion revolves around solving integer equations in modular arithmetic, specifically how to find the value of an integer given its modular relationship with another integer. The scope includes conceptual understanding and clarification of modular equivalences.

Discussion Character

  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant expresses confusion about solving for a in the equation a=7mod12, after stating they understand a=12mod7 yields a=5.
  • Another participant suggests that solving means finding an integer q such that 0<=q
  • A participant questions the clarity of the previous response, seeking a direct answer for what a is in the case of a=7mod12.
  • One participant argues that a=7 is in reduced form and explains that the remainder when dividing 7 by 12 is 7, emphasizing the need for clarity in the definition of "solve" in this context.
  • Another participant explains that 12 mod 7 equals 5 because it is the difference when finding the largest multiple of 7 less than 12, and similarly describes how to find 7 mod 12, noting that 0 is a multiple of any number.

Areas of Agreement / Disagreement

Participants exhibit disagreement regarding the interpretation of "solving" in modular arithmetic, with some asserting clarity in the definitions while others express confusion. The discussion remains unresolved as participants offer differing perspectives on the definitions and processes involved.

Contextual Notes

There are limitations in the clarity of terms used, particularly the phrase "solve" which may not be universally understood among participants. Additionally, the discussion reflects varying levels of familiarity with modular arithmetic concepts.

JJKorman1
Messages
4
Reaction score
0
I understand how to solve: a=12mod7 => a = 5, I think, however,
how do you solve for a=7mod12 ?
Stumped :eek:
 
Physics news on Phys.org
When you say solve, is what you mean is given an integer p find an integer q with 0<=q<n and p==q mod(n) as 7 is between 0 and 11 it solves itself, if you will.
 
Do not understand your response:

if a=12mod7 yields a=5: 5 is the remainder however,
if a=7mod12 what is a? & how do I get there?

Thanks,

JimK
 
How ling did you spend trying to understand the answer I gave? a=7 is, shall we say, in the reduced form. The remainder after dividing 7 by 12 is 7.

As it stands, when you say solve a=p mod(n) you are not using a well defined phrase. What you might ought to mean is find the remainder on division by n of p, but that isn't immediately obvious from what you wrote. That is, and I realize I'm just restating what I orginally wrote, find the a with 0<=a<n that is the remainder on dividing by n of p. If a is already in that range you are done.

Remember these aren't equals signs, they are equivalences.
 
12 mod 7 == 5 bacause 5 is the difference when you find the largest multiple of 7 that is less than 12 (i.e., 7 itself).

To find what 7 mod 12 is, note that 0 is a multiple of any number. So, now, 0 is the largest multiple of 12 that lies just below 7, and the remainder is 7 itself.

This should be obvious from the reasoning that you are asking what hour 7 refers to on a 12 hr clock.
 

Similar threads

Replies
1
Views
1K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
Replies
9
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 17 ·
Replies
17
Views
8K