2020 PUMaC Individual Finals B1
Source:
January 1, 2022
combinatorics
Problem Statement
Find all pairs of natural numbers with the following property:
Given a array of cells, such that every cell contains one integer, there always exists a path from the left to the right edges such that the sum of the numbers on the path is a multiple of .Note: A path from the left to the right edge is a sequence of cells of the array so that is a cell of the leftmost column, is the cell of the rightmost column, and , share an edge for all .