I am trying to understand this exercise.
Define $S : \mathbb{Z}^+ \rightarrow \mathbb{Z}^+$ by the rule: For all integers $n$, $S(n) =$ the sum of the positive divisors of $n$.
a. Is $S$ one-to-one? The answer is no. Counterexample: $S(6) = 1 + 2 + 3 = 6$ and $S(11) = 1 + 11 = 12, so S(6) = S(11)$ but $6 \neq 11$. In this one I understand that I need to choose any positive integer and show that there are different sets of positive integers that when added together will both equal the same number. i.e. $12$ in this case. But, I am not sure what $S : \mathbb{Z}^+ \rightarrow \mathbb{Z}^+$ has to do with the answer.
b. Is $S$ onto? No. Counterexample: In order for there to be a positive integer $n$ such that $S(n) = 5$, $n$ would have to be $< 5$. But $S(1) = 1$, $S(2) = 3$, $S(3) = 4$, $S(4) = 7$. Hence there is no positive integer $n$ such that $S(n) = 5$.
I do not understand how $S(1) = 1$, $S(2) = 3$, $S(3) = 4$, $S(4) = 7$ is derived? Are they just arbitrarily chosen? At first I was thinking that maybe the numbers are being added together like this: $1 + 1 = 2$ for $S(2)$ and then $2 + 1 = 3$ for $S(3)$, but if that is the case then I would have $3 + 2 = 5$ but there is no $S(5)$.
Thanks for any help you can provide.
Tony
The function $S(n)$ takes a positive integer $n$ as input. According to your definition, the output is determined by summing all the positive divisors of $n$.
The integer $1$ has only $1$ as a divisor, so $S(1) = 1$.
The integer $2$ has both $1$ and $2$ as divisors, so $S(2) = 1 + 2 = 3$.
The integer $3$ has both $1$ and $3$ as divisors, so $S(3) = 1 + 3 = 4$.
The integer $4$ has $1$, $2$, and $4$ as divisors, so $S(4) = 1 + 2 + 4 = 7$.