MathDB
Switching lightbulbs on

Source: 42nd International Tournament of Towns, Junior A-Level P5, Spring 2021

February 18, 2023
Kyiv Tournamentcombinatorics

Problem Statement

In the center of each cell of a checkered rectangle MM{} there is a point-like light bulb. All the light bulbs are initially switched off. In one turn it is allowed to choose a straight line not intersecting any light bulbs such that on one side of it all the bulbs are switched off, and to switch all of them on. In each turn at least one bulb should be switched on. The task is to switch on all the light bulbs using the largest possible number of turns. What is the maximum number of turns if:
[*]MM is a square of size 21×2121 \times 21; [*]MM is a rectangle of size 20×2120 \times 21?
Alexandr Shapovalov