1.2 The Collatz Map
The Collatz map \(C: \mathbb {N} \to \mathbb {N}\) is defined by
Lagarias reviewed the history of the map and the conjecture in [ 4 ] .
For any \(k \in \mathbb {N}\), the \(k\)-fold iteration of the Collatz map \(C^k: \mathbb {N} \to \mathbb {N}\) is defined recursively by
and
For all \(k, n \in \mathbb {N}\), we have \(C^{k+1}(n) = C(C^k(n))\).
We proceed by induction on \(k \in \mathbb {N}\). For the base case \(k=0\), \(C^1(n) = C(C^0(n)) = C(n)\) by definition. For the inductive step \(k+1\), we have:
\(C(0) = 0\).
Trivial by definition.
For all \(k \in \mathbb {N}\), \(C^k(0) = 0\).
By induction on \(k\).
If \(n \ge 1\), then \(C(n) \ge 1\).
If \(n\) is even, then \(n \ge 2\), so \(n/2 \ge 1\). If \(n\) is odd, then \(3n+1 \ge 4 \ge 1\).
If \(n \ge 1\), then for all \(k \in \mathbb {N}\), \(C^k(n) \ge 1\).
By induction on \(k\), using Lemma 23.
For all \(k \ge 1\), \(C(2^k) = 2^{k-1}\).
Since \(2^k\) is even for \(k \ge 1\), \(C(2^k) = 2^k/2 = 2^{k-1}\).
For any \(k, m \in \mathbb {N}\), \(C^k(2^k \cdot m) = m\).
We proceed by induction on \(k \in \mathbb {N}\). The base case \(k=0\) is trivial as \(C^0(m) = m\). For the inductive step \(k+1\), we have
For all \(l \in \mathbb {N}\), \(C^l(2^l) = 1\).
By induction on \(l\), using Lemma 25.
For all \(k {\lt} l\), \(C^k(2^l) \neq 1\).
By induction on \(k\), using Lemma 25.
For all \(l \in \mathbb {N}\), there exists \(n \in \mathbb {N}\) such that \(C^l(n) = 1\) and for all \(k {\lt} l\), \(C^k(n) \neq 1\).
For all \(a, b, n \in \mathbb {N}\), \(C^{a+b}(n) = C^a(C^b(n))\).
By induction on \(b\).
If \(C^k(n) = n\), then for all \(m \in \mathbb {N}\), \(C^{m \cdot k}(n) = n\).
By induction on \(m\), using Lemma 30.
If \(n \in \{ 1, 2, 4\} \), then for all \(i \in \mathbb {N}\), \(C^i(n) \in \{ 1, 2, 4\} \).
By induction on \(i\), checking the cases \(n=1, 2, 4\) for \(C(n)\).
For all \(i \in \mathbb {N}\), \(C^i(1) \le 4\).
Since \(1 \in \{ 1, 2, 4\} \), we have \(C^i(1) \in \{ 1, 2, 4\} \) by Lemma 32, so \(C^i(1) \le 4\).
The Collatz map \(C(n)\) has the closed form
for all \(n \in \mathbb {N}\).
We split into cases based on the parity of \(n\). If \(n\) is even, then \((-1)^n = 1\), so
If \(n\) is odd, then \((-1)^n = -1\), so
In both cases, the formula yields \(C(n)\).