All Exams Test series for 1 year @ ₹349 only
Question

A person carries Rs. 500 and wants to buy apples and oranges out of it. If the cost of one apple is Rs. 5 and the cost of one orange is Rs. 7 then what is the number of ways in which a person can buy both apples and oranges using total amount?

This question was previously asked in
CDS I 2019 Elementary Mathematics Previous Year Paper (03-Feb-2019)
The correct answer is

14

Understanding the Problem Details

The question asks us to find the number of different combinations of apples and oranges a person can buy with exactly Rs. 500. We are given the cost of one apple and the cost of one orange, and the condition that the person must buy at least one of each fruit.

  • Total money the person has: Rs. 500
  • Cost of one apple: Rs. 5
  • Cost of one orange: Rs. 7
  • Constraint: The person must buy both apples and oranges (meaning the number of apples purchased must be at least 1, and the number of oranges purchased must be at least 1).
  • Interpretation: Based on the options provided, the phrasing "using total amount" is interpreted as spending exactly Rs. 500.

Setting up the Mathematical Equation and Constraints

Let 'a' be the number of apples purchased and 'o' be the number of oranges purchased.

The total cost of buying 'a' apples and 'o' oranges is \(5a + 7o\).

Since the person spends exactly Rs. 500, the equation is:

\(5a + 7o = 500\)

The constraints given are that the person must buy both apples and oranges. In terms of 'a' and 'o', this means:

  • \(a \ge 1\)
  • \(o \ge 1\)

Also, the number of fruits must be non-negative integers. Since we already have \(a \ge 1\) and \(o \ge 1\), this implies that 'a' and 'o' must be positive integers.

Solving the Linear Diophantine Equation

We need to find the number of positive integer solutions (a, o) to the equation \(5a + 7o = 500\). This is a linear Diophantine equation.

Rearrange the equation to isolate one variable:

\(5a = 500 - 7o\)

For 'a' to be an integer, \(500 - 7o\) must be divisible by 5.

Since 500 is divisible by 5, \(7o\) must also be divisible by 5. Because 7 and 5 are coprime (their greatest common divisor is 1), 'o' must be divisible by 5.

Let \(o = 5k\) for some positive integer 'k' (since \(o \ge 1\)).

Substitute \(o = 5k\) into the equation \(5a + 7o = 500\):

\(5a + 7(5k) = 500\)

\(5a + 35k = 500\)

Divide the entire equation by 5:

\(a + 7k = 100\)

Now, we can express 'a' in terms of 'k':

\(a = 100 - 7k\)

So, the general integer solution for the equation \(5a + 7o = 500\) is \(a = 100 - 7k\) and \(o = 5k\), where 'k' is any integer.

Applying the Minimum Purchase Constraints (\(a \ge 1, o \ge 1\))

We know that the person must buy at least one apple and at least one orange. We use the expressions for 'a' and 'o' in terms of 'k' and apply these constraints:

Constraint 1: \(a \ge 1\)

\(100 - 7k \ge 1\)

\(100 - 1 \ge 7k\)

\(99 \ge 7k\)

\(k \le \frac{99}{7}\)

\(k \le 14.14...\)

Since 'k' must be an integer, this implies \(k \le 14\).

Constraint 2: \(o \ge 1\)

\(5k \ge 1\)

\(k \ge \frac{1}{5}\)

\(k \ge 0.2\)

Since 'k' must be an integer, this implies \(k \ge 1\).

Combining both constraints, the possible integer values for 'k' are \(1 \le k \le 14\).

Calculating the Number of Ways

The integer values that 'k' can take are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, and 14.

Each valid integer value of 'k' corresponds to a unique pair of (a, o) that satisfies the equation \(5a + 7o = 500\) and the constraints \(a \ge 1\) and \(o \ge 1\).

The number of such integer values of 'k' is the number of ways the person can buy both apples and oranges for exactly Rs. 500.

Number of values of k = (Last value) - (First value) + 1

Number of values of k = \(14 - 1 + 1 = 14\).

Therefore, there are 14 different ways the person can buy apples and oranges spending exactly Rs. 500 while buying at least one of each.

Let's check a couple of values for k:

  • If \(k=1\): \(a = 100 - 7(1) = 93\), \(o = 5(1) = 5\). Cost = \(5(93) + 7(5) = 465 + 35 = 500\). Valid.
  • If \(k=14\): \(a = 100 - 7(14) = 100 - 98 = 2\), \(o = 5(14) = 70\). Cost = \(5(2) + 7(70) = 10 + 490 = 500\). Valid.

