Mangoes Riddle

A young lad was selling mangoes in a market. Then the first customer came to him.

Customer #1: I would like 1 4 \frac{1}{4} of all your mangoes plus 3 more of them.

So the mangoes were sold as requested, and here came the second customer.

Customer #2: I would like 1 3 \frac{1}{3} of all your mangoes plus 2 more of them.

Again, the mangoes were sold as requested, and the third customer showed up.

Customer #3: I would like 1 2 \frac{1}{2} of all your mangoes plus 1 more.

The mangoes were sold at last, and the boy just realized that all customers bought prime number of mangoes.

How many mangoes would he have left after selling to those 3 customers?


The answer is 1.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Chew-Seong Cheong
Jun 19, 2018

Let the number of mangoes at the start be n n .

  • The 1st customer bought n 4 + 3 = p 1 \dfrac n4 + 3 = p_1 , where p 1 p_1 is a prime. The number of mangoes remain is n 1 = n ( n 4 + 3 ) = 3 4 n 3 n_1 = n - \left(\dfrac n4+3\right) = \dfrac 34 n - 3 .
  • The 2nd customer bought n 1 3 + 2 = n 4 + 1 = p 2 \dfrac {n_1}3 + 2 = \dfrac n4 + 1 = p_2 , where p 2 p_2 is a prime. The number of mangoes remain is n 2 = 3 4 n 3 ( n 4 + 1 ) = n 2 4 n_2 = \dfrac 34n-3 - \left(\dfrac n4+1\right) = \dfrac n2 - 4 .
  • The 3rd customer bought n 2 2 + 1 = n 4 1 = p 3 \dfrac {n_2}2 + 1 = \dfrac n4 - 1 = p_3 , where p 3 p_3 is a prime. The number of mangoes remain is n 3 = n 2 4 ( n 4 1 ) = n 4 3 n_3 = \dfrac n2-4 - \left(\dfrac n4-1\right) = \dfrac n4 - 3 .

We note that p 1 > p 2 > p 3 p_1 > p_2 > p_3 and the difference between two consecutive primes is 2. Therefore, the three primes must be 3, 5 and 7.

That is { p 1 = n 4 + 3 = 7 p 2 = n 4 + 1 = 5 p 1 = n 4 1 = 3 \begin{cases} p_1 = \dfrac n4 + 3 = 7 \\ p_2 = \dfrac n4 + 1 = 5 \\ p_1 = \dfrac n4 -1 = 3 \end{cases} n = 16 \implies n = 16 and the number of mangoes left is n 3 = n 4 3 = 1 n_3 = \dfrac n4 - 3 = \boxed{1} .

Zico Quintina
Jun 18, 2018

Suppose the seller has n n mangoes left after all his sales.

  • n n must be one less than half the number of mangoes he had before Customer #3, so he had 2 n + 2 2n + 2 mangoes before Customer #3.

  • 2 n + 2 2n + 2 must be two less than two-thirds of the number of mangoes he had before Customer #2, so he had 3 n + 6 3n + 6 mangoes before Customer #2.

  • 3 n + 6 3n + 6 must be three less than three-fourths of the number of mangoes he had before Customer #1, so he had 4 n + 12 4n + 12 mangoes before Customer #1.

Thus Customers #3, #2 and #1 bought n + 2 , n + 4 n + 2, n + 4 and n + 6 n + 6 mangoes respectively. It is known that the only three consecutive odd numbers which are prime are 3 , 5 3, 5 and 7 7 , so those must be the numbers of mangoes bought, which makes the number he has remaining n = 1 n = 1 .

There is a slight mistake... customers 1,2,and 3 bought n+6, n+4, n+2 mangoes respectively, not the other way round.

Siva Budaraju - 2 years, 11 months ago

Log in to reply

Absolutely, thanks for catching that, have made the correction.

zico quintina - 2 years, 11 months ago
Siva Budaraju
Jun 18, 2018

Each customer orders exactly 2 fewer mangoes than each previous one.

The only 3 prime numbers that each differ by 2 are 7,5,3.

So customer #1 bought 7 mangoes.

The original number of mangoes is (7-3)*4 = 16.

Total left = 16-7-5-3= 1 .

The answer is 1.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...