The price displayed at a gas station is the price per gallon. What is the smallest

number of gallons of gas you would have to buy for a whole number of dollars?

1 answer

To find the smallest number of gallons of gas you would need to buy for a whole number of dollars, we should analyze the price per gallon. Let's denote the price per gallon as P dollars.

For a given price per gallon P:

  • If you buy g gallons, the total cost will be P×g dollars.
  • We want P×g to be a whole number of dollars.

In order for P×g to be an integer, g must be a multiple of the denominator of P when P is expressed as a fraction in the simplest form.

For instance:

  • If the price per gallon P is 3.29, it can be expressed as 329100. Here, the denominator is 100. Therefore, g must be a multiple of 100. This means the smallest number of gallons you could buy for a whole number of dollars is 100 gallons.
  • If P were 2.50, it can be expressed as 250100. Again, the smallest g would be 100 gallons.

Thus, to determine the smallest g, it is necessary to find the denominator when the price per gallon is expressed as a fraction. In any case, the smallest g that ensures P×g is an integer will typically be the least common multiple of the denominators corresponding to the decimal representation of fuel prices.

If the price P has n decimal places, you would need to buy 10n gallons for P×g to yield a whole number amount in dollars.

To conclude, for most fuel prices represented in dollars and cents (up to two decimal places), the smallest number of gallons you would have to buy for a whole number of dollars is typically:

100

assuming the price has two decimal places.