wu :: forums
« wu :: forums - Black and White Balls »

Welcome, Guest. Please Login or Register.
Nov 25th, 2024, 4:43am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   medium
(Moderators: william wu, SMQ, Icarus, Eigenray, Grimbal, ThudnBlunder, towr)
   Black and White Balls
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Black and White Balls  (Read 1770 times)
alexeigor
Newbie
*





   


Posts: 45
Black and White Balls  
« on: Mar 28th, 2008, 3:42am »
Quote Quote Modify Modify

Consider an urn filled with a number of balls each of which is either black or white. There are also enough balls outside the urn to play the following game. We want to reduce the number of balls in the urn to one by repeating the following process as often as necessary.
 
Take any two balls out of the urn. If both have the same colour, throw them away, but put another black ball into the urn; if thy have different collours the return the white one to the urn and throw the black away.
 
Each execution of the above process reduces the number f balls in the urn by one; when only one ball isleft the game is over. What, if anything, can be said about the colour of the final ball in the urn in relation to the original number of black and white balls?
« Last Edit: Mar 28th, 2008, 6:29am by alexeigor » IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Black and Whit Balls  
« Reply #1 on: Mar 28th, 2008, 4:50am »
Quote Quote Modify Modify

Nice puzzle.  
 
I was trying to work out a recurrence formula when suddenly I noticed, the number of white balls modulo 2 is invariant.
« Last Edit: Mar 28th, 2008, 4:52am by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
alexeigor
Newbie
*





   


Posts: 45
Re: Black and Whit Balls  
« Reply #2 on: Mar 28th, 2008, 6:25am »
Quote Quote Modify Modify

Good observasion, so  

Transitions:
w,b == w, b-1;
w,b == w-2, b+1;
 
Invariant:
w == w mod 2;
 
if White odd, last ball is White
if White even, last ball is Black
I'm right?
« Last Edit: Mar 28th, 2008, 6:37am by alexeigor » IP Logged
gotit
Uberpuzzler
*****





   
Email

Gender: male
Posts: 804
Re: Black and White Balls  
« Reply #3 on: Mar 28th, 2008, 6:32am »
Quote Quote Modify Modify

I think this problem is quite similiar to this
 
http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi?board=riddles_eas y;action=display;num=1194039906;start=12#12
IP Logged

All signatures are false.
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Black and White Balls  
« Reply #4 on: Mar 28th, 2008, 7:10am »
Quote Quote Modify Modify

on Mar 28th, 2008, 6:25am, alexeigor wrote:
if White odd, last ball is White
if White even, last ball is Black
I'm right?
Yup, that's what I got.
 
on Mar 28th, 2008, 6:32am, gotit wrote:
I think this problem is quite similiar to this
Quite similar indeed; just give all the black balls an even number, and the white balls an odd number.
When replacing two balls, number the replacement with the difference.
« Last Edit: Mar 28th, 2008, 7:11am by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board