Seven pirates attacked the British ship and loot some rare gems from them. They decided to rest for some time and then divide the gems later. While everyone was resting two of the pirates wake up and planned to divide gems equally between the two, one gem is left. So they decide to wake the third pirate and decide to divide among three, but alas again one gem was left. They then decide to wake the fourth pirate to divide the gems and again one gem was left. The same happened again in the fifth and sixth. Finally, they woke up the 7th pirate and this time the gems were divided equally. How many gems did they steal in total?
How would you solve this without just plugging in multiples and seeing which works? I know you can use the LCM of {2-6} and streamline it by doing something such as (60x+1)/7 = 0, but is there a way to find a formula that will answer the question, without any plugging? Thank you!