Competition among Nihar, PiHan and Calvin!

Nihar got a good grade at school, so I gave him N {N} two dollar bills. Then, since PiHan got a better grade, I gave him just enough five dollar bills so that he got more money than Nihar. Finally, since Calvin got the best grade, I gave him just enough ten dollar bills so that he got more money than PiHan. What is the maximum amount of money (in terms of N N ) that Calvin could have received?

N N is a positive integer.

2 N + 12 2N + 12 2 N + 16 2N + 16 2 N + 10 2N + 10 2 N + 14 2N + 14 2 N + 13 2N + 13 2 N + 15 2N + 15 2 N + 11 2N + 11 2 N + 9 2N + 9

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.

2 solutions

Satyajit Mohanty
Jul 25, 2015

Nihar received 2 N 2N dollars and PiHan received 2 N + 1 2N +1 , 2 N + 2 2N +2 , 2 N + 3 2N +3 , 2 N + 4 2N + 4 or 2 N + 5 2N + 5 dollars depending on what residue class N N belongs to modulo 5 5 . But since PiHan gets $ 5 \$5 bills, his amount is divisible by 5 5 . Calvin will then receive either $ 5 \$5 more than PiHan (if PiHan's amount is not divisible by 10 10 ) or $ 10 \$10 more than PiHan (if PiHan's amount is divisible by 10 10 ). Clearly 2 N + 5 2N +5 is odd, thus not divisible by 10 10 . So the maximum occurs when PiHan receives 2 N + 4 2N + 4 dollars, which means 2N \equiv 1 \text{ mod } 5 , i.e. N \equiv 3 \text{ mod } 5 , and that maximum (what Calvin receives) is 2 N + 14 2N + 14 .

Mistook the question for C a l v i n P i H a n > N i h a r Calvin \geq PiHan > Nihar , which was supposed to be C a l v i n > P i h a n > N i h a r Calvin > Pihan > Nihar , so I chose 2 N + 13 2N+13 .... >_<

Aditya Raut - 5 years, 10 months ago

Log in to reply

Well, it's obvious that Calvin > PiHan, as he is the Challenge Master! :D

Satyajit Mohanty - 5 years, 10 months ago
Charlz Charlizard
Jul 26, 2015

Here N should be valid for any integer for given conditions...Let's decide N for N<=10..Let M and R are number of dollar bills for 5 dollar and 10 dollar respectively..

Here 2N<5M so 2N+Y=5M..Now here Y should be maximum..So to maximize Y N=3..as 5M is just greater than 2N..M=2..Y=4..Now 10R just greater than 5M is 20 dollars..So 5M+10=10R..So max 10R in terms of N is 2N+4+10=2N+14..

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...