• Home
  • Textbooks
  • Modern Cryptography and Elliptic Curves: A Beginner’s Guide
  • A Second View of Modular Arithmetic: Zn and Un

Modern Cryptography and Elliptic Curves: A Beginner’s Guide

Thomas R. Shemanske

Chapter 4

A Second View of Modular Arithmetic: Zn and Un - all with Video Answers

Educators


Chapter Questions

Problem 1

Show that 2Z (the even integers) is a ring (without a multiplicative identity) under the usual operations of addition and multiplication.

Check back soon!

Problem 2

It is actually not difficult to show that there is a oneto-one correspondence between partitions of a set and equivalence
relations on the set. While we have seen the example that the equivalence relation of congruence modulo n gives rise to the partition
of the integers into congruence classes, consider the equivalence relation associated to the partitions of M&M’s we gave above. Then
see if you can prove the general statement.

Check back soon!
03:34

Problem 3

Let $p$ be a prime. Determine the value of $\phi\left(p^r\right)$ for any positive integer $r$. Hint: It may be easier to count the number of elements of $a \in \mathbb{Z}_{p^r}$ which are not relatively prime to $p^r$ and use that to determine the value of the function. Of course be sure to check your answer against a few examples you can compute by hand.

Bryan Lynn
Bryan Lynn
Numerade Educator

Problem 4

It is easy to show that in general $\phi(m n) \neq \phi(m) \phi(n)$ for general $m, n$, but what is remarkable is that when $\operatorname{gcd}(m, n)=1$, $\phi(m n)=\phi(m) \phi(n)$. The function $\phi$ is an example of a multiplicative function in number theory. Perhaps more surprising is that this is a direct consequence of the Chinese Remainder Theorem. Give a proof that $\phi$ is multiplicative using the following idea. Suppose that $m, n \geq 2$ and $\operatorname{god}(m, n)=1$. Show that there is a bijection between the sets $U_{m n}$ and $U_m \times U_n$ (ordered pairs $(a, b)$ with $a \in U_m$, $\left.b \in U_n\right)$. Note that $U_{m n}$ has cardinality $\phi(m n)$ and $U_m \times U_n$ has cardinality $\phi(m) \cdot \phi(n)$. To establish the bijection, define a map $F: U_{m n} \rightarrow U_m \times U_n$ by $F\left([a]_{m n}\right)=\left([a]_m,[a]_n\right)$. You need to show this map is well-defined, one-to-one, and onto. Then deduce the result.
Some of these words may be new to you, so here are some definitions.
- We have encountered the term "well-defined" before. In this context it means that if $[a]_{m n}=[b]_{m n}$, then $F([a])=$ $F([b])$.
- The map $F$ is one-to-one (injective) if $F([a])=F([b])$ implies $[a]_{m n}=[b]_{m n}$.
- The map $F$ is onto (surjective) if given $\left([b]_m,[c]_n\right) \in U_m \times$ $U_n$, there exists $[a]_{m n} \in U_{m n}$ so that $F([a])=([b],[c])$.
- A map is bijective if it is one-to-one and onto.
- If $f: S \rightarrow T$ is a bijection, then $S$ and $T$ are said to have the same cardinality (size), and the result you are to prove is simply that when $\operatorname{gcd}(m, n)=1$, the size of $U_{m n}$ and $U_m \times U_n$ is the same.

Check back soon!