A pen costs Rs 11 and a notebook costs Rs 13. Find the number of ways in which a person can spend exactly Rs 1000 - Solution 2

You can check out a simpler solution here.
This one is a bit more complicated and uses modulo arithmetic.

The problem states:

  • A pen costs ₹11.
  • A notebook costs ₹13.
  • We need to find the number of ways to spend exactly ₹1000 on these items.

Step 1: Formulating the equation

Let:

  • xx be the number of pens.
  • yy be the number of notebooks.

Then the equation to satisfy is:

11x+13y=100011x + 13y = 1000

where x,yx, y are non-negative integers.

Step 2: Finding integer solutions

We solve for xx in terms of yy:

x=100013y11x = \frac{1000 - 13y}{11}

For xx to be an integer, (100013y)(1000 - 13y) must be divisible by 11.

Let's determine valid values for yy by checking divisibility:

100013y0(mod11)1000 - 13y \equiv 0 \pmod{11}

Since 100010(mod11)1000 \equiv 10 \pmod{11} and 13y2y(mod11)13y \equiv 2y \pmod{11}, we get:

102y0(mod11)10 - 2y \equiv 0 \pmod{11} 2y10(mod11)2y \equiv 10 \pmod{11}

Multiplying both sides by the modular inverse of 2 modulo 11 (which is 6):

y10×6(mod11)y \equiv 10 \times 6 \pmod{11} y605(mod11)y \equiv 60 \equiv 5 \pmod{11}

Thus, y=5,16,27,y = 5, 16, 27, \dots as long as 13y100013y \leq 1000.

Step 3: Finding valid values of yy

The maximum yy should satisfy:

13y1000y10001376.9213y \leq 1000 \Rightarrow y \leq \frac{1000}{13} \approx 76.92

So, the possible values of yy are:

y=5,16,27,38,49,60,71y = 5, 16, 27, 38, 49, 60, 71

Counting these, we get 7 valid values.

Conclusion:

Thus, the number of ways to spend exactly ₹1000 on pens and notebooks is 7.


Comments

Popular posts from this blog

Combinatorics DPP - RACE 6 - Q16 pending discussion

Geometry practice problems

Pre RMO 2018(IOQM), Question 2 incircle quadrilateral