This preview shows page 1. Sign up to view the full content.
Unformatted text preview: b ) p = a p + b p modulo p ). Problem 3 At some point, long ago, people seeking prime numbers had hoped that many integers of the form 2 n1 (socalled Mersenne numbers) would be prime. Its true for n = 2 , 3 but not n = 4. Prove that if n > 2 is not a prime number then 2 n1 is not a prime either. Problem 4 Consider the Fibonacci numbers: F = 0, F 1 = 1, F n = F n1 + F n2 , for n > 1. Show how to compute F n using only O (log n ) additions and multiplications. (Hint: express the recurrence as a twobytwo matrix.)...
View
Full
Document
This homework help was uploaded on 01/29/2008 for the course COS 340 taught by Professor Charikarandchazelle during the Fall '07 term at Princeton.
 Fall '07
 CharikarandChazelle

Click to edit the document details