Docsity

MATH 310C Spring 2007 Exam II Solutions - Function Properties and Number Theory - Prof. An, Exams of Mathematics

Toggle sidebar
bg1
MATH 310C
SPRING 2007
EXAM II SOLUTIONS
1. (a) i, iii, and iv are TRUE. ii is FALSE.
(b) i. Proof: Suppose fand gare injective and h(x1) = h(x2). Then g(f(x1)) = g(f(x2)).
Since gis injective, this means that f(x1) = f(x2) and, since fis injective, this
means x1=x2. Thus, his injective.
iii. Proof: Suppose that his surjective and choose c∈C. Since his surjective, there
is an ain Asuch that h(a) = c. Then g(f(a)) = cand f(a) is the element bin B
such that g(b) = c. Thus, gis onto (surjective).
iv. Proof: Suppose that gand hare bijective. Since g:B→Cis a bijection, g−1:C→
Bexists and is also a bijection. For each a∈A,h(a) = g(f(a)). This means that
f(a) = g−1(h(a)). In other words, f=g−1◦h. Since g−1and hare both bijections
and the composition of two bijections is a bijection, fis also a bijection.
(c) Counterexample: Let A={1,2},B={3,4,5}and C={α, β}. Let f(1) = 3
and f(2) = 4. Let g(3) = α,g(4) = βand g(5) = β. Then h(1) = g(3) = αand
h(2) = g(4) = β. So, his one-to-one (since hmaps each element of Ato a different
element of C), but gis not (since g(3) = g(5) but 3 6= 5).
2. No! An injective function ffrom an infinite set to itself is not necessarily surjective. Consider
f:N→Ndefined by f(n)=2n. This function is injective since f(n1) = f(n2) implies that
2n1= 2n2, which implies that n1=n2. But fis not surjective since there is no nin Nsuch
that f(n) = 5, for example.
(NOTE: If Ais finite and f:A→Ais injective, then fmust also be surjective.)
3. Proof: Since d1= gcd(a, c) and d2= gcd(b, c), there exist integers m1,n1,m2, and n2such
that
m1a+n1c=d1and m2b+n2c=d2.
Then
d1d2= (m1a+n1c)(m2b+n2c)
=m1m2ab +n1m2bc +m1n2ac +n1n2c2.
If c|ab, then cdivides every term on the right-hand side of this equation and, hence, c|d1d2.
4. If a|b, then there exists an integer ksuch that b=ak. If b|a, then there exists an integer k0
such that a=bk0. Combining these two equations gives: a=bk0=akk0. Since a6= 0, this
means kk0= 1. The only integers that divide 1 are 1 and −1. Moreover, since kk0= 1, kand
k0must have the same sign. That is, either k=k0= 1 (in which case, a=b) or k=k0=−1
(in which case, a=−b). So, |a|=|b|.
5. First, find a particular solution using the Euclidean algorithm or by inspection. One such
solution is:
8(−25) + 10(25) = 50.
pf2

Partial preview of the text

Download MATH 310C Spring 2007 Exam II Solutions - Function Properties and Number Theory - Prof. An and more Exams Mathematics in PDF only on Docsity!

MATH 310C

SPRING 2007

EXAM II SOLUTIONS

  1. (a) i, iii, and iv are TRUE. ii is FALSE.

(b) i. Proof: Suppose f and g are injective and h(x 1 ) = h(x 2 ). Then g(f (x 1 )) = g(f (x 2 )). Since g is injective, this means that f (x 1 ) = f (x 2 ) and, since f is injective, this means x 1 = x 2. Thus, h is injective.  iii. Proof: Suppose that h is surjective and choose c ∈ C. Since h is surjective, there is an a in A such that h(a) = c. Then g(f (a)) = c and f (a) is the element b in B such that g(b) = c. Thus, g is onto (surjective).  iv. Proof: Suppose that g and h are bijective. Since g : B → C is a bijection, g−^1 : C → B exists and is also a bijection. For each a ∈ A, h(a) = g(f (a)). This means that f (a) = g−^1 (h(a)). In other words, f = g−^1 ◦ h. Since g−^1 and h are both bijections and the composition of two bijections is a bijection, f is also a bijection.  (c) Counterexample: Let A = { 1 , 2 }, B = { 3 , 4 , 5 } and C = {α, β}. Let f (1) = 3 and f (2) = 4. Let g(3) = α, g(4) = β and g(5) = β. Then h(1) = g(3) = α and h(2) = g(4) = β. So, h is one-to-one (since h maps each element of A to a different element of C), but g is not (since g(3) = g(5) but 3 6 = 5).

  1. No! An injective function f from an infinite set to itself is not necessarily surjective. Consider f : N → N defined by f (n) = 2n. This function is injective since f (n 1 ) = f (n 2 ) implies that 2 n 1 = 2n 2 , which implies that n 1 = n 2. But f is not surjective since there is no n in N such that f (n) = 5, for example. (NOTE: If A is finite and f : A → A is injective, then f must also be surjective.)
  2. Proof: Since d 1 = gcd(a, c) and d 2 = gcd(b, c), there exist integers m 1 , n 1 , m 2 , and n 2 such that m 1 a + n 1 c = d 1 and m 2 b + n 2 c = d 2. Then

d 1 d 2 = (m 1 a + n 1 c)(m 2 b + n 2 c) = m 1 m 2 ab + n 1 m 2 bc + m 1 n 2 ac + n 1 n 2 c^2.

If c|ab, then c divides every term on the right-hand side of this equation and, hence, c|d 1 d 2. 

  1. If a|b, then there exists an integer k such that b = ak. If b|a, then there exists an integer k′ such that a = bk′. Combining these two equations gives: a = bk′^ = akk′. Since a 6 = 0, this means kk′^ = 1. The only integers that divide 1 are 1 and −1. Moreover, since kk′^ = 1, k and k′^ must have the same sign. That is, either k = k′^ = 1 (in which case, a = b) or k = k′^ = − 1 (in which case, a = −b). So, |a| = |b|. 
  2. First, find a particular solution using the Euclidean algorithm or by inspection. One such solution is: 8(−25) + 10(25) = 50.

If (x, y) is another integral solution, then x = −25 + x 0 and y = 25 + y 0 for some integers x 0 and y 0. Since (x, y) is a solution of 8x + 10y = 50, we have:

50 = 8(−25 + x 0 ) + 10(25 + y 0 ) = 8(−25) + 8x 0 + 10(25) + 10y 0.

This simplifies to 0 = 8x 0 + 10y 0. We can divide both sides by gcd(8, 10) (which is 2) to get 4 x 0 + 5y 0 = 0, which means 4x 0 = − 5 y 0. Since 4 divides the left-hand side of this equation, 4 must also divide the right. Since 4 and 5 are relatively prime, 4| − 5 y 0 implies that 4|y 0. So, y 0 is a multiple of 4. That is, there exists an integer k such that y 0 = 4k. Then 4x 0 = −5(4k). We can divide both sides of this equation by 4 to get x 0 = − 5 k.

We’ve shown that any integer solution of 8x + 10y = 50 is of the form (− 25 − 5 k, 25 + 4k) for some integer k. Moreover, for any integer k, the pair (− 25 − 5 k, 25 + 4k) is a solution of 8 x + 10y = 50. Thus, the set of integer solutions of 8x + 10y = 50 is

{(− 25 − 5 k, 25 + 4k) : k ∈ Z}.