Nicholas G. Vlamis

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:A→B and g:B→C. Prove the following statements.

  1. (a)

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

  2. (b)

    If g∘f is surjective, then g is surjective.

  3. (c)

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


Exercise 3.

Let f:X→Y be a function, let A1,A2⊂X, and let B1,B2⊂Y.

  1. (a)

    Prove that f⁢(A1∪A2)=f⁢(A1)∪f⁢(A2).

  2. (b)

    Prove that f⁢(A1∩A2)⊂f⁢(A1)∩f⁢(A2), and then give an example where f⁢(A1∩A2)≠f⁢(A1)∩f⁢(A2).

  3. (c)

    Prove that f−1⁢(B1∪B2)=f−1⁢(B1)∪f−1⁢(B2), where f−1⁢(B)={x∈X:f⁢(x)∈B}.

  4. (d)

    Prove that f−1⁢(B1∩B2)=f−1⁢(B2)∩f−1⁢(B2).


*Exercise 4.

Let S⊂ℕ such that 1∈S and n+1∈S whenever n∈S. 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 s∈S such that s<s′ for all s′∈S∖{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 a∣b and a∣c, then a∣(m⁢b+n⁢c).



Exercise 7.

Let a,b∈ℤ. Prove that if a∣b and b∣a, 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 a⁢s+b⁢t=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 d∣c.


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 a∣b⁢c, then a∣c.


Exercise 13.

Let p∈ℕ be prime. Prove that if a1,a2,…,an∈ℤ such that p∣a1⁢a2⁢⋯⁢an, then there exists k∈{1,2,…,n} such that p∣ak. (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 a∣c and b∣c. 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 |a⁢b|. (Hint: the product a⁢b is divisible by d=gcd⁢(a,b). Let m=|a⁢b|/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)=|a⁢b| if and only if gcd⁢(a,b)=1.


Exercise 16.

Let a∈ℤ∖{1}. Use induction to prove that

an−1=(a−1)⁢∑k=0n−1ak

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


*Exercise 17.

Let p∈ℕ with p≥2. Prove that if 2p−1 is prime, then p is prime. (Hint: you will find the previous exercise helpful.)