Chapter 0

Preliminaries

[52/62%]
Show
LaTeX
Problem 0.1

For n=5,8,12,20n = 5, 8, 12, 20, and 2525, find all positive integers less than nn and relatively prime to nn.

?
Problem 0.2

Determine

?
(a)

gcd⁡(2,10)\gcd (2,10), \lcm(2,10)\lcm (2,10);

(b)

gcd⁡(20,8)\gcd (20,8), \lcm(20,8)\lcm (20,8);

(c)

gcd⁡(12,40)\gcd (12,40), \lcm(12,40)\lcm (12,40);

(d)

gcd⁡(21,50)\gcd (21,50), \lcm(21,50)\lcm (21,50);

(e)

gcd⁡(p2q2,pq3)\gcd (p^2 q^2, pq^3), \lcm(p2q2,pq3)\lcm (p^2 q^2, pq^3), where pp and qq are distinct primes.

Problem 0.3

Determine 51 mod 1351 \bmod 13, 342 mod 85342 \bmod 85, 62 mod 1562 \bmod 15, 10 mod 1510 \bmod 15, (82⋅73) mod 7(82 \cdot 73) \bmod 7, (51+68) mod 7(51+68) \bmod 7, (35⋅24) mod 11(35 \cdot 24) \bmod 11, and (47+68) mod 11(47+68) \bmod 11.

?
Problem 0.4

Find integers ss and tt such that 1=7⋅s+11⋅t1 = 7 \cdot s + 11 \cdot t. Show that ss and tt are not unique.

?
Problem 0.5

Prove that every integer that is a common multiple of every member of a finite set of integers is a multiple of the least common multiple of those integers.

?
Problem 0.6

Prove that for any three consecutive integers nn, n+1n + 1, n+2n + 2 one must be divisible by 33.

?
Problem 0.7

Show that if aa and bb are positive integers, then ab=\lcm(a,b)⋅gcd⁡(a,b)ab = \lcm (a, b) \cdot \gcd (a, b).

?
Problem 0.8

Suppose aa and bb are integers that divide the integer cc. If aa and bb are relatively prime, show that abab divides cc. Show, by example, that if aa and bb are not relatively prime, then abab need not divide cc.

?
Problem 0.9

If aa and bb are integers and nn is a positive integer, prove that a mod n=b mod na \bmod n = b \bmod n if and only if nn divides a−ba - b.

?
Problem 0.10

Let d=gcd⁡(a,b)d = \gcd (a, b). If a=da′a = da' and b=db′b = db', show that gcd⁡(a′,b′)=1\gcd (a', b') = 1.

?
Problem 0.11

Let nn be a fixed positive integer greater than 11. If a mod n=a′a \bmod n = a' and b mod n=b′b \bmod n = b', prove that (a+b) mod n=(a′+b′) mod n(a+b) \bmod n = (a'+b') \bmod n and (ab) mod n=(a′b′) mod n(ab) \bmod n = (a'b') \bmod n. (This exercise is referred to in Chapters 6, 8, 10, and 15.)

?
Problem 0.12

Let aa and bb be positive integers and let d=gcd⁡(a,b)d = \gcd (a, b) and m=\lcm(a,b)m = \lcm (a, b). If tt divides both aa and bb, prove that tt divides dd. If ss is a multiple of both aa and bb, prove that ss is a multiple of mm.

?
Problem 0.13

Let nn and aa be positive integers and let d=gcd⁡(a,n)d = \gcd (a, n). Show that the equation ax mod n=1ax \bmod n = 1 has a solution if and only if d=1d = 1. (This exercise is referred to in Chapter 2.)

Theorem 0.2 (GCD is a Linear Combination) states: for any nonzero integers aa and bb, there exist integers ss and tt such that gcd⁡(a,b)=as+bt\gcd (a, b) = as + bt; moreover, gcd⁡(a,b)\gcd (a, b) is the smallest positive integer of the form as+btas + bt. Its corollary states: integers aa and bb are relatively prime if and only if there exist integers ss and tt such that as+bt=1as + bt = 1.

?
Problem 0.14

Show that 5n+35n + 3 and 7n+47n + 4 are relatively prime for all nn.

?
Problem 0.15

