Friday, 31 October 2014

elementary number theory - Solving simple congruence



I'm trying to solve a simple congruence like 23d1(mod40) and so I'm using the method I found on Wikipedia (http://en.wikipedia.org/wiki/Linear_congruence_theorem). So finally I arrive at the conclusion that d=40k+7 for some integer k and here's where I get stuck - how can I found all the solutions (here I know there's only one since GCD(23,40)=1 but I'm also talking about different problems) if not by taking some random values and plugging in everything I think of incrementally?



I mean: I know the solution is k=0 and so d=7 only thanks to the wild guess of "let's try 0 first" and scoring a jackpot then but how do I derive it rather than by common sense?



Answer



You're just a step away: 23d1(mod40)d=40k+7d7=40k

d7(mod40)



So every solution d satisfying your congruence equation is expressible, as you've shown, by d=40k+740(d7)

. There are infinitely many values of k for which this is true.



Any unique integer kZ yields a value satisfying d=40k+7 such that d7(mod40). In other words, the values of d which satisfy your congruence equation are all d for which 40(d7). There are infinitely many d congruent to 7mod40.



It is standard, however, by convention, that we choose k so that we have 0d<m where m is the modulus. So in this case, we choose d=040+7 to represent the equivalence class of all solutions: and represent the solution as d7mod40, because d=7 is the only solution 07<40.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

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