[algogeeks] Game

2012-11-21 Thread Wladimir Tavares
Arnaldo and Bernaldo are playing within the classroom as follows: they write initially under a positive integer n. then alternately, beginning with Arnold, erase the number that is on the table and write a new number that can be: • what has just been erased least the largest power of 2 (with

[algogeeks] game of balls

2010-12-14 Thread divya
Ram and Shyam are playing a game of balls. Ram choose a colour ball say red and shyam chose blue. Now both of them places the ball in a row with the condition that at any point the number of Shyam's balls can never be larger than Ram's. If both of them have equal number of balls say 'n' compute

Re: [algogeeks] game of balls

2010-12-14 Thread Amir hossein Shahriari
the result is nth catalan number http://en.wikipedia.org/wiki/Catalan_number -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to