The answer is $$\small n=2,\frac{3^{2m}-3}{2},\frac{3^{2m}+1}{2},\frac{3^{2m}+5}{2},\cdots,\frac{3^{2m+1}-5}{2},\frac{3^{2m+1}-3}{2},\frac{3^{2m+1}+1}{2},\frac{3^{2m+1}+5}{2},\cdots ,\frac{3^{2m+2}-5}{2}$$
where $m\ge 1\in\mathbb Z$.
Let us prove this by induction on $m$.
The base case where $m=1$ is easy to check.
Suppose that the first player has a winning strategy for
$$\small n=\frac{3^{2m}-3}{2},\frac{3^{2m}+1}{2},\frac{3^{2m}+5}{2},\cdots,\frac{3^{2m+1}-5}{2},\frac{3^{2m+1}-3}{2},\frac{3^{2m+1}+1}{2},\frac{3^{2m+1}+5}{2},\cdots ,\frac{3^{2m+2}-5}{2}$$
and that the first player does not have a winning strategy for
$$\small n=\frac{3^{2m}-1}{2},\frac{3^{2m}+3}{2},\frac{3^{2m}+7}{2},\cdots,\frac{3^{2m+1}-7}{2},\frac{3^{2m+1}-1}{2},\frac{3^{2m+1}+3}{2},\frac{3^{2m+1}+7}{2},\cdots ,\frac{3^{2m+2}-7}{2}$$
Now, the first player has a winning strategy for $n=\frac{3^{2m+2}-3}{2}$ choosing to divide by $3$ to get $\frac{3^{2m+1}-1}{2}$.
So, the first player does not have a winning strategy for $n=\frac{3^{2m+2}-1}{2}$, which is not divisible by $3$, since subtracting $1$ gives $\frac{3^{2m+2}-3}{2}$.
So, the first player has a winning strategy for $n=\frac{3^{2m+2}+1}{2}$ by choosing to subtract $1$.
The first player does not have a winning strategy for $n=\frac{3^{2m+2}+3}{2}$ since subtracting $1$ gives $\frac{3^{2m+2}+1}{2}$ and dividing by $3$ gives $\frac{3^{2m+1}+1}{2}$.
Doing similarly, we have that the first player has a winning strategy for
$$\small n=\frac{3^{2m+2}-3}{2},\frac{3^{2m+2}+1}{2},\frac{3^{2m+2}+5}{2},\cdots,\frac{3^{2m+3}-5}{2},\frac{3^{2m+3}-3}{2},\frac{3^{2m+3}+1}{2},\frac{3^{2m+3}+5}{2},\cdots ,\frac{3^{2m+4}-5}{2}$$
and that the first player does not have a winning strategy for
$$\small n=\frac{3^{2m+2}-1}{2},\frac{3^{2m+2}+3}{2},\frac{3^{2m+2}+7}{2},\cdots,\frac{3^{2m+3}-7}{2},\frac{3^{2m+3}-1}{2},\frac{3^{2m+3}+3}{2},\frac{3^{2m+3}+7}{2},\cdots ,\frac{3^{2m+4}-7}{2}$$