Seven monkeys spend the day gathering coconuts. As night falls, they gather all the coconuts into one pile and agree to divide them up evenly in the morning.
At 12:00 midnight one monkey gets up and divides the pile of coconuts into seven piles with one left over, which he throws into the ocean. He takes one of the piles and hides it in a secret hiding place and combines the remaining six for the others to find in the morning. At 1:00 A.M., another monkey wakes up and divides the pile into seven, throwing the extra one into the ocean, hiding one pile in his secret hiding place, then grouping the rest.
All seven monkeys do this. In the morning, they get up to divide the pile and it looks noticeably smaller! They divide the pile into seven, throw the left over one into the ocean, then go home. What is the least number of coconuts they could possibly have started with, and how many coconuts did each monkey get?