Mario has 773500 gold coins to purchase a number of stars and comets. Each star costs 299 gold coins, and each comet costs 208 gold coins. If the number of stars that Mario buys is at least twice the number of comets, how many ways can Mario spend his gold coins? List one of the ways in which Mario could buy the stars and comets. Note: Mario needs to spend all of his gold coins
I think we have to use the linear diophantine equation theorem for this question. But I really can't figure out how to apply it. Can someone please help me? This is a past math contest question.
Suppose you've found 1 answer, let this be (x,y). Since 299 = 13*23, and 208 = 13*16, we have that any (x-16t, y+23t) is also a solution where t is an integer. Therefore, you should next impose the condition that x always more than 2y, to find the set of solutions.