Solve $y=4^nx+\frac{4^n-1}{3}$ for $n$, where
$n\in\mathbb{N_{\geq0}},$
$y\in2\mathbb{N}_{\geq0}+1$ and
$x\in2\mathbb{N}_{\geq0}+1\setminus(4\mathbb{N}_{\geq0}+1\setminus8\mathbb{N}_{\geq0}+1)$.
In clearer language the process is to start with some odd integer and subtract one and divide by $4$ repeatedly until you hit some number which would take you out of the odd integers if you continued further.
The question asks you to find for any $y$, the closed form for the number of steps $n$ which can be taken.
The end-point of any sequence corresponds with $n=0$ and here $x=y$. An example is the sequence $\{\ldots213,53,13,3\}$