Consider a function $f:\mathbb{N} \rightarrow \mathbb{N}$ defined as $$f(n)=n+1$$ if $n$ is composite or 2. $$f(n)=\frac{n-1}{2}$$ if $n$ is prime. Prove that for some finite $k$ $f^k(n)=1$, $\forall n\in \mathbb{N}$.
Can anyone help?
Consider a function $f:\mathbb{N} \rightarrow \mathbb{N}$ defined as $$f(n)=n+1$$ if $n$ is composite or 2. $$f(n)=\frac{n-1}{2}$$ if $n$ is prime. Prove that for some finite $k$ $f^k(n)=1$, $\forall n\in \mathbb{N}$.
Can anyone help?
Copyright © 2021 JogjaFile Inc.
I suspect that the question you are trying to ask is this:
If this is the question, then here is a hint: use the Bertrand-Chebyshev theorem.