A pirate crew at the end of the day split the booty. The first pirate got 100 gold pieces and 1/6 of the remaining booty. The second one got 200 gold pieces and 1/6 of the remaining booty. The third one got 300 gold pieces and 1/6 of the remaining booty, etc. The last one only got what was left of the booty.
At the end, every pirate had the same amount of gold pieces (from the booty).
How many pirates were there, and how much was the booty?