Show that addition and multiplication mod \(n\) are well defined operations. That is, show that the operations do not depend on the choice of the representative from the equivalence classes mod \(n\text{.}\)
Suppose that \(p\) is prime, \(a\) is an integer, and \(n\) and \(m\) are positive integers such that \(n \equiv m \pmod{p-1}\text{.}\) Show that \(a^n \equiv a^m \pmod{p}\text{.}\)
Use the corollary to Fermatβs Little Theorem to show that if \(p = 4n + 3\) is prime, there is no solution to the equation \(x^2 \equiv -1 \pmod{p}\text{.}\)
Universal Product Code (UPC) symbols are found on most products in grocery and retail stores. The UPC symbol is a 12-digit code identifying the manufacturer of a product and the product itself (FigureΒ 3.16). The first 11 digits contain information about the product; the twelfth digit is used for error detection. If \(d_1 d_2 \cdots d_{12}\) is a valid UPC number, then
The UPC error detection scheme can detect most transposition errors; that is, it can determine if two digits have been interchanged. Show that the transposition error 0-05000-30042-6 is not detected. Find a transposition error that is detected. Can you find a general rule for the types of transposition errors that can be detected?
The 10-digit ISBN allowed too few possibilities, so it was extended by 3 digits ISBN-13. ISBN-13 uses a mod 10 check digit, similar to the UPC code. Any ISBN-10 can be converted into an ISBN-13 by prefixing the digits 978 and recomputing the check digit. Design an alternative mod 11 check digit system called ISBN-13alt and a prefix that can added to any valid ISBN-10 to make a valid ISBN-13alt. Does your system detect all changed digits and all transpositions?
Suppose that \((d_1, d_2, \ldots, d_k ) \cdot (w_1, w_2, \ldots, w_k ) \equiv 0 \pmod{ n}\) is an error detection scheme for the \(k\)-digit number \(d_1 d_2 \cdots d_k\text{,}\) where \(0 \leq d_i \lt n\text{.}\) Prove that all single-digit errors are detected if and only if \(\gcd( w_i, n ) = 1\) for \(1 \leq i \leq k\text{.}\)
Let \((d_1, d_2, \ldots, d_k ) \cdot (w_1, w_2, \ldots, w_k ) \equiv 0 \pmod{ n}\) be an error detection scheme for the \(k\)-digit identification number \(d_1 d_2 \cdots d_k\text{,}\) where \(0 \leq d_i \lt n\text{.}\) Prove that all transposition errors of two digits \(d_i\) and \(d_j\) are detected if \(\gcd( w_i - w_j, n ) = 1\) for \(i\) and \(j\) between \(1\) and \(k\text{.}\)
Prove that there doesnβt exist a check digit system modulo \(n=10\) with \(k \geq 2\) digits which will detect all single-digit errors and all transpositions.
Use the method of parallel computation outlined in the text to calculate \(2234 + 4121\) by dividing the calculation into four separate additions modulo 95, 97, 98, and 99.
Explain why the method of parallel computation outlined in the text fails for \(2134 \cdot 1531\) if we attempt to break the calculation down into two smaller calculations modulo 98 and 99.