- Use the extended Euclidean algorithm to find integers and such that . Show every step of the algorithm. What is the value of ?
Solution:
- Assume that is a prime number. Prove that if and only if either or . Justify every step of the argument.
Solution: By definition, . Since is prime, by Euclid’s lemma, or . Therefore, .
If , then .
- Prove that, for every natural , is divisible by if and only if is divisible by .
Solution 1: Let and start computing a few examples:
0 | 1 | 1 | 0 |
1 | 2 | 3 | 3 |
2 | -1 | -1 | 1 |
3 | 3 | 2 | 3 |
4 | 1 | 1 | 0 |
Thus, and similarly, , thus for all .
Now I prove the statement by strong induction on . The base cases follow from the table above. Suppose that . Then is, by inductive hypothesis, congruent to zero if and only if is divisible by 4.
Solution 2: Let be the remainder of divided by . By a corollary of Fermat’s little theorem, for . Therefore, using the same table as above, if and only if or, in other words, .
- Argue, without reference to the fundamental theorem of arithmetic, that every integer has a prime divisor.
Solution 1: Let . Since is reflexive, . Then by the well-ordering principle, has a least element . If were composite, there would be an integer such that and . Then by minimality, , so does not divide . But this contradicts the transitivity of .
Solution 2: By strong induction on . Suppose the statement holds for all . If is prime, I am done. Otherwise, there exists an integer with . But if has a prime divisor, so does by the transitivity of .
Solution 3: By weak induction on , the number of positive divisors of . if , then is prime and I am done. Suppose the statements holds for all with and let have divisors; let be the least of them. Then , so has a prime divisor. But then so does by transitivity.
- Suppose that is a surjective function between two sets and . Give a direct proof that .
Solution with hint: By PS1, the relation is an equivalence relation on . Define given by . I claim is injective. Indeed, if , then . By surjectivity, this set cannot be empty, so say belongs to it. Then .
Therefore, .
Solution without hint: For every choose, by surjectivity, . Define by . I now argue is injective. Suppose that . Then, , from where .
Therefore, by definition.
- Write down an explicit injective function from into . Prove the injectivity.
Solution: Let
Define by
Injectivity follows form the fundamental theorem of arithmetic.
- Show that, if and is any set, then .
Solution: Let be a bijection. Define by . I now argue is injective. Indeed suppose that are such that . Let . Then, for ,
Hence, .
This proves that , but by the symmetry of equinumerosity and the Cantor-Bernstein theorem, this is clearly enough.