LibraryInterview questions
Ten numbered tickets are shuffled uniformly at random and laid out in a row, so ticket ends up in position . Starting from any position, follow the chain: go to the position that its ticket points at, then again, and again. The chain must eventually come back to where it started, closing a loop.
The rest of the question is for members
Work out very small shuffles by hand, then ask how the expected count of loops changes each time another item joins the shuffle.
Cycles have no natural index, so define an indicator per element instead: element contributes if it is the smallest member of its own cycle. That event has probability by symmetry, and linearity finishes it.
You have the opening of the question, a hint and the idea. It derives the expected number of loops for the given shuffle and for any size, and says how that grows as the shuffle gets larger.
The full question and its solution are part of Thuztra Learn membership, which is a paid subscription. Install the app to read them: