This is a number theory problem posed.
Let $k\in\mathbb{N}$ such that $3\nmid k-2$. Show that there is an $m\in\mathbb{N}$, such that $x$ is an odd number, where
$$ x = \left\{ \begin{array}{ll} \dfrac{(2k-1)2^{2m}-1}{9} & \quad 3 \ | \ k-1\\ \dfrac{(2k-1)2^{2m-1}-1}{9} & \quad 3 \ | \ k \end{array} \right. $$
I'm not sure if I'm understanding your question correctly, so correct me if I'm wrong.
We have 6 cases total: For $3 \mid k - 1$, we have $k \equiv 1 \pmod{9}$, $k \equiv 4 \pmod{9}$ and $k \equiv 7 \pmod{9}$. For $3 \mid k$, we have $k \equiv 0 \pmod{9}$, $k \equiv 3 \pmod{9}$ and $k \equiv 6 \pmod{9}$.
(Case 1) If $k \equiv 1 \pmod{9}$, then we choose $m = 3$, and we have: $$ (2k - 1)2^{2m} - 1 = 128k - 65 \equiv 63 \equiv 0 \pmod{9} $$ (Case 2) If $k \equiv 4 \pmod{9}$, then we choose $m = 1$, and we have: $$ (2k - 1)2^{2m} - 1 = 8k - 5 \equiv 27 \equiv 0 \pmod{9} $$ (Case 3) If $k \equiv 7 \pmod{9}$, then we choose $m = 2$, and we have: $$ (2k - 1)2^{2m} - 1 = 32k - 17 \equiv 207 \equiv 0 \pmod{9} $$ (Case 4) If $k \equiv 0 \pmod{9}$, then we choose $m = 2$, and we have: $$ (2k - 1)2^{2m-1} - 1 = 16k - 9 \equiv -9 \equiv 0 \pmod{9} $$ (Case 5) If $k \equiv 3 \pmod{9}$, then we choose $m = 1$, and we have: $$ (2k - 1)2^{2m-1} - 1 = 4k - 3 \equiv 9 \equiv 0 \pmod{9} $$ (Case 6) If $k \equiv 6 \pmod{9}$, then we choose $m = 3$, and we have: $$ (2k - 1)2^{2m-1} - 1 = 64k - 33 \equiv 351 \equiv 0 \pmod{9} $$