Fix some odd $ n $. For which values of $ m $, $ 1\leq m \leq n $, is $ 2^m $ congruent to $ 1 $ mod $ n $?
For $ n=3 $ the solutions are $ 2^2=4 \equiv 1 $
For $ n=5 $ the solutions are $ 2^4=16 \equiv 1 $
For $ n=7 $ the solutions are $ 2^3=8 \equiv 1 $ and $ 2^6=64 \equiv 1 $
EDIT: I figured number theory part of MSE was especially brutal but even I didn't expect this many downvotes lol. Here is my motivation in an attempt to stave off the closing of this question: There is an action of the symmetric group $ S_n $ on the space $ 2^n $ of bit strings of length $ n $. For any subgroup $ G $ of $ S_n $ which contains an $ n $ cycle then the orbits of the action of $ G $ on $ 2^n $ should mostly have size a multiple of $ n $, except for the orbits of the all 0 bit string and the all 1 bit string. I am interesting in subspaces of $ \mathbb{F}_2^n $ which are invariant under the action of $ G $. I am interested in the possible dimension of such subspaces. For some reasons, I am not interested in subspaces that contain the all 1 bit string. Thus I am interested in a vector subspace of $ \mathbb{F}_2^n $ that is the union of the all 0 bit string with a bunch of orbits of the $ G $ action, all of which have size divisible by $ n $ since I am assuming $ G $ contains an $ n $ cycle. So the dimensions for such a nontrivial invariant subspace are the $ k $ such that $ 1 \leq k \leq n $ and $ 2^k $ is congruent to $ 1 $ mod $ n $.