To solve this problem, we'll show that the number of happy configurations is odd by constructing an involution on the set of all happy configurations except one, pairing them up so that all configurations except one are in pairs. This will imply that the total number of happy configurations is one more than an even number, hence odd.
Understanding the Problem:
-
Grid Points ( S ): We are given a set ( S ) of lattice points ((x, y)) where (1 \leq x \leq 2m) and (1 \leq y \leq 2n). This forms a grid of (2m) columns and (2n) rows, totaling (4mn) points.
-
Happy Configuration: A configuration consists of (mn) axis-parallel rectangles such that each rectangle uses 4 distinct points from ( S ) as its vertices, and each point in ( S ) is used exactly once (i.e., each point is a vertex of exactly one rectangle).
Construction of Involution:
-
Define a Standard Configuration ( c_0 ):
- Divide the grid into ( mn ) non-overlapping ( 1 \times 1 ) squares. Each square is formed by the points ((2i-1, 2j-1)), ((2i-1, 2j)), ((2i, 2j-1)), ((2i, 2j)) for ( 1 \leq i \leq m ) and ( 1 \leq j \leq n ).
- This configuration ( c_0 ) is "standard" and is one of the happy configurations.
-
Consider Any Other Configuration ( c \neq c_0 ):
- For any happy configuration ( c ) different from ( c_0 ), we will construct another configuration ( c' ) by swapping certain rectangles with those in ( c_0 ).
-
Symmetric Difference ( D = c \oplus c_0 ):
- The symmetric difference ( D ) between configurations ( c ) and ( c_0 ) consists of the rectangles that are in one configuration but not the other.
- The union of these rectangles covers an even number of points, and since each point is covered exactly twice (once in ( c ) and once in ( c_0 )), the structure of ( D ) forms cycles.
-
Cycles in ( D ):
- The cycles in ( D ) are sequences of rectangles where adjacent rectangles share common sides, and the points involved alternate between being in ( c ) and ( c_0 ).
- Each cycle involves an even number of rectangles and points.
-
Define the Involution ( f ):
- For the configuration ( c ):
- Identify one of the cycles in ( D ).
- Swap the rectangles from ( c ) with those from ( c_0 ) within this cycle.
- This produces a new configuration ( c' = f(c) ).
- The mapping ( f ) is its own inverse because applying it twice returns to the original configuration (i.e., ( f(f(c)) = c )).
-
Pairing Configurations:
- The mapping ( f ) pairs off all happy configurations except ( c_0 ).
- Configurations ( c ) and ( c' = f(c) ) form a pair, and since ( f ) is an involution, none of these configurations is paired with itself.
Conclusion:
- Since all configurations except ( c_0 ) are paired, the total number of happy configurations ( |H| ) is one more than an even number:
[
|H| = 1 + 2k
]
where ( k ) is the number of pairs.
- Therefore, the number of happy configurations is odd.
Detailed Proof:
Let's formalize the above steps:
Step 1: The Standard Configuration ( c_0 )
- Define ( c_0 ) by partitioning ( S ) into ( mn ) disjoint sets of 4 points forming the smallest possible rectangles (unit squares):
[
R_{i,j} = {(2i-1, 2j-1),\ (2i-1, 2j),\ (2i, 2j-1),\ (2i, 2j)}
]
for each ( 1 \leq i \leq m ) and ( 1 \leq j \leq n ).
Step 2: The Symmetric Difference ( D )
- For any happy configuration ( c \neq c_0 ), define:
[
D = c \oplus c_0 = (c \setminus c_0) \cup (c_0 \setminus c)
]
- The set ( D ) consists of rectangles where ( c ) and ( c_0 ) differ.
- Each point in ( D ) is part of exactly two rectangles (one from ( c ) and one from ( c_0 )), so the degree of each point is 2 when considering adjacency via shared points.
Step 3: Cycles in ( D )
- Since all vertices in ( D ) have degree 2, ( D ) decomposes into cycles.
- Each cycle involves an even number of rectangles and points.
Step 4: Defining the Involution ( f )
- For each ( c \neq c_0 ), select one of the cycles in ( D ).
- Create ( c' = f(c) ) by swapping the rectangles from ( c ) with those from ( c_0 ) within this cycle.
- Since swapping the rectangles in the cycle replaces the ones from ( c ) with those from ( c_0 ), ( c' ) is a valid happy configuration.
- The mapping ( f ) is an involution:
- Applying ( f ) again to ( c' ) swaps the rectangles back, so ( f(f(c)) = c ).
- ( f ) pairs configurations ( c ) and ( c' ).
Step 5: Counting Configurations
- All configurations except ( c_0 ) are paired via ( f ), so the total number of configurations ( |H| ) is odd:
[
|H| = 1 + 2k
]
where ( k ) is the number of pairs in ( H \setminus {c_0} ).
Therefore, we conclude that:
- The number of happy configurations is odd for any positive integers ( m ) and ( n ).
Example:
Let's illustrate this with ( m = n = 1 ):
- The grid points are ((1,1)), ((1,2)), ((2,1)), ((2,2)).
- The standard configuration ( c_0 ) uses these points to form one rectangle.
- Any other configuration (if possible) would differ from ( c_0 ), but in this small case, there is only one happy configuration.
- Hence, the number of happy configurations is ( 1 ), which is odd.
Final Remark:
This method demonstrates that no matter how large ( m ) and ( n ) are, the pairing via the involution ( f ) ensures the total number of happy configurations remains odd.
Answer: Proof: By pairing all happy configurations except one via an involution, we show their total number is odd.