Let $f$ be defined as follows.
$$ f(n) := \begin{cases} n+3 & \text {if $n$ is odd,} \\ \frac{n}{2} & \text {if $n$ is even.} \end{cases}$$
If we start at $n=15$, we get the following sequence by successive applications of $f$:
15,18,9,12,6,3,6,3,6…
I found the two following cycles:
3,6,3,6,3,6…
and
1,4,2,1,4,2…
Is there any other cycle?
Thank you so much!
When you successively apply $f$ to a value, it must be divided by $2$ at least one step out of two (because when you add $3$, you get an even number). Let $n$ be an odd number strictly greater than $3$. Then $f^2(n) = \frac{n+3}{2} < n$. We continue to apply $f$ until we get an other odd number, which is then strictly less than $n$.
So every number leads to an odd number less than or equal to $3$. The two possibilities are $1$ and $3$, leading to the two only cycles.