For each of the following sets, determine if the given operation is a binary operation or not. Explain your answers.
(i) With A a non-empty set, the set of all functions $f : A \to A$ which are surjective (or onto), with composition.
(ii) With A a non-empty set, the set of all functions $f : A \to A$ which are injective (or one-to-one), with composition.
I'm kind of lost here out of the gate i belive we are talking about $F_A$ which i thought was the set of all functions that map $A \to A$
For i) i think we restrict $F_A$ to contain only functions that map from A onto all of A with the binary operation being composition of theses functions ( where we can think of each onto function as an element in $F_A$ ) since every function is onto every composition will be onto so he binary operation of composition should be well defined?
For ii) i think it is a binary operation cause each composition will always map all the values it is given back to the set A. ( Even if the composition doesn't yield all of A we should never get anything not in A out of the composition.)