MathDB
An equality in a grid sheet

Source: Iran TST 2012-First exam-2nd day-P4

April 24, 2012
combinatorics proposedcombinatorics

Problem Statement

Consider m+1m+1 horizontal and n+1n+1 vertical lines (m,n4m,n\ge 4) in the plane forming an m×nm\times n table. Cosider a closed path on the segments of this table such that it does not intersect itself and also it passes through all (m1)(n1)(m-1)(n-1) interior vertices (each vertex is an intersection point of two lines) and it doesn't pass through any of outer vertices. Suppose AA is the number of vertices such that the path passes through them straight forward, BB number of the table squares that only their two opposite sides are used in the path, and CC number of the table squares that none of their sides is used in the path. Prove that A=BC+m+n1.A=B-C+m+n-1.
Proposed by Ali Khezeli