Find integers and such that
Find
Using the identity factor into a product of two integers greater than 1.
Using the congruence deduce that and show that is a multiple of 3.
Solve
Suppose you write a message as a number Encrypt as How would you decrypt? (Hint: Decryption is done by raising the ciphertext to a power mod 31. Fermat’s theorem will be useful.)
Solve
Find all solutions of
Find all solutions of
Find all solutions of
Find all solutions of
Let Show that if is composite then has a prime factor
Use the Euclidean algorithm to compute
Using the result of parts (a) and (b) and the fact that show that 257 is prime. (Remark: This method of computing one gcd, rather than doing several trial divisions (by 2, 3, 5, ...), is often faster for checking whether small primes divide a number.)
Compute
Compute
Factor 4883 and 4369 into products of primes.
What is ? Using the Extended Euclidean algorithm, find mod
What is ? Does mod 1111 exist?
Find where consists of repeated 1s. What can you say about mod as a function of ?
Let define the Fibonacci numbers Use the Euclidean algorithm to compute for all
Find
Let be formed with repeated 1’s and let be formed with repeated 1’s. Find (Hint: Compare your computations in parts (a) and (b).)
Let Show that none of the numbers are prime.
Let be prime. Suppose and are integers such that Show that either or
Show that if are integers with and then
Let be prime.
Show that if then
Show that if then has solutions with
Let be prime. Show that the only solutions to are (Hint: Apply Exercise 13(a) to )
Find with and
Suppose and What is congruent to mod 70?
Find with and (Hint: Replace with for a suitable and similarly for the second congruence.)
A group of people are arranging themselves for a parade. If they line up three to a row, one person is left over. If they line up four to a row, two people are left over, and if they line up five to a row, three people are left over. What is the smallest possible number of people? What is the next smallest number? (Hint: Interpret this problem in terms of the Chinese remainder theorem.)
You want to find such that when you divide by each of the numbers from 2 to 10, the remainder is 1. The smallest such is What is the next smallest ? (The answer is less than 3000.)
Find all four solutions to (Note that )
Find all solutions to (There are only two solutions in this case. This is because )
You need to compute A friend offers to help: 1 cent for each multiplication mod 581859289607. Your friend is hoping to get more than $650. Describe how you can have the friend do the computation for less than 25 cents. (Note: is the most commonly used RSA encryption exponent.)
Divide by 101. What is the remainder?
Divide by 11. What is the remainder?
Find the last 2 digits of
Let be prime. Show that has no solutions. (Hint: Suppose exists. Raise both sides to the power and use Fermat’s theorem. Also, because is odd.)
Let be prime. Show that for all
Let be prime and let and be integers. Show that
Evaluate
Use part (a) to find the last digit of (Note: means since the other possible interpretation would be which is written more easily without a second exponentiation.) (Hint: Use part (a) and the Basic Principle that follows Euler’s Theorem.)
You are told that exactly one of the numbers
is prime and you have one minute to figure out which one. Describe calculations you could do (with software such as MATLAB or Mathematica) that would give you a very good chance of figuring out which number is prime? Do not do the calculations. Do not try to factor the numbers. They do not have any prime factors less than You may use modular exponentiation, but you may not use commands of the form “IsPrime[n]” or “NextPrime[n].” (See Computer Problem 3 below.)
Let 13, or 19. Show that for all with
Let 13, or 19. Show that for all (Hint: Consider the case separately.)
Show that for all Composite numbers such that for all are called Carmichael numbers. They are rare (561 is another example), but there are infinitely many of them [Alford et al. 2].
Show that and
Show that
Is 341 prime?
Let be prime and let Let Show that
Use the method of part (a) to solve
You are appearing on the Math Superstars Show and, for the final question, you are given a 500-digit number and are asked to guess whether or not it is prime. You are told that is either prime or the product of a 200-digit prime and a 300-digit prime. You have one minute, and fortunately you have a computer. How would you make a guess that’s very probably correct? Name any theorems that you are using.
Compute for all of the divisors of (namely, 1, 2, 5, 10), and find the sum of these
Repeat part (a) for all of the divisors of 12.
Let Conjecture the value of where the sum is over the divisors of (This result is proved in many elementary number theory texts.)
Find a number mod 7 that is a primitive root mod 7 and find a number that is not a primitive root mod 7. Show that and have the desired properties.
Show that every nonzero congruence class mod 11 is a power of 2, and therefore 2 is a primitive root mod 11.
Note that Find such that (Hint: What is the inverse of ?)
Show that every nonzero congruence class mod 11 is a power of 8, and therefore 8 is a primitive root mod 11.
Let be prime and let be a primitive root mod Let with Let Show that
Let and be as in part (d). Show that is a primitive root mod (Remark: Since there are possibilities for the exponent in part (d), this yields all of the primitive roots mod )
Use the method of part (e) to find all primitive roots for given that 2 is a primitive root.
It is known that 14 is a primitive root for the prime Let (The exponent is )
Explain why
Explain why
Find the inverse of
Find all values of such that is invertible.
Find the inverse of
Find all primes for which is not invertible.
Use the Legendre symbol to show that has a solution.
Use the method of Section 3.9 to find a solution to
Use the Legendre symbol to determine which of the following congruences have solutions (each modulus is prime):
Let be odd and assume Show that if then is not a square mod
Show that
Show that 3 is not a square mod 35.
Let Show that
Show that
Show that
Use the procedure of Exercise 54 to show that 3 is a primitive root mod 65537. (Remark: The same proof shows that 3 is a primitive root for any prime such that is a power of 2. However, there are only six known primes with a power of 2; namely, 2, 3, 5, 17, 257, 65537. They are called Fermat primes.)
Show that the only irreducible polynomials in of degree at most 2 are and
Show that is irreducible in (Hint: If it factors, it must have at least one factor of degree at most 2.)
Show that and
Show that
Show that is irreducible in
Find the multiplicative inverse of in
Show that the quotients in the Euclidean algorithm for are exactly the numbers that appear in the continued fraction of
Compute several steps of the continued fractions of and Do you notice any patterns? (It can be shown that the ’s in the continued fraction of every irrational number of the form with rational and eventually become periodic.)
For each of let be such that in the continued fraction of Compute and and show that and give a solution of what is known as Pell’s equation:
Use the method of part (b) to solve
Compute several steps of the continued fraction expansion of Do you notice any patterns? (On the other hand, the continued fraction expansion of seems to be fairly random.)
Compute several steps of the continued fraction expansion of and compute the corresponding numbers and (defined in Section 3.12). The sequences and are what famous sequence of numbers?
Let and be integers with The order of mod is the smallest positive integer such that We denote
Show that
Show that if is a multiple of then
Suppose Write with (this is just division with remainder). Show that
Using the definition of and the fact that show that and therefore This, combined with part (b), yields the result that if and only if
Show that
This exercise will show by example how to use the results of Exercise 53 to prove a number is a primitive root mod a prime once we know the factorization of In particular, we’ll show that 7 is a primitive root mod 601. Note that
Show that if an integer divides 600, then it divides at least one of 300, 200, 120 (these numbers are 600/2, 600/3, and 600/5).
Show that if then it divides one of the numbers 300, 200, 120.
A calculation shows that
Why can we conclude that does not divide 300, 200, or 120?
Show that 7 is a primitive root mod 601.
In general, suppose is a prime and is the factorization of into primes. Describe a procedure to check whether a number is a primitive root mod (Therefore, if we need to find a primitive root mod we can simply use this procedure to test the numbers 2, 3, 5, 6, ... in succession until we find one that is a primitive root.)
We want to find an exponent such that
Observe that but It can be shown (Exercise 46) that 3 is a primitive root mod 65537, which implies that if and only if Use this to show that but 4096 does not divide (Hint: Raise both sides of to the 16th and to the 32nd powers.)
Use the result of part (a) to conclude that there are only 16 possible choices for that need to be considered. Use this information to determine This problem shows that if has a special structure, for example, a power of 2, then this can be used to avoid exhaustive searches. Therefore, such primes are cryptographically weak. See Exercise 12 in Chapter 10 for a reinterpretation of the present problem.
Let be an integer written in binary (for example, when we have ). Let and be integers. Perform the following procedure:
Start with and
If let If let
Let
If stop. If add 1 to and go to (2).
Show that
Let and be positive integers. Show that the following procedure computes
Start with
If is even, let and let
If is odd, let and let
If go to step 2.
Output
(Remark: This algorithm is similar to the one in part (a), but it uses the binary bits of in reverse order.)
Here is how to construct the guaranteed by the general form of the Chinese remainder theorem. Suppose are integers with whenever Let be integers. Perform the following procedure:
For let
For let
Let
Show for all
Alice designs a cryptosystem as follows (this system is due to Rabin). She chooses two distinct primes and (preferably, both and are congruent to 3 mod 4) and keeps them secret. She makes public. When Bob wants to send Alice a message he computes and sends to Alice. She makes a decryption machine that does the following: When the machine is given a number it computes the square roots of since it knows and There is usually more than one square root. It chooses one at random, and gives it to Alice. When Alice receives from Bob, she puts it into her machine. If the output from the machine is a meaningful message, she assumes it is the correct message. If it is not meaningful, she puts into the machine again. She continues until she gets a meaningful message.
Why should Alice expect to get a meaningful message fairly soon?
If Oscar intercepts (he already knows ), why should it be hard for him to determine the message ?
If Eve breaks into Alice’s office and thereby is able to try a few chosen-ciphertext attacks on Alice’s decryption machine, how can she determine the factorization of ?
This exercise shows that the Euclidean algorithm computes the gcd. Let be as in Subsection 3.1.3.
Let be a common divisor of Show that and use this to show that
Let be as in (a). Use induction to show that for all In particular, the last nonzero remainder.
Use induction to show that for
Using the facts that and show that and then Therefore, is a common divisor of
Use (b) to show that for all common divisors and therefore is the greatest common divisor.
Let and be distinct primes.
Show that among the integers satisfying there are multiples of and there are multiples of
Suppose Show that is a multiple of or a multiple of
Show that if then cannot be a multiple of both and
Show that the number of integers with such that is (Remark: This proves the formula that )
Give an example of integers with and integers such that the simultaneous congruences
have no solution.
Give an example of integers with and integers such that the simultaneous congruences
have a solution.
18.219.208.117