Monday, September 14, 2026

Locker Problem

 

I found that if n has an even number of factors than the nth locker would be open at the end and if not, it would be closed at the end. I did this by trying trial and error for the first 10 lockers and 10 people. Then, by looking at that I realized that the lockers changed states when the locker number mod the person number was 0 so it changed when the locker number is divisible by the person number. When it changed an even number of times it would end up open. When it changed an odd number of times it would end up even. So, it is dependent on whether the locker has an even or odd number of factors. I added a picture of what I wrote as I was thinking through this.

1 comment:

  1. I really liked seeing your handwritten notes and how you connected the modulo operation directly to factor counts. When you look at the lockers that end up with an odd number of factors versus an even number, what do you notice about the specific locker numbers in each group?

    ReplyDelete

Helpful Link Review

This resource is a bunch of games and puzzles that are mathematical in nature that you can purchase physical versions of. Many of the games ...