Problem

Source: Tournament of Towns, Senior O-Level Paper, Spring 2020 , p1

Tags: combinatorics, numbers in a table, table



Is it possible to fill a $40 \times 41$ table with integers so that each integer equals the number of adjacent (by an edge) cells with the same integer? Alexandr Gribalko