2200.11 – Positive Integer Solutions: Count Them


The number of positive integer solution pairs of the equation 3x +5y =5013x + 5y = 501 is:

  1. 33
  2. 34
  3. 35
  4. 100
  5. none of these.

Solution

The graph is below. The question is: through how many lattice points does thw straight line pass?

We could simply tabulate the values of y = (501  3x)/5y = (501 - 3x)/5 for all integral xx using a spreadsheet and count the number of integer yy values.

Or, if we use a calculator, we soon see that yy is an integer when x =2,7,12,17,x = 2, 7, 12, 17, and so on. This suggests that there are two usable values of xx in every interval [0, 10], [11, 20], … [160, 170], except in the last one where 167 is not usable. There are 16 such intervals, each with two good xx's, plus the extra: x=162x = 162. That makes 2×16+1=332 \times 16 + 1 = 33 good xx's, or 33 lattice points. The answer is (a).

2200_11_solution_0bd700f618.png