MathDB
A museum has the shape of n times n square

Source: ItaMO 2003, P2

February 13, 2012
combinatorics proposedcombinatorics

Problem Statement

A museum has the shape of a n×nn \times n square divided into n2n^2 rooms of the shape of a unit square (n>1)(n>1). Between every two adjacent rooms (i.e. sharing a wall) there is a door. A night guardian wants to organize an inspection journey through the museum according to the following rules. He starts from some room and, whenever he enters a room, he stays there for exactly one minute and then proceeds to another room. He is allowed to enter a room more than once, but at the end of his journey he must have spent exactly kk minutes in every room. Find all nn and kk for which it is possible to organize such a journey.