Test 3 Sample Solutions - Mathematical Structures | MAT 300, Exams of Mathematics

Material Type: Exam; Class: Mathematical Structures; Subject: Mathematics; University: Arizona State University - Tempe; Term: Spring 2004;

Typology: Exams

Pre 2010

Uploaded on 09/02/2009

koofers-user-n7k
koofers-user-n7k 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
MAT 300 Mathematical Structures April 23, 2004
Test 3, sample solutions (reworked 4/24/04))
1. a. A relation fbetween two sets Aand Bis called a function, if bBaAsuch
that (a, b)f, and whenever aA, b1, b2Bare such that (a, b1),(a, b2)fthen b1=b2.
b. A function ffrom a set Ato a set Bis called one-to-one if whenever a1, a2Aare such that
f(a1) = f(a2) then a1=a2.
c. A number mZis called a divisor of a number nZif there exists qZsuch that mq =n.
d. A number pZis called prime if p > 1, and 1 and pare its only divisors.
e. Two sets Aand Bare said to have the same cardinality if there exists a one-to-one
correspondence between Aand B.
f. A set Ais called finite if Ais empty, or if there exists a natural number nand a one-to-one
correspondence between Aand the set {iN:in}.
2. The division algorithm asserts that for all mZ, all nZ\ {0}, there exists unique qZand
r {0,1,...n1}such that m=nq +r.
3. Suppose A, B and Care sets, g:A7→ Band f:B7→ Care functions, and (fg) is a one-to-one
correspondence. a. Then fmust be onto and gmust be one-to-one.
b1. To prove that fis onto, suppose zC. Since (fg) is onto, there exists xAsuch that
(fg)(x) = z. Let y=g(x)B. Then f(y) = f(g(x)) = zC, showing that fis onto.
b2. To show that gmust be one-to-one, suppose that x1, x2Aare such that g(x1) = g(x2).
Hence (fg)(x1) = f(g(x1)) = f(g(x2)) = (fg)(x2), from which we may conclude
that x1=x2since (fg) is one-to-one.
4. Suppose a, b, c Nare such that a|band b|c. This means that there exist q1, q2Nsuch that
b=aq1and c=bq2. Together this implies c=a(q1q2), i.e. a|csince q1q2N.
5. (Prove the contrapositive.) Suppose nNand 2 6n. By the division algorithm, qNsuch that
n= 2q+ 1. Hence n2= (2q+ 1)2= 2Q+ 1 where Q= 2q2+ 2qN, i.e. 2 6 |n2.
(Bonus version) Proof by contradiction. Suppose pNis prime, nN, and p|n2. This means
that there exists qNsuch that pq =n2.
Now suppose that p6 | n, i.e. gcd(p, n) = 1. Theorem 6.4.1 this implies that there exist x, y Z
such that 1 = xp +yn. Hence n=px +yn2=p(x+yq), i.e. p|ncontradicting the assumption.
6. Suppose nN. Let S={xN:x > 1 and x|n}. Since nS, this set is nonempty and the
well-ordering principle applies, i.e., Shas a smallest element. Call it p. Clearly p|n(since pS).
Now suppose that qN\ {1}divides p. Using 4., i.e., using that | is a transitive relation on
N, this implies that q|nand hence qS. But qpand pis the smallest element of S, hence
q=p, showing that pis prime.
C.a. Applying the Euclidean Algorithm to 60 and 11 yields: 60 = 11 ·5 + 5 and 11 = 5 ·2 + 1.
Working backwards, these yield 5 = 60 5·11 and 1 = 11 2·5. Taken together these give
1 = 11 2·(60 5·11) = 11 ·11 2·60, i.e., 11 ·11 1 (mod 60).
b. Using a., obtain 3 = 33 ·11 6·60, which may be rewritten as 33 ·11 3 (mod 60).
c. In the setting of the “clock-problem”, the minute-hand and the hour-hand are 3 tick-marks apart
at 33 times 12 minutes after 12 : 00 noon/midnight, i.e. at 3 : 36 p.m. and at 3 : 36 a.m.

Partial preview of the text

Download Test 3 Sample Solutions - Mathematical Structures | MAT 300 and more Exams Mathematics in PDF only on Docsity!

MAT 300 Mathematical Structures April 23, 2004

