Course notes (chap. 1 Number Theory, chap. 2 ... - McGill University
Course notes (chap. 1 Number Theory, chap. 2 ... - McGill University
Course notes (chap. 1 Number Theory, chap. 2 ... - McGill University
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
1.3 Solving linear congruentials<br />
A linear congruential is an expression of the form<br />
ax ⌘ b (mod n)<br />
for known a, b, n and unknown x.<br />
gcd(a, n) =1sinceinthatcasea 1<br />
x ⌘ ba 1<br />
Clearly, we can solve for x whenever<br />
(mod n) existsandthus<br />
(mod n).