I know this question was answered before. I'd like to refer @Asaf_Karagila's answer.
He defined the following function:
$$g(k)=\begin{cases}\frac k2 & k\text{ is even}\\1+\sum_{m\leq k}f_m(k) &\text{otherwise}\end{cases}$$
How can you tell that $g(k)$ is surjective?
When $k$ is odd, $g(k)$ returns $1 + $ the sum of all $f_m(k)$ where $m\le k$. What is the meaning of that and how can you even tell that $f_m(k)$ is defined?
for example, it's a possiblity that $f_m$ domain's is $\mathbb{N}_{odd}$ while $k$ is even.