24. (HUN 5) Father has left to his children several identical gold coins. According to his will, the oldest child receives one coin and one-seventh of the remaining coins, the next child receives two coins and one-seventh of the remaining coins, the third child receives three coins and one-seventh of the remaining coins, and so on through the youngest child. If every child inherits an integer number of coins, find the number of children and the number of coins.
Problem 823
Official solution
24. Let the th child receive coins. By the condition of the problem, the number of coins that remain after him was . This gives us a recurrence relation
which, together with the condition , yields
Since we are given , we obtain . It follows that , which is possible only for . Hence, and