This solution is from Jack M. in the 11th grade. "Just use base two. The place values starting at the right are the powers of two: 1, 2, 4, 8, 16, and 32. If all 6 lights are lit, that would be the sum of those powers - 63".