Sunday, 16 November 2014

modular arithmetic - Solving Linear Congruence



Ok, I found a lot of questions asking about solving a=b(modc) where you could divide a and b by some x where gcd(x,c)=1. How do you solve when this is not the case?




Suppose I have 10x5(mod15). How do I solve this? How can you solve to get a linear equation in x?



On inspection (and trying out values), I see that x=3n+2 is what I'm looking for. How can I get this mathematically?



And yes, this is homework, but I changed the numbers so that I could practice on the actual problem ;)


Answer



Hint mod mc: acxbcmod m: axbfor  c0by    mc| acxbcm | axbbecause   acxbcmc  =  axbm



No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...