All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Shapes
Splitting a 2 by N Rectangle (Posted on 2009-11-11) Difficulty: 3 of 5
Find an expression which yields the number of ways to split a 2 by N rectangle into two polyominoes. Rotations and reflections are NOT considered distinct.

For example, if N=1 there is only one way - two 1x1 squares.

If N=2 then there are two ways - one way is a 1x1 square with an "L" shape and two 2x1 rectangles as the other.

If N=3 then there are the 6 ways as depicted:

a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a


  Submitted by Brian Smith    
No Rating
Solution: (Hide)
The possible ways to split the 2xN rectangle fall into five cases:

Case 1: Straight across the length: only one way
######
******
Case 2: Straight across the width: floor[N/2] ways
####**
####**
Case 3: An L shaped cut, going from an end to a side: N-1 ways
####**
******
Case 4: Starting and ending on the same side: (N-1)(N-2)/4 + (1/2)*floor[(N-1)/2]
**##**
******
Case 5: Starting and ending on opposite sides, but not straight across: (N-1)(N-2)/4 + (1/2)*floor[(N-1)/2]
####**
##****
Adding the five cases yeilds the sum N + floor[N/2] + floor[(N-1)/2] + (N-1)(N-2)/2
The expression floor[N/2] + floor[(N-1)/2] simplifies to N-1
Then the sum equals [N] + [N-1] + [(N-1)(N-2)/2]
The last term is the sum of the first N-2 numbers, then the total must simplify to sum of the first N numbers, or N*(N+1)/2.

You may notice that the formula fails for N=2. That is because the formula is counting the split into two 1x2 rectangles twice, once for each direction. In other 2xN rectangles those splits are correctly counted as being different.

Comments: ( You must be logged in to post comments.)
  Subject Author Date
re(2): Tablebrianjn2009-11-12 10:20:46
re: TableJer2009-11-12 10:07:14
Tablebrianjn2009-11-11 20:29:08
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information