Author |
Topic: Black and White Balls (Read 1770 times) |
|
alexeigor
Newbie
Posts: 45
|
|
Black and White Balls
« on: Mar 28th, 2008, 3:42am » |
Quote 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:
Posts: 13730
|
|
Re: Black and Whit Balls
« Reply #1 on: Mar 28th, 2008, 4:50am » |
Quote 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 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 |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: Black and White Balls
« Reply #4 on: Mar 28th, 2008, 7:10am » |
Quote 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
|
|
|
|