Problem

Source: Belarusian National Olympiad 2017

Tags: combinatorics, rectangle



In town $N$ the central square hase a shape of rectangle $n \times m$, composed of squares $1 \times 1$. In order, to illuminathe the square, lanterns are placed on the corners of the tiles (including the edge of rectangle), such that every lantern illuminates all tiles in corners of which it is placed. Find the minimal amount of lanterns which can be placed, such that every tile will be illuminated even if one of the lanterns burns out.