Five pirates capture some treasure.
They divide the coins and find that there are 2 coins left over.
They throw one pirate overboard and split the coins again: there are 3 coins left over.
They throw another pirate over. This time, two coins are left over.
They throw another pirate over. This time, one coin is left over.
What is the fewest number of coins there could have been?