(a) Show that the set of recursive bijections from $\mathbb{N}$ onto $\mathbb{N}$ is a subgroup of the group of permutations of $\mathbb{N}$.
The remainder of this exercise is devoted to showing that this assertion is false if we replace recursive by primitive recursive.
(b) Let $\phi$ be a (total) function of one variable that is recursive but not primitive recursive; let $e$ be an index for a machine $\mathcal{M}$ that computes $\phi$. Consider the function $T$ which associates, with $x$, the time required by $\mathcal{M}$ to compute $\phi(x) ;$ more precisely, $\left.T(x)=\mu t\left[(e, t, x) \in B^{1}\right)\right]$.
Show that if $f$ is a function that satisfies $f(x) \geq T(x)$ for all $x \in \mathbb{N}$, then $f$ is not primitive recursive; also show that the graph $G$ of $T$ is primitive recursive.
(c) We set
$$
g(x)=\sup \{T(y): y \leq x\}+2 x .
$$
Show that $g$ is a strictly increasing recursive function and that it is not primitive recursive. Show that the graph $G_{1}$ and the range $I$ of $g$ are primitive recursive sets.
(d) Show that there is a unique strictly increasing primitive recursive function $g^{\prime}$ whose range is the complement of $I$.
(e) Define the function $h$ by
$$
\begin{aligned}
h(2 x) &=g(x) \\
h(2 x+1) &=g^{\prime}(x)
\end{aligned}
$$
where $g$ and $g^{\prime}$ are the functions defined in (c) and (d) above. Show that $h$ is a bijective recursive function that is not primitive recursive. Show that its inverse, $h^{-1}$, is primitive recursive.