This puzzle can be solved using the pattern in binary numbers: http://www.cs4fn.org/binary/lock/.
This site has more complex activities with binary numbers, including fractions, multiplication and division.