|
49 | 49 | same remainder when divided by $c$. |
50 | 50 | \end{defn} |
51 | 51 |
|
52 | | -Here is the \emph{Chinese remainder theorem}: |
| 52 | +Here is the \emph{Chinese Remainder theorem}: |
53 | 53 | \begin{thm} |
54 | 54 | Suppose $x_0,\dots,x_n$ are (pairwise) relatively prime. Let |
55 | 55 | $y_0$, \dots, $y_n$ be any numbers. Then there is a number $z$ such that |
|
61 | 61 | \end{eqnarray*} |
62 | 62 | \end{thm} |
63 | 63 |
|
64 | | -Here is how we will use the Chinese remainder theorem: if |
| 64 | +Here is how we will use the Chinese Remainder theorem: if |
65 | 65 | $x_0,\dots,x_n$ are bigger than $y_0,\dots,y_n$ respectively, then |
66 | 66 | we can take $z$ to code the sequence $\langle y_0,\dots,y_n\rangle$. To recover |
67 | 67 | $y_i$, we need only divide $z$ by $x_i$ and take the remainder. To use |
|
113 | 113 | We can then show that all of the following are in $C$: |
114 | 114 | \begin{enumerate} |
115 | 115 | \item The pairing function, $J(x,y) = \frac{1}{2}[(x+y)(x+y+1)] + x$ |
| 116 | +% maybe explain more what is going on here, a bit confusing. |
116 | 117 | \item Projections |
117 | 118 | \[ |
118 | | -K(z) = \mu {x \leq q} \; (\lexists[y \leq z][z = J(x,y)]) |
| 119 | +K(z) = \mu {x \leq q} \; (\lexists[y \leq z] \, [z = J(x,y)]) |
119 | 120 | \] |
120 | 121 | and |
121 | 122 | \[ |
122 | | -L(z) = \mu {y \leq q} \; (\lexists[x \leq z][z = J(x,y)]). |
| 123 | +L(z) = \mu {y \leq q} \; (\lexists[x \leq z]\, [z = J(x,y)]). |
123 | 124 | \] |
124 | 125 | \item $x < y$ |
125 | 126 | \item $x \mid y$ |
|
146 | 147 | \] |
147 | 148 | and let $d_1 = j\fac$. By the observations above, we know that $1+d_1, |
148 | 149 | 1+2 d_1, \dots, 1+(n+1) d_1$ are relatively prime and all are bigger |
149 | | -than $a_0,\dots,a_n$. By the Chinese remainder theorem there is a |
| 150 | +than $a_0,\dots,a_n$. By the Chinese Remainder theorem there is a |
150 | 151 | value $d_0$ such that for each $i$, |
151 | 152 | \[ |
152 | 153 | d_0 \equiv a_i \mod (1+(i+1)d_1) |
|
155 | 156 | \[ |
156 | 157 | a_i = \fn{rem}(1+(i+1)d_1,d_0). |
157 | 158 | \] |
158 | | -Let $d = J((d)_0,(d)_1)$. Then for each $i$ from $0$ to $n$, we have |
| 159 | +Let $d = J(d_0,d_1)$. Then for each $i$ from $0$ to $n$, we have |
159 | 160 | \begin{eqnarray*} |
160 | 161 | \beta(d,i) & = & \beta^*(d_0,d_1,i) \\ |
161 | 162 | & = & \fn{rem}(1+(i+1) d_1,d_0) \\ |
|
0 commit comments