


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



6.042/18.062J Mathematics for Computer Science September 21, 2010 Tom Leighton and Marten van Dijk
Problem 1. [16 points] Warmup Exercises For the following parts, a correct numerical answer will only earn credit if accompanied by it’s derivation. Show your work. (a) [4 pts] Use the Pulverizer to find integers s and t such that 135 s + 59 t = gcd(135, 59). (b) [4 pts] Use the previous part to find the inverse of 59 modulo 135 in the range { 1 ,... , 134 }. (c) [4 pts] Use Euler’s theorem to find the inverse of 17 modulo 31 in the range { 1 ,... , 30 }. (d) [4 pts] Find the remainder of 3482248 divided by 83. (Hint: Euler’s theorem.) Problem 2. [16 points] Prove the following statements, assuming all numbers are positive integers. (a) [4 pts] If a | b, then ∀c, a | bc (b) [4 pts] If a | b and a | c, then a | sb + tc. (c) [4 pts] ∀c, a | b ⇔ ca | cb (d) [4 pts] gcd(ka, kb) = k gcd(a, b) Problem 3. [20 points] In this problem, we will investigate numbers which are squares modulo a prime number p. (a) [5 pts] An integer n is a square modulo p if there exists another integer x such that n ≡ x^2 (mod p). Prove that x^2 ≡ y^2 (mod p) if and only if x ≡ y (mod p) or x ≡ −y (mod p). (Hint: x^2 − y^2 = (x + y)(x − y)) (b) [5 pts] There is a simple test we can perform to see if a number n is a square modulo p. It states that Theorem 1 (Euler’s Criterion). :
2 Problem Set 3 p− 1
MIT OpenCourseWare http://ocw.mit.edu 6.042J / 18.062J Mathematics for Computer Science Fall 2010 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.