There are N monkeys, so there are ((N-1)+(N-2)+..+(1)) number of matches. Let's call this number of matches M.
Each match gives out X bags of copper per ape and 1 bag of cold. So each match gives out 2X+1 bags. There are Y coins in each bag. Each match therefore gives out Y(2X+1) number of coins. There are M matches therefore they give out a total of MY(2X+1). This total equals 781153.
The equasion you need to solve is: 781153 = M*Y*(2X+1)
781153 is only dividable by 67, 89, 131, 5963, 8777 or 11659. M cannot be one of those. So M has to be 1. Therefore, there are only two apes. If there are 67 coins per bag, there are 5928 bags per ape per match. If there are 89 coins per bag, there are 4388 bags per ape per match. If there are 131 coins per bag there are 2981 bags per ape per match.
Each match gives out X bags of copper per ape and 1 bag of cold. So each match gives out 2X+1 bags. There are Y coins in each bag. Each match therefore gives out Y(2X+1) number of coins. There are M matches therefore they give out a total of MY(2X+1). This total equals 781153.
The equasion you need to solve is: 781153 = M*Y*(2X+1)
781153 is only dividable by 67, 89, 131, 5963, 8777 or 11659. M cannot be one of those. So M has to be 1. Therefore, there are only two apes. If there are 67 coins per bag, there are 5928 bags per ape per match. If there are 89 coins per bag, there are 4388 bags per ape per match. If there are 131 coins per bag there are 2981 bags per ape per match.
Comment