Define a function f: Z -> Z by f(a) = r, the remainder after dividing a by 5. For example f(2)=2 and f(13)=3
a.) Determine the domain of f.
b.) Determine the range of f.
c.) Is f one-to-one?
d.) Is f onto?
Define a function f: Z -> Z by f(a) = r, the remainder after dividing a by 5. For example f(2)=2 and f(13)=3
a.) Determine the domain of f.
b.) Determine the range of f.
c.) Is f one-to-one?
d.) Is f onto?
a) The domain is $\mathbb Z$, as seen in the definition of the function.
b) The term "range" is ambiguous. If you are talking about the codomain, then it is $\mathbb Z$ as per the definition of the function. If you are talking about the image, then it is is $\{0,1,2,3,4\}$.
c) No, it is many to one. There are multiple (infinite, actually) values of the domain (preimages) for which each element of the image corresponds to. Thus it is not injective (one to one).
d) No, as the image of the function, which is $\{0,1,2,3,4\}$, is not the same as the codomain of the function, which is $\mathbb Z$. Thus this function is not surjective (onto).