MathDB
15 numbered lights on the ceiling of a room, 15 switches each for 2 lights

Source: 2022 Dutch IMO TST 2.3

December 3, 2022
combinatorics

Problem Statement

There are 1515 lights on the ceiling of a room, numbered from 11 to 1515. All lights are turned off. In another room, there are 1515 switches: a switch for lights 11 and 22, a switch for lights 22 and 33, a switch for lights 33 en 44, etcetera, including a sqitch for lights 1515 and 11. When the switch for such a pair of lights is turned, both of the lights change their state (from on to off, or vice versa). The switches are put in a random order and all look identical. Raymond wants to find out which switch belongs which pair of lights. From the room with the switches, he cannot see the lights. He can, however, flip a number of switches, and then go to the other room to see which lights are turned on. He can do this multiple times. What is the minimum number of visits to the other room that he has to take to determine for each switch with certainty which pair of lights it corresponds to?