This problem comes from the Scottish Mathematical Council (SMC) Senior Mathematical Challenge of 2007:

“A group of seven girls—Ally, Bev, Chi-chi, Des, Evie, Fi and Grunt—were playing a game in which the counters were beans. Whenever a girl lost a game, from her pile of beans she had to give each of the other girls as many beans as they already had. They had been playing for some time and they all had different numbers of beans. They then had a run of seven games in which each girl lost a game in turn, in the order given above. At the end of this sequence of games, amazingly, they all had the same number of beans—128. How many did each of them have at the start of this sequence of seven games?”

See the Seven Girls Puzzle