Solution to the /competition/tests/math/putnam/putnam.1967 problem B4. (a) Only lockers whose numbers have an odd number of factors will remain closed, which are the squares.