DUE Monday, October 5th, 2026

Reminder: Test 2 (Module 2) is in class on Wednesday, October 7th.

Relevant Textbook Sections:

3.8.3 (The role of squares in factoring).

To Do:

  1. Suppose p≡3(mod4)p \equiv 3 \pmod 4 and aa is a square modulo pp. The following observation gives a method to compute a square root of aa. Explain why our setup implies a(p−1)/2≡1a^{(p-1)/2} \equiv 1. Show that x=a(p+1)/4x = a^{(p+1)/4} satisfies x2≡a(modp)x^2 \equiv a \pmod p. Demonstrate the method with p=19p = 19 and a=6a=6. What goes wrong if you try the same formula for p=13p = 13 and a=10a = 10? (Note 62≡10(mod13)6^2 \equiv 10 \pmod{13}, so 1010 does have square roots.)
  2. Suppose nn is a product of two primes which are 3mod  43 \mod 4. Explain how, if you can factor nn, you could find square roots modulo nn using the last exercise. (Hint: CRT.)
  3. Find all four square roots of 7171 modulo 77=7⋅1177 = 7 \cdot 11. Hint: find the square roots modulo 77 and modulo 1111 separately, then combine them with CRT.
  4. Explain how, if you can find square roots modulo nn, this allows you to factor nn. (Find square roots means find all square roots.) Hint: this is just recalling something we’ve been discussing in class about square roots and factoring.
  5. Just a note: There are also more complicated ways to find square roots modulo primes that are 11 modulo 44. So the exercises above show that factoring nn is considered equivalent to finding square roots modulo nn.
  6. Find the square root(s), if any, of 33 modulo 1111 using the algorithm from the first example. Now draw the dynamical portrait of powers of 33 modulo 1111. Label each vertex as 3x=y3^x = y for whatever xx and yy, so each vertex can be interpreted as its value mod pp and its power of 33. Can you use this diagram to explain why the method works?