Let $f\colon A\to B$ and $g\colon B\to C$ be functions such that $g\circ f$ is surjective:
- Must $f$ be surjective, either prove or give a counterexample.
- Must $g$ be surjective, either prove or give a counterexample.
What I have so far: Let A = {1, 2} B = {3,4} and C = {5}
f : A --> B is defined as f(1) = 3 and f(2) = 3
g : B --> C is defined as g(3) = 5 and g(4) = 5 Since the entire codomain of C is covered, g o f is surjective but f is not surjective as it does not cover the entire codomain of B.