Numbers in black and white squares are in a specific ratio
Source: 2021 2nd OMpD L3 P4 - Brazil - Olimphída Matemáticos por Diversão
July 8, 2023
checkerboardcombinatoricsratio
Problem Statement
Determine the smallest positive integer with the following property: on a board , whose squares are painted in checkerboard pattern (that is, for any two squares with a common edge, one of them is black and the other is white), it is possible to place the numbers , a number in each square, so if is the sum of the numbers written in the white squares and is the sum of the numbers written in the black squares, then .