Discrete Math Question Involving Congruence Modulus

Click For Summary

Homework Help Overview

The discussion revolves around solving a congruence equation in discrete mathematics, specifically the equation 4x = 6 (mod 5). Participants are exploring the implications of modulus and the nature of integer solutions.

Discussion Character

  • Conceptual clarification, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the definition of modulus and its implications for the variable k. There are attempts to express the congruence in different forms, and questions arise regarding the validity of k being negative or non-negative. Some participants express confusion about the problem's context, particularly regarding the assignment of the question.

Discussion Status

The discussion is ongoing, with participants providing insights and alternative interpretations of the modulus concept. Some guidance has been offered regarding the expression of the equation and the nature of integer solutions, but there is no explicit consensus on the correct approach or understanding of the problem.

Contextual Notes

There is mention of the problem being presented in a test context without prior assignment of relevant material, leading to frustration among participants. This raises questions about the appropriateness of the problem given the students' preparation.

Bashyboy
Messages
1,419
Reaction score
5
Solve for x: 4x=6(mod 5)

Here is my solution:

From the definition of modulus, we can write the above as \frac{4x−6}{5}=k, where k is the remainder resulting from 4x~mod~5=6~mod~5=k.

Solving for x, x=\frac{5k+6}{4}⟹x(k)=\frac{5k+6}{4}

Now, my teacher said that is incorrect, and that k=...−2,−1,0,1,2,...

I honestly don't understand what is wrong about my answer; and shouldn't k only take on nonnegative values, following from the definition of modulus?
 
Physics news on Phys.org
and shouldn't k only take on nonnegative values, following from the definition of modulus?
k can be any integer number. 4=6 mod 2, and 6=4 mod 2.
"mod 2" refers to the "=", not to one side of the equation. This is different in computer science.

Your x(k) will give answers only if the fraction there (evaluated in the real numbers) gives integers.
 
So, I presume there is a different way of solving this, of which I am unaware of? Could you possibly give me a hint?
 
I think I might have discovered why I am unable to do this problem: my teacher furnished this as a test question, despite the fact that my teacher did not even assign the chapter which deals with solving congruences, nor did my teacher assign probems. Frustrating but not out of the ordinary.
 
Last edited:
Bashyboy said:
Solve for x: 4x=6(mod 5)

Here is my solution:

From the definition of modulus, we can write the above as \frac{4x−6}{5}=k, where k is the remainder resulting from 4x~mod~5=6~mod~5=k.
It would be better to write 4x- 6= 5k or 4x= 6+ 5k since all numbers here must be integers. And writing it as a fraction obscures that.

Now: if k= 0, this is 4x= 6 which does not have an integer solution.
If k= 1, this is 4x= 11 which does not have an integer solution.
If k= 2, this is 4x= 16 which has x= 4 as a solution.

And since this is "modulo 5", any x= 4+ 5k, for k any integer, is a solution.


Solving for x, x=\frac{5k+6}{4}⟹x(k)=\frac{5k+6}{4}

Now, my teacher said that is incorrect, and that k=...−2,−1,0,1,2,...

I honestly don't understand what is wrong about my answer; and shouldn't k only take on nonnegative values, following from the definition of modulus?
No, there is no requirement that "k" be non-negative. I don't know which of several equivalent defnitions of "modulus" you are using. One is "a= b (mod n) if and only if a- b is divisibe by n". Another is "a= b (mod n) if and only if a= b+ kn for some integer n".

4- 5= -1 is also a value of "x= 4 (mod 5)" and satisfies 4(-1)= -4= 6 (mod 5) because 6- (-4)= 10 is a multiple of 5.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K