You have a machine that can add exactly 46,899 pieces of candy per scoop to a giant vat and another machine that can remove exactly 13,576 pieces of candy with a different scoop from the giant vat. You have a total supply of 600,000 pieces of candy. Your giant vat starts out empty. The first machine adds scoops of candy, and then the second machine removes scoops of candy. When these two machines are done, there is only one piece of candy left in the vat. How many scoops of candy did the first machine add to the vat?
Well all you have to do is
600,000 divided by 46,899 = 12.7934497537260922
The answer is from thew calculator so
it might be 12.7
or just stick with 12.7934497537260922
We can use the Euclidian Algorithm to solve this
46899x + 13576y = 1
46899 = (3)13576 + 6171
13576 = (2) 6171 + 1234
6171 = (5) 1234 + 1
1 = 6171 - (5) 1234
1 = 6171 - 5 [ 13576 - (2) 6171 ]
1 = (11) 6171 - (5) 13576
1 = (11) [ 46899 - (3)13576 ] - (5)13756
1 = 46899 (11) - 13576(38)
The first machne added
46899 (11) = 515889 pieces of candy to the vat