Suppose that mm and nn are relatively prime and rr is any integer. Show that there are integers xx and yy such that mx+ny=rmx + ny = r.

?
Problem 0.16

Let pp, qq, and rr be primes other than 33. Show that 33 divides p2+q2+r2p^2 + q^2 + r^2.

?
Problem 0.17

Prove that every prime greater than 33 can be written in the form 6n+16n + 1 or 6n+56n + 5.

?
Problem 0.18

Determine 71000 mod 67^{1000} \bmod 6 and 61001 mod 76^{1001} \bmod 7.

?
Problem 0.19

Let aa, bb, ss, and tt be integers. If a mod st=b mod sta \bmod st = b \bmod st, show that a mod s=b mod sa \bmod s = b \bmod s and a mod t=b mod ta \bmod t = b \bmod t. What condition on ss and tt is needed to make the converse true? (This exercise is referred to in Chapter 8.)

?
Problem 0.20

If nn is an integer greater than 11 and (n−1)!≡1(modn)(n - 1)! \equiv 1 \pmod n, prove that nn is prime.

?
Problem 0.21

Show that gcd⁡(a,bc)=1\gcd (a, bc) = 1 if and only if gcd⁡(a,b)=1\gcd (a, b) = 1 and gcd⁡(a,c)=1\gcd (a, c) = 1. (This exercise is referred to in Chapter 8.)

?
Problem 0.22

Let p1,p2,…,pnp_1, p_2, \ldots , p_n be primes. Show that p1p2⋯pn+1p_1 p_2 \cdots p_n + 1 is divisible by none of these primes.

?
Problem 0.23

Prove that there are infinitely many primes.

?
Problem 0.24

For any complex numbers z1z_1 and z2z_2, prove that ∣z1z2∣=∣z1∣∣z2∣\left|z_1 z_2\right| = \left|z_1\right|\left|z_2\right|.

?
Problem 0.25

Give an if and only if'' statement that describes when the logic gate $x$ NAND $y$ modeled by $1 + xy$ is $1$. Give an if and only if'' statement that describes when the logic gate xx XNOR yy modeled by 1+x+y1 + x + y is 11.

?
Problem 0.26

For inputs of 00 and 11 and mod 22 arithmetic describe the output of the formula z+xy+xzz + xy + xz in the form ``If x…x \ldots, else …\ldots.''

?
Problem 0.27

For every positive integer nn, prove that a set with exactly nn elements has exactly 2n2^n subsets (counting the empty set and the entire set).

?
Problem 0.28

Prove that 2n32n−12^n 3^{2n} - 1 is always divisible by 1717.

?
Problem 0.29

Prove that there is some positive integer nn such that n,n+1,n+2,…,n+200n, n + 1, n + 2, \ldots , n + 200 are all composite.

?
Problem 0.30

If pp is a prime and pp divides a1a2…ana_1 a_2 \ldots a_n, prove that pp divides aia_i for some ii.

?
Problem 0.31

Use the Generalized Euclid's Lemma (see Exercise 0.30) to establish the uniqueness portion of the Fundamental Theorem of Arithmetic.

The Fundamental Theorem of Arithmetic (Theorem 0.3) states: every integer greater than 11 is a prime or a product of primes, and this product is unique except for the order in which the factors appear; that is, if n=p1p2⋯prn = p_1 p_2 \cdots p_r and n=q1q2⋯qsn = q_1 q_2 \cdots q_s, where the pp's and qq's are primes, then r=sr = s and, after renumbering the qq's, pi=qip_i = q_i for all ii.

?
Problem 0.32

What is the largest bet that cannot be made with chips worth $7.00 and $9.00? Verify that your answer is correct with both forms of induction.

?
Problem 0.33

Prove that the First Principle of Mathematical Induction is a consequence of the Well Ordering Principle.

?
Problem 0.34

The Fibonacci numbers are 1,1,2,3,5,8,13,21,34,…1, 1, 2, 3, 5, 8, 13, 21, 34, \ldots. In general, the Fibonacci numbers are defined by f1=1f_1 = 1, f2=1f_2 = 1, and for n≥3n \geq 3, fn=fn−1+fn−2f_n = f_{n-1} + f_{n-2}. Prove that the nnth Fibonacci number fnf_n satisfies fn<2nf_n < 2^n.

