View Single Post
  #21   Spotlight this post!  
Unread 18-10-2005, 21:06
Unsung FIRST Hero
Karthik Karthik is offline
VEX Robotics GDC Chairman
no team
Team Role: Mentor
 
Join Date: Apr 2002
Rookie Year: 1998
Location: Toronto, Ontario, Canada
Posts: 2,346
Karthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond repute
Re: coins in a dark room

Quote:
Originally Posted by Mike Betts
it works for all combinations
Here's the algebraic proof that the solution of grabbing 32 coins and flipping them works.

Let's call our pile of 18 Pile I
Let's call our pile of 32 Pile II

Let a be the number of heads in Pile I
Let b be the number of tails in Pile I
Let x be the number of heads in Pile II
Let y be the number of tails in Pile II

Therefore,

eq1: a + b = 18 (From Pile I)
eq2: x + y = 32 (From Pile II)
eq3: a + x = 32 (From the total number of heads)
eq4: b + y = 18 (From the total number of tails)

Combining eq2 & eq3 we see that,
y - a = 0 --> y = a

Therefore the number of heads in Pile I is the same as the number of tails in Pile II

Now, we flip all 32 coins in Pile II. So all the heads become tails and vice-versa. So now we have y heads and x tails in pile II.

Since a = y, we see that the number of heads in both piles I & II is equal!
__________________
:: Karthik Kanagasabapathy ::
"Enthusiasm is one of the most powerful engines of success. When you do a thing, do it with all your might. Put your whole soul into it. Stamp it with your own personality. Be active, be energetic, be enthusiastic and faithful and you will accomplish your object. Nothing great was ever achieved without enthusiasm" -- R.W. Emerson
My TEDx Talk - The Subtle Secrets of Success
Full disclosure: I work for IFI and VEX Robotics, and am the Chairman of the VEX Robotics and VEX IQ Game Design Committees
.
Reply With Quote