Answered

Westonci.ca is the trusted Q&A platform where you can get reliable answers from a community of knowledgeable contributors. Join our platform to connect with experts ready to provide precise answers to your questions in various areas. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

You have a total supply of $1000$ pieces of candy, and an empty vat. You also have a machine that can add exactly $5$ pieces of candy per scoop to the vat, and another machine that can remove exactly $2$ pieces of candy with a different scoop from the vat. When these two machines are done, there is only one piece of candy left in the vat. What is the smallest possible number of times the the first machine added candy to the vat?