A Special System of Linear Congruences

  • Context: Undergrad 
  • Thread starter Thread starter e(ho0n3
  • Start date Start date
  • Tags Tags
    Linear System
Click For Summary

Discussion Overview

The discussion revolves around solving a system of linear congruences with specific bounds on the variables. Participants explore the applicability of Gaussian elimination in this context, particularly when solutions may fall outside the defined bounds.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant presents a system of equations in modular arithmetic and questions the feasibility of solving it using Gaussian elimination while adhering to variable bounds.
  • Another participant asserts that Gaussian elimination can be applied if all operations are conducted modulo d, suggesting that d might be equal to n.
  • Concerns are raised about the implications of reducing solutions modulo d or n, particularly if it leads to values outside the specified bounds for the variables.
  • A later reply clarifies that the restrictions should be 0 ≤ x_n ≤ i_n for given i_n, and emphasizes that reducing a variable modulo d could disrupt the integrity of the solution when substituted back into the system.
  • One participant concludes that if a solution violates the restrictions after reduction, it indicates that no solution exists.

Areas of Agreement / Disagreement

Participants express differing views on the handling of solutions that fall outside the defined bounds, with some suggesting that reduction modulo d is necessary while others caution against its potential to invalidate the solution. The discussion remains unresolved regarding the best approach to handle such cases.

Contextual Notes

Participants note limitations regarding the assumptions about the bounds of the variables and the implications of applying modular arithmetic in the context of Gaussian elimination.

e(ho0n3
Messages
1,349
Reaction score
0
Suppose I have a system of m equations in k unknowns

<br /> \begin{align*}<br /> a_{11}x_1 + a_{12}x_2 + \cdots + a_{1k}x_k &amp;= 0 \pmod d \\<br /> &amp;\vdots \\<br /> a_{m1}x_1 + a_{m2}x_2 + \cdots + a_{mk}x_k &amp;= 0 \pmod d<br /> \end{align*}<br />

with the restriction that 0 \le x_n &lt; n. How do I solve such a thing? Will Gaussian elimination work? What if I get a solution where one of the x's is outside its bounds?
 
Physics news on Phys.org
Gaussian elimination will work, if all operations are done mod d (I suspect this d should be n).

What if I get a solution where one of the x's is outside its bounds?

Reduce it mod d (or n).
 
JSuarez said:
Gaussian elimination will work, if all operations are done mod d (I suspect this d should be n).
No, it should be mod d.

What if I get a solution where one of the x's is outside its bounds?
Reduce it mod d (or n).
I messed up with the restrictions. It should be 0 \le x_n \le i_n for some given i_n. If I mod an x by d or by i_n, it will screw up the solution because when I plug a mod'ed x back into the system, the numbers won't come out right. I would have to mod all the x's by d, by this will automatically happen if I do Gaussian elimination by mod d. However, the problem remains: What if one of the x's is outside its bound?
 
Then, if after reducing mod d, there is a violation of any of the restrictions, we must conclude that there is no solution.
 
You have a good point there. Thanks for your help.
 

Similar threads

  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 52 ·
2
Replies
52
Views
4K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
Replies
1
Views
4K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K