1

I have to construct a bijection between $\Bbb N$ and $\Bbb S_+$ ,where $\Bbb S_+$ is the set of strictly growing finite rows: $\Bbb S_+ = \{ (n_0,n_1...n_k) \;|\; k \in \Bbb N,n_i \in \Bbb N, n_0 <n_1<n_2<...<n_k\}$ and $\Bbb N$ are the natural numbers.

I thought that if I represent the rows via numbers in binary : 43 = 101011 when I have 1 i will write the index as an element in my row, 43 ->101011 -> 0<1<3<5 this means that if I use the function $f(x)=x$ which is a bijection I compare the natural numbers with a row. Does this work?

Also how do I put this in a more formal way?

2 Answers2

1

Your approach works fine. A nice way to describe it is $$f: \Bbb S_+ \to \Bbb N\\s\to \sum_{i \in s}2^{i}$$ This assumes $0 \in \Bbb N$ as it appears in your example and assumes that you allow the empty sequence, which will be mapped to $0$.

Ross Millikan
  • 383,099
0

We may assume ${\Bbb N}=\{1,2,3,...\}$. There is a natural bijection between $S_+$ and ${\Bbb N}^{k+1}$ given by: $$ \phi (n_0,n_1,...,n_k) = (n_0, n_1-n_0,...,n_k-n_{k-1}).$$ Compose this with a bijection between ${\Bbb N}^{k+1}$ and ${\Bbb N}$ and you are done. The latter you may construct first between ${\Bbb N}^2$ and ${\Bbb N}$ (zig-zag-path) and then use induction in $k$.

H. H. Rugh
  • 35,992