The key claim is the following. Claim: The sum in the problem is equal to the number of solutions of 2x+3y≤300 where x,y are positive integers. Proof. The sum in the problem is the same as counting the number of triples (a,b,d) of positive integers such that \operatorname{gcd}(a, b)=1andd(2 a+3 b) \leq 300.Now,givensuch(a, b, d),webijectittothepair(x, y)describedintheclaimbyx=d aandx=d b.Thistransformationcanbereversedbyd=\operatorname{gcd}(x, y),a=x / d,andb=y / d,implyingthatitisindeedabijection,sothesumisindeedequaltothenumberofsuch(x,y). Hence, we wish to count the number of positive integer solutions to 2x+3y≤300. One way to do this is via casework on y, which we know to be an integer less than 100: - If y is even, then y=2k for 1≤k≤49. Fixing k, there are exactly 2300−6k=150−3k values of x which satisfy the inequality, hence the number of solutions in this case is k=1∑49(150−3k)=2150⋅49=3675 - If y is odd, then y=2k−1 for 1≤k≤50. Fixing y, there are exactly 2302−6k=151−3k values of x which satisfy the inequality, hence the number of solutions in this case is k=1∑50(151−3k)=2149⋅50=3725 The final answer is 3675+3725=7400.