Chapter 4: Number Theory and Cryptography
Q17E
Convert (7345321)8 to its binary expansion and (10 1011 1011)2 to its octal expansion.
Q17E
Determine whether the check digit of the ISBN-10 for this textbook (the seventh edition of Discrete Mathematics and its Applications) was computed correctly by the publisher.
Q17RE
Encrypt the message APPLES AND ORANGES using a shift chipper with key k=13 .
Q17SE
Use Dirichlet’s theorem, which states there are infinitely many primes in every arithmetic progression ak + b where gcd(a, b) =1, to show that there are infinitely many primes that have a decimal expansion ending with a 1.
Q18E
The vigenere cipher is a block cipher, with a key that is a string of letters with numerical equivalentswhere for . Suppose that the numerical equivalents of the letters of a plain text block are . The corresponding numerical cipher text block is . Finally, we translate back to letters. For example, suppose that the key string is RED, with numerical equivalents .Then, the plain text ORANGE with numerical equivalents is encrypted by first splitting it into twoblocks . Then, in each block we shift the first letter by17, the second by4and the third by3. We obtain . The cipher text is
18. Use the Vigenere cipher with key BLUEto encrypt the messageSNOWFALL
Q18E
Show that if a is an integer and d is an integer greater than 1, then the quotient and remainder obtained when a is divided by d are (a/d) and a – d(a/d), respectively.
Q18E
(a) Generalize the result in part (a) of exercise 16; that is, show that ifis a prime, the positive integers less than , except 1 and , can be split into pairs of integers such that each pair consists of integers that are inverses of each other.[Hint: Use the result of Exercise: 17]
(b) From part (a) conclude thatwhenever is prime. This result is known as Wilson’s theorem.
(c) What can we conclude ifis a positive integer such that role="math" localid="1668689516754" ?
Q18E
Give a procedure for converting from the hexadecimal expansion of an integer to its octal expansion using binary notation as an intermediate step.
Q18E
The United States Postal Service (USPS) sells money orders identified by an 11-digit number The first ten digits identify the money order; x11 is a check digit that satisfies .
18. Find the check digit for the USPS money orders that have
identification number that starts with these ten digits.
a) 7555618873
b) 6966133421
c) 8018927435
d) 3289744134
Q18RE
(a) What is the difference between a public key and a private key cryptosystem?
(b) Explain why using shift chippers is a private key system.
(c) Explain why the RSA cryptosystem is a public key system.