The problem is a generalization of this uyhip riddle. A similar puzzle has also been discussed in Puzzle Toad.
A prisoner has been trapped in a dark room, and he can only escape if he could successfully solve out the following puzzle:
In front of the prisoner is a large circular table with $n$ poker cards equidistantly placed along the perimeter of the table. He can feel the cards but cannot tell if each one of them is face-up or face-down due to the darkness. The prisoner is allowed to turn over any subset of the cards each time. Once he finishes doing so, a check will be made and the prisoner will be freed if all cards are face-up.
Unfortunately, the table will be rotated by a supervisor after a fixed number of tries. After each rotation, the prisoner will be unable to recognize the previous position of any of the cards. Furthermore, the supervisor knows exactly the prisoner's strategy and will always rotate the table in a way to hinder the prisoner's success.
Now we let $\varphi(n)$ be the least number such that the prisoner may come up with a winning strategy in finitely many times when table is rotated after every $\varphi(n)$ tries.
It has been already proved that $$\varphi(2^k)=1,\qquad \forall k\textrm{ non-negative integer}.$$
It is also easy to show $\varphi(3)\leq 3$. And I believe we actually have $\varphi(3)= 3$. Here goes the questions:
Is it true that $\varphi(5)\leq 5$? In general, do we have $\varphi(n)\leq n$?
Is it true that $\varphi(2^k m)=\varphi(m)$, where $m$ is odd?
Do we have an explicit formula for $\varphi(n)$?
Any help would be appreciated.