Let
\(m,n\in\mathbb{N}\cup\{0\}\text{.}\) A North-East lattice path from
\((0,0)\) to
\((m,n)\) is path in the plane from
\((0,0)\) to
\((m,n)\) consisting only steps either one unit North or one unit East. Note that every lattice path from
\((0,0)\) to
\((m,n)\) consists of a total of
\(m+n\) steps.
FigureΒ 9.1 shows a North-East lattice path from
\((0,0)\) to
\((4,3)\text{.}\) Let
\(\mathcal{L}_{m,n}\) denote the set of North-East paths from
\((0,0)\) to
\((m,n)\text{.}\) For example, the North-East lattice path given in
FigureΒ 9.1 is an element of
\(\mathcal{L}_{4,3}\text{.}\) A binary string of length
\(k\) is an ordered list of consisting of
\(k\) entries where each entry is either 0 or 1. For example,
\(0101100\) and
\(0101001\) are two different binary strings of length 7. Let
\(\mathcal{S}_k\) denote the set of binary strings of length
\(k\text{.}\) For example,
\(\mathcal{S}_3=\{000, 100,010,001,110,101,011,111\}\text{.}\) We claim that there is a bijection between
\(\mathcal{L}_{m,n}\) and
\(\mathcal{S}_{m+n}\text{.}\) One such bijection is given by mapping a lattice path to the string that results by assigning each East step to 0 and each North step to 1 as we travel the path from
\((0,0)\) to
\((m,n)\text{.}\) Using this construction, the lattice path in
FigureΒ 9.1 would get mapped to the binary string
\(0101100\text{.}\) Since no two lattice paths will map to the same string, our mapping is injective. Given a string in
\(\mathcal{S}_{m+n}\text{,}\) it is easy to find the lattice path in
\(\mathcal{L}_{m,n}\) that maps to it, and so our function is also surjective. Thus, our mapping is a bijection between
\(\mathcal{L}_{m,n}\) and
\(\mathcal{S}_{m+n}\text{.}\) We have shown that
\(\card(\mathcal{L}_{m,n})=\card(\mathcal{S}_{m+n})\text{.}\)