Light Switches in the Cellar

Puzzle • Mathematics

Max Score: 40

Easy

In your cellar there are three light switches in the OFF position. Each switch controls one of three light bulbs on the floor above. You may move any of the switches but you may only go upstairs to inspect the bulbs. When upstairs, you cannot access the switches. What is the minimum number of times you need to go upstairs to determine the switch for each bulb?

Since your answer is an integer, just put the number without any decimal places if it's an integer. If the answer is Infinity, output Infinity.

Hints