Lockers Puzzle Hint 1

Please if you do this out by hand only do 10 and look for a pattern, this is how I did it. Although in hindsight, with a few minutes of thinking and it comes right out.

Back to puzzle question