Test 3, sample solutions (reworked 4/24/04))

  1. a. A relation f between two sets A and B is called a function, if ∀ b ∈ B ∃ a ∈ A such that (a, b) ∈ f , and whenever a ∈ A, b 1 , b 2 ∈ B are such that (a, b 1 ), (a, b 2 ) ∈ f then b 1 = b 2. b. A function f from a set A to a set B is called one-to-one if whenever a 1 , a 2 ∈ A are such that f (a 1 ) = f (a 2 ) then a 1 = a 2. c. A number m ∈ Z is called a divisor of a number n ∈ Z if there exists q ∈ Z such that mq = n. d. A number p ∈ Z is called prime if p > 1, and 1 and p are its only divisors. e. Two sets A and B are said to have the same cardinality if there exists a one-to-one correspondence between A and B. f. A set A is called finite if A is empty, or if there exists a natural number n and a one-to-one correspondence between A and the set {i ∈ N: i ≤ n}.
  2. The division algorithm asserts that for all m ∈ Z, all n ∈ Z \ { 0 }, there exists unique q ∈ Z and r ∈ { 0 , 1 ,... n − 1 } such that m = nq + r.
  3. Suppose A, B and C are sets, g: A 7 → B and f : B 7 → C are functions, and (f ◦ g) is a one-to-one correspondence. a. Then f must be onto and g must be one-to-one. b1. To prove that f is onto, suppose z ∈ C. Since (f ◦ g) is onto, there exists x ∈ A such that (f ◦ g)(x) = z. Let y = g(x) ∈ B. Then f (y) = f (g(x)) = z ∈ C, showing that f is onto. b2. To show that g must be one-to-one, suppose that x 1 , x 2 ∈ A are such that g(x 1 ) = g(x 2 ). Hence (f ◦ g)(x 1 ) = f (g(x 1 )) = f (g(x 2 )) = (f ◦ g)(x 2 ), from which we may conclude that x 1 = x 2 since (f ◦ g) is one-to-one.
  4. Suppose a, b, c ∈ N are such that a | b and b | c. This means that there exist q 1 , q 2 ∈ N such that b = aq 1 and c = bq 2. Together this implies c = a(q 1 q 2 ), i.e. a | c since q 1 q 2 ∈ N.
  5. (Prove the contrapositive.) Suppose n ∈ N and 2 6 n. By the division algorithm, ∃q ∈ N such that n = 2q + 1. Hence n^2 = (2q + 1)^2 = 2Q + 1 where Q = 2q^2 + 2q ∈ N, i.e. 2 6 |n^2. (Bonus version) Proof by contradiction. Suppose p ∈ N is prime, n ∈ N, and p | n^2. This means that there exists q ∈ N such that pq = n^2. Now suppose that p 6 | n, i.e. gcd(p, n) = 1. Theorem 6.4.1 this implies that there exist x, y ∈ Z such that 1 = xp + yn. Hence n = px + yn^2 = p(x + yq), i.e. p | n contradicting the assumption.
  6. Suppose n ∈ N. Let S = {x ∈ N: x > 1 and x | n}. Since n ∈ S, this set is nonempty and the well-ordering principle applies, i.e., S has a smallest element. Call it p. Clearly p | n (since p ∈ S). Now suppose that q ∈ N \ { 1 } divides p. Using 4., i.e., using that “|” is a transitive relation on N, this implies that q | n and hence q ∈ S. But q ≤ p and p is the smallest element of S, hence q = p, showing that p is prime.

C.a. Applying the Euclidean Algorithm to 60 and 11 yields: 60 = 11 · 5 + 5 and 11 = 5 · 2 + 1. Working backwards, these yield 5 = 60 − 5 · 11 and 1 = 11 − 2 · 5. Taken together these give 1 = 11 − 2 · (60 − 5 · 11) = 11 · 11 − 2 · 60, i.e., 11 · 11 ≡ 1 (mod 60).

b. Using a., obtain 3 = 33 · 11 − 6 · 60, which may be rewritten as 33 · 11 ≡ 3 (mod 60).

c. In the setting of the “clock-problem”, the minute-hand and the hour-hand are 3 tick-marks apart at 33 times 12 minutes after 12 : 00 noon/midnight, i.e. at 3 : 36 p.m. and at 3 : 36 a.m.