All integer values of k from 1 to 14 yield valid combinations.

Conclusion

The number of ways a person can buy both apples and oranges using a total amount of Rs. 500 is 14, assuming "using total amount" means spending exactly Rs. 500.

Revision Table: Key Concepts Used

Concept Description Application in Problem
Linear Equation An equation involving variables raised to the power of 1. Representing the total cost: \(5a + 7o = 500\).
Diophantine Equation An equation where only integer solutions are sought. We need integer values for 'a' and 'o'.
Divisibility Rules Rules to determine if one number is divisible by another. Used to find the general form of 'o' (\(o=5k\)).
Integer Constraints Conditions that variables must be integers within a certain range. \(a \ge 1\), \(o \ge 1\) are used to find the valid range for 'k'.

Additional Information: Linear Diophantine Equations

A linear Diophantine equation is an equation of the form \(Ax + By = C\), where A, B, and C are integers, and we seek integer solutions for x and y. A solution exists if and only if the greatest common divisor of A and B (gcd(A, B)) divides C.

In our problem, the equation is \(5a + 7o = 500\). Here, A=5, B=7, and C=500. The gcd(5, 7) is 1. Since 1 divides 500, integer solutions exist. Our method of finding the general solution \(a = 100 - 7k, o = 5k\) is a standard way to solve such equations.

If the question had asked for the number of ways to spend at most Rs. 500 while buying both (\(5a + 7o \le 500\), \(a \ge 1, o \ge 1\)), the approach would involve summing up the possible values for one variable while iterating through the other, using floor functions as shown in the scratchpad. The interpretation of the question phrasing is crucial in problems like this.

Was this answer helpful?

Similar Questions

  1. The values of x and y from the equations x - y = 6 and x/3 + y/2 = 12 are:

  2. Students of a class are made to sit in rows of equal number of chairs. If number of students is increased by 2 in each row, then the number of rows decrease by 3. If number of students is increased by 4 in each row, then the number of rows decreases by 5. What is the number of students in the class?

  3. What is the value of x, 2x/3 + y/ 2 = 4 and x/3 - y/2 = 1?

  4. How many integral values of x and y satisfy the equation 5x + 9y = 7, where -500 < x < 500 and -500 < y < 500?

  5. How many pairs of natural numbers are there such that the difference of their squares is 35?

  6. What is the maximum value of the expression \(\frac{1}{{{x^2}\; + \;5x\; + \;10}}?\)

  7. A man who recently died left a sum of Rs. 3,90,000 to be divided among his wife, five sons and four daughters. He directed that each son should receive 3 times as much as each daughter receives and that each daughter should receive twice as much as their mother receives. What was the wife’s share?

  8. At present the average of the ages of a father and a son is 25 years. After seven years, the son will be 17 years old. What will be the age of father after 10 years?

  9. The age of a woman is two-digit integer. On reversing this integer, the new integer is the age of her husband who is elder to her. The difference between their ages is one eleventh of their sum. What is the difference between their ages?

  10. A quadratic polynomial ax 2+ bx + c = 0 is such that when it is divided by x, (x - 1) and (x + 1), the remainders are 3, 6 and 4 respectively. What is the value of (a + b)?


Important Questions from Linear Equation in 2 Variable

  1. If 2 x + 3 y = 17;

    2 x+2  - 3 y+1  = 5

    then the values of x and y are:

  2. The solution of pair of linear equations \(\dfrac{1}{2}x+\dfrac{2}{3}y=-1,x-\dfrac{1}{3}y=3\) by the elimination method, is:

  3. Kumar tried his skill at shooting at a fun fair. He has to hit the target and if he hits the target he gets 1 Rs. and if he misses he has to pay 50 paise. He attempted 25 shots and won 10 Rs. In how many did he hit the target?

  4. The sum of two numbers is 66 and their difference is 22. What is the ratio of the two numbers?

  5. Shyam spent half of his money and was left with as many as he had rupees before, but with half as many rupees as he had paise before. Which of the following is a possible amount of money he is left with?

Need Expert Advice?
Test Series
CDS img
Defence
UPSC CDS 2026 Mock Test Series
536 Tests 4 Tests Free
1647 Attempts
4.3(174)
English, Hindi
More Questions from CDS

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App