I'm trying to solve a simple congruence like 23d≡1(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: 23d≡1(mod40)⟹d=40k+7⟺d−7=40k
So every solution d satisfying your congruence equation is expressible, as you've shown, by d=40k+7⟺40∣(d−7)
Any unique integer k∈Z yields a value satisfying d=40k+7 such that d≡7(mod40). In other words, the values of d which satisfy your congruence equation are all d for which 40∣(d−7). There are infinitely many d congruent to 7mod40.
It is standard, however, by convention, that we choose k so that we have 0≤d<m where m is the modulus. So in this case, we choose d=0⋅40+7 to represent the equivalence class of all solutions: and represent the solution as d≡7mod40, because d=7 is the only solution 0≤7<40.
No comments:
Post a Comment