uniform candy distribution
There are n childrens sitting around a round table. Each child starts out with an integer number of candies. The following step is repeated:
Every child who has an odd number of candies is given another piece of candy by the teacher. Each child now has an even number. Now every child passes half of his/her candy to the child on his/her left.
Eventually every child has equal number of candies proove..
Every child who has an odd number of candies is given another piece of candy by the teacher. Each child now has an even number. Now every child passes half of his/her candy to the child on his/her left.
Eventually every child has equal number of candies proove..
Comments
Post a Comment