Nicholas G. Vlamis
mathematician | nvlamis@gc.cuny.edu

Homework 1
MATH 301/601
Test #1 is on Tuesday, February 18
 


Instructions. Read the Homework Guide to make sure you understand how to successfully complete the assignment. Click here for a pdf version of the homework.


*Exercise 1.
  1. (a)

    Give an example of a function that is injective but not surjective.

  2. (b)

    Give an example of a function that is surjective but not injective.

  3. (c)

    Give an example of a bijection from .


Exercise 2.

Let f:AB and g:BC. Prove the following statements.

  1. (a)

    If f and g are both injective, then gf is injective.

  2. (b)

    If gf is surjective, then g is surjective.

  3. (c)

    If gf is injective and f is onto, then g is injective.


Exercise 3.

Let f:XY be a function, let A1,A2X, and let B1,B2Y.

  1. (a)

    Prove that f(A1A2)=f(A1)f(A2).

  2. (b)

    Prove that f(A1A2)f(A1)f(A2), and then give an example where f(A1A2)f(A1)f(A2).

  3. (c)

    Prove that f1(B1B2)=f1(B1)f1(B2), where f1(B)={xX:f(x)B}.

  4. (d)

    Prove that f1(B1B2)=f1(B2)f1(B2).


*Exercise 4.

Let S such that 1S and n+1S whenever nS. Prove that S=. (Hint: Use the well-ordering principle.)


**Exercise 5.

Define the ordering < on × by (a,b)<(c,d) if a<c or a=c and b<d (this is called the lexicographical ordering). Prove that (×,<) is well ordered, that is, show that given a nonempty subset S of × there exists sS such that s<s for all sS{s}.
Aside: as a set with no additional structure, × is equivalent to , as there is a bijection between them (can you find it?); however, as ordered sets, these sets are not equivalent (meaning, there is no order-preserving bijection between them), as bounded sets need not be finite in the lexicographical ordering. Various notions of equivalence are very important in mathematics.


Exercise 6.

Let a,b,c,m,n. Prove that if ab and ac, then a(mb+nc).



Exercise 7.

Let a,b. Prove that if ab and ba, then either a=b or a=b.


*Exercise 8.

Let n. Prove that the remainder obtained from dividing n2 by 4 is either 0 or 1.


Exercise 9.

Use the Euclidean algorithm to compute the following greatest common divisors:

  1. (a)

    gcd(42,55)

  2. (b)

    gcd(14,30)

  3. (c)

    gcd(234,165)

  4. (d)

    gcd(1739,9923)


*Exercise 10.

Let a,b{0}. Prove that if there exists s,t such that as+bt=1, then gcd(a,b)=1.


Exercise 11.

Let a and b be nonzero integers, and let d=gcd(a,b). Prove that an integer c is a linear combination of a and b if and only if dc.


Definition. Two nonzero integers are relatively prime if their greatest common divisor is one.


Exercise 12.

Let a and b be relatively prime integers. Prove that if c such that abc, then ac.


Exercise 13.

Let p be prime. Prove that if a1,a2,,an such that pa1a2an, then there exists k{1,2,,n} such that pak. (Hint: Use induction, with Euclid’s lemma as the base case.)


Definition. Given two nonzero integers a and b, an integer c is a common multiple of a and b if ac and bc. The least common multiple of a and b, denoted lcm(a,b), is the smallest positive common multiple of a and b.


*Exercise 14.

Let a and b be nonzero integers.

  1. (1)

    Prove that the least common multiple of a and b exists.

  2. (2)

    Prove that if k is a common multiple of a and b, then lcm(a,b) divides k. (Hint: divide k by lcm(a,b) using the division algorithm.)


**Exercise 15.

Let a and b be nonzero integers.

  1. (1)

    Prove that the product of lcm(a,b) and gcd(a,b) is equal to |ab|. (Hint: the product ab is divisible by d=gcd(a,b). Let m=|ab|/d. Now, let k be a common multiple of a and b. Write d as a linear combination in a and b, and use this to express the fraction k/m as an integer.)

  2. (2)

    Prove that lcm(a,b)=|ab| if and only if gcd(a,b)=1.


Exercise 16.

Let a{1}. Use induction to prove that

an1=(a1)k=0n1ak

for all n. (Note: you are inducting on n, not a.)


*Exercise 17.

Let p with p2. Prove that if 2p1 is prime, then p is prime. (Hint: you will find the previous exercise helpful.)