🔒 Locker Simulation 🔓

Student: 0
Open Lockers: 0
Closed Lockers: 0
Current Student: -

Each student toggles lockers at intervals based on their number. Student 1 toggles every locker, Student 2 toggles every 2nd locker, Student 3 toggles every 3rd locker, etc. Ex: Student 4 toggles lockers 4, 8, 12, 16... Watch as the students walk to their lockers and toggle them open or closed. The statistics above will update in real-time to show the current student and the count of open vs. closed lockers. Adjust the speed and number of students using the sliders to see how it affects the simulation. As you'll discover by the end, only lockers the only open lockers will be those that are 1, 2, 4, 9, 16, 25... PERFECT SQUARES!

Back to Home