- #1
ver_mathstats
- 260
- 21
Homework Statement
Allow f:ℤ→ℤ be defined by, for all n∈ℤ
f(n) = {n-1 if n is even, n+5 if n is odd
Prove that ran(f) = ℤ
Homework Equations
The Attempt at a Solution
I am unsure of how exactly to prove this due to the fact now I am working with a piecewise function.
Here is what I have so far:
We must demonstrate that ran(f) ⊆ ℤ and that ℤ ⊆ ran(f).
I know that when n is odd, f(n) is even and that when n is even, f(n) is odd. And now I know I must show that a certain integer is in the range. And I know that if m is odd, m + 1 will be even and that when m is even, m - 5 will be odd, now I do not know where to go from here.
Thank you.
Last edited: