Let be the answer to this problem. Box initially contains balls, and Box contains half as many balls as Box . After 80 balls are moved from Box to Box , the ratio of balls in Box to Box is now , where are positive integers with . Find .
Solution
Originally, box has balls and has balls. After moving, box has balls and has balls. The answer to the problem is thus Write . Then the problem is equivalent or , with . Let's try to solve this. Either or must be divisible by 5. In the latter case, where is divisible by 5, we see that must be as well. Therefore is either 0 or . If is divisible by 4, then we know that is even and thus is odd. Therefore, since , must be divisible by 16, meaning that is divisible by 8. Alternatively, if is not divisible by 4, then since must be divisible by 8, meaning that is . Therefore is either 0 or . Putting these results together, we find that must either be , or . Since is a divisor of 240 and less than 51, we conclude that is either 16 or 40. If , then , which does not divide . If , then we get , which ends up working.