Back to Brain Tonic
Number TheoryeasyBT-001
#1 Locker Mischief
Initially, there are 100 closed lockers lined up in a row. A series of 100 people each take turns performing actions on the lockers:
- Person 1 opens every locker
- Person 2 toggles (opens if closed, closes if open) every 2nd locker starting from the 2nd
- Person 3 toggles every 3rd locker starting from the 3rd
- ...
- Person N toggles every Nth locker starting from the Nth
After the 100th person finishes, what is the 3rd largest locker number that remains open?