A rich man died. In his will, he has divided his gold coins among his 5 sons, 5 daughters and a manager. According to his will:
What is the minimum number of coins that the rich man had left behind?
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.
But u should also consider the daughter's share....That should also be integer!!!
Amazing solution
nice.
My solution was also like this only but quite a lengthy one.
Let the rich man have a total amount n . The first son gets 5 n − 1 . The second son gets
⇒ 5 5 4 ( n − 1 ) − 1 = 2 5 4 n − 9 .
We can form a recurrence for the amount the x th son receives. The recurrence is as follows
⇒ f ( 1 ) = 5 n − 1 and
⇒ f ( x ) = 5 4 ( f ( x − 1 ) ) − 1
We can solve this recurrence and get a closed form. Then we find that the closed form is
f ( x ) = n . 4 x − 1 . 5 − x + ( 5 4 ) x − 1
For the fifth, son, that is x = 5 , we get an amount 3 1 2 5 2 5 6 n − 2 1 0 1 after plugging x = 5 in the formula above.
Now, 3 1 2 5 2 5 6 n − 2 1 0 1 must be divisible by 5 because this amount is divided equally to 5 daughters, or in other words,
1 5 6 2 5 2 5 6 n − 2 1 0 1 must be an integer. I found the smallest value of n for which that expression is an integer with a small Python script.
It probably could have been done is a smarter way but right now I was too lazy to try to do that. The final answer was n = 3 1 2 1 .
(k+1)th son will get 4^k(x+4)/5^(k+1) -1, which is to be integer. So, x+4=5^(k+1) for k=4. Hence, x=3125-4
I love your solutions!!!! They're crystal clear
Let y be the initial number of coins. Each daughter gets 1 5 6 2 5 4 ( 2 5 6 y − 2 1 0 1 ) coins. Of course if this is an integer, then all others will get an integer number of coins.
So it remains to solve 2 5 6 y = 2 1 0 1 ( m o d 1 5 6 2 5 ) . This gives y = 3 1 2 1 + 1 5 6 2 5 k for any integer k . So 3 1 2 1 is the least possible.
How did u get the 3121 initially??By trail and error???
Log in to reply
I was to ask the same, although I got 3121 through Excel with the formula = ( 1 5 6 2 5 ∗ [ n ] + 8 4 0 4 ) / 1 0 2 4 with [ n ] representing the daughters' share and stopping at the point when doing so will give me a whole number.
Manager = 5 coins , then First son = 624 coins Second son = 499 coins Third son = 399 coins Forth son = 319 coins Fifth son = 255 coins Daughters = 204 each
explaination plzz...
Log in to reply
you can read the other comments ,,,, they made my job easy
please explain how you solved it.
Log in to reply
you can read the other comments ,,,, they made my job easy
then y did u wasted your time by just writing the number of coins each get ? It wasn't also needed..
Mr. Christopher Xue explained it very well.....
This is a lengthy problem (for those who don't use computer scripts :P) Let's do it backwards...firstly...the number of coins the last son gets must be a multiple of 25 (as then only each daughter may get integral number of coins) Let the next son have x number of coins... thus (25n+1+x)/5=x (according to question) therefore on solving one may obtain that 25n+1 must be a multiple of 4. This happens only in case on a number ending with 75 (26,51,01 are not divisible by 4) Thus possible openings 75,175,275,375 and so on... also u may neglect multiples that do not begin with an even number(175,375 etc.)...as they add up to give a number which on adding 1 is not divisible by 4 Similarly...we may take into account only multiples of 4 as they dont give a number divisible by 4 in the third step. thus we shorten our list and reach upto 1275 which satisfies the given condition :D 1275+1=1276 1276/4=319 1276+319=1595 1595+1=1596 1596/4=399 1596+399=1995 1996/4=499 1996+499=2495 2496/4=624 2496+624=3120 hence the required answer 3121
I solved it at the same way :D
Problem Loading...
Note Loading...
Set Loading...
Let a i denote the number of coins that the i th son receives. Let x equal the number of coins that the rich man left behind. Note that since the first son receives a 1 coins, and that a 1 equals 1/5th of the remaining coins left after the first step, then there are 4/5 of the remaining coins left at the start of the second step, which is equal to 4 a 1 . Then, the second son receives 5 4 a 1 − 1 coins. This relation also applies to the other sons.
Then, clearly, 5 x − 1 = a 1 5 4 a 1 − 1 = a 2 5 4 a 2 − 1 = a 3 5 4 a 3 − 1 = a 4 5 4 a 4 − 1 = a 5
Substitution into the equation 5 4 a 4 − 1 = a 5 reveals that 6 2 5 2 5 6 a 1 − 3 6 9 = a 5 , or that 2 5 6 a 1 − 3 6 9 = 6 2 5 a 5 .
Coincidentally, 2 5 6 + 3 6 9 = 6 2 5 so, when taken modulo 625, we get a 1 ≡ 6 2 4 ( m o d 6 2 5 ) makes a 5 an integer. Then, from 5 x − 1 = a 1 we get that x = 3 1 2 1 . We must check, however, to see that 3121 allows each of a i to be an integer. It does work. 3121 is also the minimum number of coins that the rich man could leave behind, due to the way that a 1 was expressed mod 625.