MathDB
Problems
Contests
National and Regional Contests
USA Contests
MAA AMC
USAJMO
2013 USAJMO
2
2
Part of
2013 USAJMO
Problems
(1)
Gardens of Rectangular Grids
Source: 2013 USAJMO Problem 2
4/30/2013
Each cell of an
m
×
n
m\times n
m
×
n
board is filled with some nonnegative integer. Two numbers in the filling are said to be adjacent if their cells share a common side. (Note that two numbers in cells that share only a corner are not adjacent). The filling is called a garden if it satisfies the following two conditions:(i) The difference between any two adjacent numbers is either
0
0
0
or
1
1
1
. (ii) If a number is less than or equal to all of its adjacent numbers, then it is equal to
0
0
0
.Determine the number of distinct gardens in terms of
m
m
m
and
n
n
n
.
algorithm
JMO
grids