?
Problem 0.35

Prove by induction on nn that for all positive integers nn, n3+(n+1)3+(n+2)3n^3 + (n + 1)^3 + (n + 2)^3 is a multiple of 99.

?
Problem 0.36

Suppose that there is a statement involving a positive integer parameter nn and you have an argument that shows that whenever the statement is true for a particular nn it is also true for n+2n + 2. What remains to be done to prove the statement is true for every positive integer? Describe a situation in which this strategy would be applicable.

?
Problem 0.37

In the cut ``As'' from Songs in the Key of Life, Stevie Wonder mentions the equation 8×8×8=48 \times 8 \times 8 = 4. Find all integers nn for which this statement is true, modulo nn.

?
Problem 0.38

Prove that for every integer nn, n3 mod 6=n mod 6n^3 \bmod 6 = n \bmod 6.

?
Problem 0.39

If it is 2:00 a.m.now, what time will it be 3736 hours from now?

?
Problem 0.40

Determine the check digit for a money order with identification number 72345417807234541780.

?
Problem 0.41

Suppose that in one of the noncheck positions of a money order number, the digit 00 is substituted for the digit 99 or vice versa. Prove that this error will not be detected by the check digit. Prove that all other errors involving a single position are detected.

?
Problem 0.42

Suppose that a money order identification number and check digit of 2172042116821720421168 is erroneously copied as 2775042116827750421168. Will the check digit detect the error?

?
Problem 0.43

A transposition error involving distinct adjacent digits is one of the form …ab…→…ba…\ldots ab \ldots \to \ldots ba \ldots with a≠ba \neq b. Prove that the money order check-digit scheme will not detect such errors unless the check digit itself is transposed.

?
Problem 0.44

Explain why the check digit for a money order for the number NN is the repeated decimal digit in the real number N÷9N \div 9.

?
Problem 0.45

The 10-digit International Standard Book Number (ISBN-10) a1a2a3a4a5a6a7a8a9a10a_1a_2a_3a_4a_5a_6a_7a_8a_9a_{10} has the property (a1,a2,…,a10)⋅(10,9,8,7,6,5,4,3,2,1) mod 11=0(a_1, a_2, \ldots , a_{10}) \cdot (10, 9, 8, 7, 6, 5, 4, 3, 2, 1) \bmod 11 = 0. The digit a10a_{10} is the check digit. When a10a_{10} is required to be 1010 to make the dot product 00, the character X is used as the check digit. Verify the check digit for the ISBN-10 assigned to this book.

?
Problem 0.46

Suppose that an ISBN-10 has a smudged entry where the question mark appears in the number 0-716?-2841-90\text{-}716?\text{-}2841\text{-}9. Determine the missing digit.

?
Problem 0.47

Suppose three consecutive digits abcabc of an ISBN-10 are scrambled as bcabca. Which such errors will go undetected?

?
Problem 0.48

Let SS be the set of real numbers. If a,b∈Sa, b \in S, define a∼ba \sim b if a−ba - b is an integer. Show that ∼\sim is an equivalence relation on SS. Describe the equivalence classes of SS.

?
Problem 0.49

Let SS be the set of integers. If a,b∈Sa, b \in S, define aRbaRb if ab≥0ab \geq 0. Is RR an equivalence relation on SS?

?
Problem 0.50

Let SS be the set of integers. If a,b∈Sa, b \in S, define aRbaRb if a+ba + b is even. Prove that RR is an equivalence relation and determine the equivalence classes of SS.

?
Problem 0.51

Complete the proof of Theorem 0.7 by showing that ∼\sim is an equivalence relation on SS.

Theorem 0.7 (Equivalence Classes Partition) states: the equivalence classes of an equivalence relation on a set SS constitute a partition of SS; conversely, for any partition PP of SS, there is an equivalence relation on SS whose equivalence classes are the elements of PP. The proof of the converse begins: let PP be a collection of nonempty disjoint subsets of SS whose union is SS; define a∼ba \sim b if aa and bb belong to the same subset in the collection. It remains to show that ∼\sim is an equivalence relation on SS.

?
Problem 0.52

Prove that 33, 55, and 77 are the only three consecutive odd integers that are prime.

?