Seven Robbers robbed a bank and hide the coins in a lonely place.

They decide to divide the money equally the next morning. Two greedy robbers decided to cheat the others and reach the place at night. They equally divided the coins between them, one coin left. So they called another robber and then they decided to divide equally among the three. Sadly again one coin left. The same thing happened to the 4th 5th and the 6th robber.

However, when the 7th robber reached in the morning, they can divide the coins equally.

How many coins were there in total?