assignment-09-sol

assignment-09-sol - MATH 135, Fall 2010 Solution of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
MATH 135, Fall 2010 Solution of Assignment #9 Problem 1 . Suppose that p and q are prime numbers with p > q . Suppose also that n = pq and φ ( n ) = ( p - 1)( q - 1). (a) Prove that p + q = n - φ ( n ) + 1 and p - q = p ( p + q ) 2 - 4 n . (b) If n = 1 281 783 203 and φ ( n ) = 1 281 711 600, determine p and q . Solution. (a) In the first equation, RS = n - φ ( n ) + 1 = pq - ( p - 1)( q - 1) + 1 = pq - ( pq - p - q + 1) + 1 = p + q = LS In the second equation, RS = p ( p + q ) 2 - 4 n = p p 2 + 2 pq + q 2 - 4 pq = p p 2 - 2 pq + q 2 = p ( p - q ) 2 = p - q = LS since p > q . (b) From (a), p + q = n - φ ( n ) + 1 = 1 281 783 203 - 1 281 711 600 + 1 = 71 604 and p - q p ( p + q ) 2 - 4 n = p 71 604 2 - 4(1 281 783 203) = 4 = 2 Thus, 2 p = ( p + q ) + ( p - q ) = 71 606 whence p = 35 803. Lastly, q = ( p + q ) - p = 71 604 - 35 803 = 35 801. Problem 2 . Use Fermat’s Little Theorem and the Square and Multiply Algorithm to show that the integer 3599 is not prime, without testing each prime p 3599 to see if is a factor. (Hint: compute 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/25/2011 for the course MATH 135 taught by Professor Andrewchilds during the Spring '08 term at Waterloo.

Page1 / 2

assignment-09-sol - MATH 135, Fall 2010 Solution of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online