There are $16$ people around a round table for a meeting. Every hour there is a new session. In each session, the people whose neighbors in the previous session are both sitting or standing will sit, and the people whose neighbors were in opposite state (one sits, one stands) will stand up.
how many sessions do we need to guarantee that everyone will be sitting at the table?
I tried for the case with $4$ people. The answer seems to be $3$. but I cannot generalize to $16$ people...
The important thing to realize is that each person's position on the next round is the XOR of the neighbors on this round. Because of the linearity of XOR, the result of having several people standing is the XOR of the results of having each of them standing. If you find how many rounds it takes with just one person standing in the first round, it will finish in at most that many rounds from any position.
I then made a spreadsheet to do the calculations. For $16$ people it takes $9$ rounds. I would guess the general rule is that for $2^n$ people it takes $2^{n-1}+1$ but I haven't proven it.