Chapter 4: Number Theory and Cryptography
Q18SE
Prove that if n is a positive integer such that the sum of the divisors of n is n+1, then n is prime.
Q19E
This exercise outlines a proof of Fermat’s little theorem.
(a) Suppose thatis not divisible by the prime p. Show that no two of the integers are congruent modulo p .
(b) Conclude from part (a) that the product of is congruent modulo to the product of . Use this to show that .
(c) Use Theorem 7 of section 4.3 to show that iffrom part (b) that if [Hint: Use lemma 3 of section 4.3 to show that does not divide and then use theorem 7 of section 4.3. Alternatively, use Wilson’s theorem from exercise 18(b).]
(d) Use part (c) to show that for all integers .
Q19E
Give a procedure for converting from the octal expansion of an integer to its hexadecimal expansion using binary notation as an intermediate step.
Q19E
The vigenere cipher is a block cipher, with a key that is a string of letters with numerical equivalents, where 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 equivalents1743.Then, the plain text ORANGE with numerical equivalents 14 1700 13 06 04is encrypted by first splitting it into twoblocks . Then, in each block we shift the first letter by 17, the second by 4and the third by 3. We obtain . The cipher text is
19. The cipher text was produced by encrypting a plain text message using the vigenere cipher with key . What is plain text message?
Q19E
Find a formula for the integer with smallest absolute value that is congruent to an integer a modulo m, where m is a positive integer.
Q19E
The United States Postal Service (USPS) sells money orders identified by an \(11\)-digit number\({x_1}{x_2} \ldots {x_{11}}.\) The first ten digits identify the money order;\({x_{11}}\)is a check digit that satisfies\({x_{11}} = {x_1} + {x_2} + L + {x_{10}}\,mod\,9\) Determine whether each of these numbers is a valid USPS money order identification number.
\(\begin{aligned}{*{20}{l}}{a) 74051489623}\\{b) 88382013445}\\{c) 56152240784}\\{d) 66606631178}\end{aligned}\)
Q19RE
Explain how encryption and decryption are done in the RSA cryptosystem.
Q19SE
Show that every integer greater than 11 is the sum of two composite integers.
Q1E
Does\(17\)divide each of these numbers?
a) \(68\)
b) \(84\)
c) \(357\)
d) \(1001\)
Q1E
Convert the decimal expansion of each of these integers to a binaryexpansion.
- \({\rm{231}}\)
- \(4532\)
- \(97644\)