The Friar's Puzzle
(
CANTERBURY PUZZLES)
The Friar was a merry fellow, with a sweet tongue and twinkling eyes. "Courteous he was and lowly of service. There was a man nowhere so virtuous." Yet he was "the best beggar in all his house," and gave reasons why "Therefore, instead of weeping and much prayer, Men must give silver to the needy friar." He went by the name of Hubert. One day he produced four money bags and spoke as follows: "If the needy friar doth receive in alms five hundred silver pennies, prithee tell in how many different ways they may be placed in the four bags." The good man explained that order made no difference (so that the distribution 50, 100, 150, 200 would be the same as 100, 50, 200, 150, or 200, 50, 100, 150), and one, two, or three bags may at any time be empty.
Answer:
The five hundred silver pennies might have been placed in the four bags, in accordance with the stated conditions, in exactly 894,348 different ways. If there had been a thousand coins there would be 7,049,112 ways. It is a difficult problem in the partition of numbers. I have a single formula for the solution of any number of coins in the case of four bags, but it was extremely hard to construct, and the best method is to find the twelve separate formulas for the different congruences to the modulus 12.