MathDB
fill a 40 x 41 table with integers

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

June 4, 2020
combinatoricsnumbers in a tabletable

Problem Statement

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