How to construct a bijection between $\{0,1,\dots,2017\}×\Bbb N$ and $\Bbb N$?
I've tried to come up with different combinations, but no luck. Any ideas how to solve this problem?
How to construct a bijection between $\{0,1,\dots,2017\}×\Bbb N$ and $\Bbb N$?
I've tried to come up with different combinations, but no luck. Any ideas how to solve this problem?
Perhaps the simplest such map $f:\{0,1,\dots,2017\}×\Bbb N\to\Bbb N$ is defined by $$f((a,b))=2018b+a$$ (Assuming $0\in\Bbb N$. If not, then use $2018b+a-2017$ instead.)
You can simply map (0,1) to 1, (1,1) to 2.. (2017,1) to 2017 and then (0,2) to 2018 and so on..
Always try to think on a smaller scale, like $f:\{0, 1, 2, 3\} \times \Bbb N \to \Bbb N$
Something like $f(x,y)=x+4y-3$ would work. Now you can think on a larger scale.