A young lad was selling mangoes in a market. Then the first customer came to him.
Customer #1: I would like 4 1 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 3 1 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 2 1 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?
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.
Suppose the seller has n mangoes left after all his sales.
n must be one less than half the number of mangoes he had before Customer #3, so he had 2 n + 2 mangoes before Customer #3.
2 n + 2 must be two less than two-thirds of the number of mangoes he had before Customer #2, so he had 3 n + 6 mangoes before Customer #2.
3 n + 6 must be three less than three-fourths of the number of mangoes he had before Customer #1, so he had 4 n + 1 2 mangoes before Customer #1.
Thus Customers #3, #2 and #1 bought n + 2 , n + 4 and n + 6 mangoes respectively. It is known that the only three consecutive odd numbers which are prime are 3 , 5 and 7 , so those must be the numbers of mangoes bought, which makes the number he has remaining 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.
Log in to reply
Absolutely, thanks for catching that, have made the correction.
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.
Problem Loading...
Note Loading...
Set Loading...
Let the number of mangoes at the start be n .
We note that 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 = 4 n + 3 = 7 p 2 = 4 n + 1 = 5 p 1 = 4 n − 1 = 3 ⟹ n = 1 6 and the number of mangoes left is n 3 = 4 n − 3 = 1 .