There were 7 thieves who robbed gems from a merchant's house. When they stopped to rest, they began dividing the gems evenly among themselves. However, each time they divided the gems, one gem was left over, causing them to argue. They continued waking additional thieves to help divide the gems until all 7 were awake, at which point they could divide the gems evenly with no gems left over. The number of gems they had stolen was 301.