Re-viewing some older fiddlings on more elementary aspects of the existence of "1-cycles" in the Collatz-problem I came at the following problem.
Let $N \gt 0$ denote the number of odd steps of an assumed "1-cycle", $\gamma = \log_2(3)$, then $S_N=\lceil N \cdot \gamma \rceil$,$B_N=\lceil N \cdot (\gamma-1) \rceil$.
Then from a well known formula for the existence of "1-cycles" (adapted to my notation) with length $N$ asking for (positive) integer $k$ in
$$k = {2^{B_N}-1\over 2^{S_N}-3^N} \tag 1$$
Now I write $3^N$ modular with base $2^{B_N}$ as $3^N = m \cdot 2^{B_N} - r_N$ where $r_N \in \{0 \ldots (2^{B_N}-1)\}$.
This gives
$$k(2^{S_N}-m \cdot 2^{B_N} + r_N) = 2^{B_N}-1 \\
k\cdot 2^{B_N}(2^N-m) +k\cdot r_N = 2^{B_N}-1 \tag {2a}$$
Obviously in the lhs the term $2^N-m$ must be zero for a solution at all; (of course this asks for the analysis of the number of leading ones in the binary expansion of $3^N$ but this is another route). What I found more impressing - and perhaps easier to prove - is the observation by the subsequent more explicite requirement,
$$k\cdot r_N = 2^{B_N}-1 \tag {2b}$$
that the residue $r_N$ in $3^N = m \cdot 2^{B_N} - r_N $ must be a divisor of $2^{B_n}-1$ and that this reduces the set of possible solutions -seemingly- for $N$ to a nice small set - a property, which might have been found already elsewhere.
One can as well write $r_N= (-3^N) \bmod 2^{B_N}$, so the formula in the subject line came to existence.
For this I found the amazing heuristic that for $N$ up to some $10000$ the residue $r_N \;\mid \; 2^{B_N} - 1 $ or in the notation of the subject line $$ (2^{B_N} - 1) \bmod \left( -3^N \bmod 2^{B_N}\right) =0 \implies N \in \{1,2,3, 4,8,12\} \tag 3$$ or, what caught my amazement, a bit sloppy: $ N \in \{1,2,3\} \times \{1,4\}$ .
Thus my question: is this known, that the set of solutions of eq (3) is a) finite and b) is just the set of the found small solutions?
P.S.: I'd propose, in following comments or answers, to use simply $S$ and $B$ -notation instead of the full $S_N$ and $B_N$ - to simplify reading & writing arguments. I used that explicite notation here only to avoid any initial misunderstanding
Note: this problem is "weaker" than the question of existence of the "1"-cycle, and so might not need the tools of transcendental number theory which is employed in the Steiner/Simons-proofs
The following picture shows the primefactorization of $2^B-1$ in contrast to the values of $3^N \pmod {2^B}$, where for each $2^B$ the sequence of $3^k \; k=1..20$ is documented. The yellow marked entries show the solutions $N\in\{1,2,3\} \cup \{4,8,12\}$. Interesting that the periodicity for each $2^B$ over consecutive $3^k$ seems to be just $2^{B-2}$. Is there some hint in this?