All Positive Integer Solutions of a Linear Cost Equation
Board: CBSE | Grade: Class 9 | Chapter: Linear Equations in Two Variables
Problem
A school buys $x$ notebooks at ₹$35$ each and $y$ geometry boxes at ₹$55$ each, spending exactly ₹$1000$ in total, with at least one item of each kind ($x \ge 1, y \ge 1$).
- Form the reduced linear equation in $x$ and $y$.
- Find all possible positive integer pairs $(x, y)$.
- Determine the maximum total number of items $(x + y)$ the school can buy.
Step-by-Step Textbook Solution
Step 1: Form and reduce the linear equation.
$$35x + 55y = 1000$$
Dividing both sides by $\gcd(35, 55, 1000) = 5$:
$$7x + 11y = 200$$
Step 2: Express $x$ in terms of $y$ and apply divisibility.
$$x = \frac{200 - 11y}{7} = \frac{196 + 4 - 7y - 4y}{7} = 28 - y + \frac{4 - 4y}{7}$$
For $x$ to be an integer, $4(1 - y)$ must be divisible by $7$. Since $\gcd(4, 7) = 1$, $7$ must divide $(y - 1)$, so $y = 7k + 1$ for some integer $k$.
Step 3: Apply the bounds $x \ge 1$ and $y \ge 1$.
Since $11y = 200 - 7x \le 193$, we need $1 \le y \le 17$. Testing $y = 7k + 1$:
- $k = 0 \implies y = 1 \implies 7x = 200 - 11 = 189 \implies x = 27$. Pair: $(27, 1)$.
- $k = 1 \implies y = 8 \implies 7x = 200 - 88 = 112 \implies x = 16$. Pair: $(16, 8)$.
- $k = 2 \implies y = 15 \implies 7x = 200 - 165 = 35 \implies x = 5$. Pair: $(5, 15)$.
- $k = 3 \implies y = 22$ (invalid since $11 \times 22 = 242 > 200$).
Step 4: Maximize $x + y$.
The totals are $27+1=28$, $16+8=24$, and $5+15=20$. Hence the maximum total number of items is $28$.
NityaDhi Solution (Intuitive Method)
NityaDhi Step-Jump & Remainder Trick:
Once you spot the first solution $(27, 1)$ (since $200 - 11 = 189 = 7 \times 27$), every subsequent solution simply subtracts $11$ from $x$ and adds $7$ to $y$ (the swapped coefficients of $7x + 11y = 200$)! So $(27, 1) \to (16, 8) \to (5, 15)$ immediately. To maximize $x + y$ for a fixed budget, buy as many of the cheaper item ($x$) as possible, giving $27 + 1 = 28$.
Common Mistakes to Avoid
- Forgetting to divide $35x + 55y = 1000$ by $5$ first, making divisibility checks much harder.
- Including $(0, y)$ or $(x, 0)$ even though $x \ge 1, y \ge 1$ is required (though $200$ isn't divisible by $7$ or $11$ here anyway).
- Maximizing $y$ instead of $x$, which actually minimizes the total count $x + y$.