Sunday, 5 July 2015

number theory - Solving Linear Congruence Equation: Finding the Nonnegative Integer Representation




I have a question for a part of the following problem: Solve the linear congruence 7x ≡ 6(mod 29)



I understand how to find the linear combination equality using the extended Euclidean Algorithm, which is this: 1 = 1⋅29 − 4⋅7



But what is throwing me is that I can't find a way to find the nonnegative integer representation less than 29 of the inverse of 7. I know by my equation that -4 is the inverse of 7, but how would I go about this?


Answer



It is written down explicitly in your post. You wrote that using the Extended Euclidean Algorithm, you reached $1=1\cdot 29-4\cdot 7$. This says that $-4$ is the inverse of $7$. If you want positive, use $29+(-4)$.


No comments:

Post a Comment

real analysis - How to find $lim_{hrightarrow 0}frac{sin(ha)}{h}$

How to find $\lim_{h\rightarrow 0}\frac{\sin(ha)}{h}$ without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...