combinatoricsprobabilityexpected valuepermutationsderangements
Seven students are each assigned a distinct locker labeled through . A teacher distributes keys as a derangement (no student receives their own key). Every minute, each student uses their current key to open the corresponding locker and takes the key found inside. After exactly minutes, let be the number of students holding the key to their own locker. If in lowest terms, find .
