Consider a deck of $52$ cards. They are shuffled into two stacks, the first $26$ and the last $26$. Then, we alternate by putting one card from the last $26$ and one card from the first $26$. For instance, the order in the new deck is $27, 1, 28, 2, \dots$, assuming that we originally labelled the cards starting from $1$. This process continues until the original order is obtained again. How many shuffles will this require?
Let us associate the cards with labels $1, 2, 3, \dots$. Clearly, we have that card in position $k$ will move to position $$ (2k) \bmod 53. $$ Then we need only find the minimal integer $\ell$ such that $2^\ell \bmod 53 = 1$. I seem to have found that the solution is $\ell = 52$.
Is there a more clever way to find the solution to that equation other than just iterating through all possible values of $\ell$?