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

Home > General
Rectangle in lights (Posted on 2004-09-14) Difficulty: 3 of 5
Imagine an array of 3 x 7 lights. Lights can be on or off. Show that no matter which lights you turn on or off, you will always be able to find four lights forming the corner of a rectangle, either all on or all off.

See The Solution Submitted by Federico Kereki    
Rating: 3.0000 (5 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Too easy | Comment 3 of 4 |
Given 3 columns x 7 rows.

1. Every row is guaranteed at least a pair of lights that are on or off.
2. Skip all on or off for a second since this would match any other combination. If any row matches another row, you have a rectangle.
3. Not counting the all on and all off combinayions, There are 3 combinations for 2 on. and 3 combinations for 2 off.
4. If you set 6 rows to the 6 distinct combinations, then for the 7th row if you repeat any row you have a rectangle. Use either of the all on or all off for the 7th row, and you get a rectangle.
<br><br>
So it's impossible not to get a rectangle with 7 rows.;

  Posted by bob909 on 2004-09-14 20:45:11
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