Let $f:\mathbb Z\rightarrow\mathbb Z$ be the function defined by $$f(3n)=2n$$ $$f(3n+1)=4n+1$$ $$f(3n+2)=4n+3$$ Is there any $x\in\mathbb Z$ such that the sequence $x,\,f(x),\,f(f(x)),\,f(f(f(x)),\ldots$ is not periodic?
This question is loosely inspired by an earlier question of mine and I strongly suspect that the answer is "yes" because of similar reasons to the heuristics that suggest the Collatz conjecture to be true: in any interval of $3^n$ consecutive integers and any sequence of $n$ residues mod $3$, there is exactly one $x$ whose trajectory begins with that sequence of mod $3$ residues. However, randomly choosing to multiply by $\frac{2}3$ a third of the time or $\frac{4}3$ otherwise would typically increase the logarithm of a value on iteration - suggesting unbounded trajectories regardless of bijectivity.
If one changed the third line of the definition to read $8n+3$ instead of $4n+3$, the answer would be "yes" because the function would remain injective, but not be surjective - and any starting value not in the image would have a divergent trajectory. However, the given function is bijective - which seems like the next most difficult case - and which I have no clue how to approach (although it seems like, for instance, $x=10$ likely has this property - it has no cycle in its first million terms, at least).
8 doesn't appear periodic. A few terms of the sequence:
8, 11, 15, 10, 13, 17, 23, 31, 41, 55, ... (My implementation reached a few thousand digits before I decided to spare my laptop.)
It's impossible for a number to enter an orbit it's not a part of, since the function is bijective. So any non-periodic sequence needs to diverge. But these types of results are typically unproven in the case of Collatz-like functions.