Richie Rich

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:

  • First give one coin to manager, and 1/5th of the remaining to the eldest son.
  • Now give one coin to the manager, and 1/5th of the remaining to the second son, and so on and so forth.
  • After giving coins to the 5th son, divide the remaining coins among five daughters equally.
  • Everyone gets an integer number of coins.

What is the minimum number of coins that the rich man had left behind?


The answer is 3121.

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.

5 solutions

Christopher Xue
Mar 5, 2014

Let a i a_i denote the number of coins that the i th i^\text{th} son receives. Let x x equal the number of coins that the rich man left behind. Note that since the first son receives a 1 a_1 coins, and that a 1 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 4a_1 . Then, the second son receives 4 a 1 1 5 \frac{4a_1-1}{5} coins. This relation also applies to the other sons.

Then, clearly, x 1 5 = a 1 4 a 1 1 5 = a 2 4 a 2 1 5 = a 3 4 a 3 1 5 = a 4 4 a 4 1 5 = a 5 \frac{x-1}{5} = a_1 \\ \frac{4a_1-1}{5}=a_2 \\ \frac{4a_2-1}{5}=a_3 \\ \frac{4a_3-1}{5}=a_4 \\ \frac{4a_4-1}{5}=a_5

Substitution into the equation 4 a 4 1 5 = a 5 \frac{4a_4-1}{5}=a_5 reveals that 256 a 1 369 625 = a 5 \frac{256a_1-369}{625} = a_5 , or that 256 a 1 369 = 625 a 5 256a_1-369 = 625a_5 .

Coincidentally, 256 + 369 = 625 256+369=625 so, when taken modulo 625, we get a 1 624 ( m o d 625 ) a_1 \equiv 624 \pmod {625} makes a 5 a_5 an integer. Then, from x 1 5 = a 1 \frac{x-1}{5} = a_1 we get that x = 3121 x = \boxed{3121} . We must check, however, to see that 3121 allows each of a i 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 a_1 was expressed mod 625.

But u should also consider the daughter's share....That should also be integer!!!

Biswadeep Sen - 7 years, 3 months ago

Amazing solution

Mahdi Al-kawaz - 7 years, 3 months ago

nice.

Scofield Itdev - 7 years, 3 months ago

My solution was also like this only but quite a lengthy one.

Malay Pandey - 7 years, 2 months ago
Aditya Joshi
Mar 8, 2014

Let the rich man have a total amount n n . The first son gets n 1 5 \dfrac{n-1}{5} . The second son gets

4 ( n 1 ) 5 1 5 = 4 n 9 25 \Rightarrow \dfrac{\dfrac{4(n-1)}{5} - 1}{5} = \dfrac{4n - 9}{25} .

We can form a recurrence for the amount the x th x^{\text{th}} son receives. The recurrence is as follows

f ( 1 ) = n 1 5 \Rightarrow f(1) = \dfrac{n-1}{5} and

f ( x ) = 4 ( f ( x 1 ) ) 1 5 \Rightarrow f(x) = \dfrac{4(f(x-1)) - 1}{5}

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 + ( 4 5 ) x 1 f(x) = n.4^{x-1}.5^{-x} + \left(\dfrac{4}{5}\right)^{x} - 1

For the fifth, son, that is x = 5 x = 5 , we get an amount 256 n 2101 3125 \dfrac{256n - 2101}{3125} after plugging x = 5 x = 5 in the formula above.

Now, 256 n 2101 3125 \dfrac{256n - 2101}{3125} must be divisible by 5 5 because this amount is divided equally to 5 5 daughters, or in other words,

256 n 2101 15625 \dfrac{256n - 2101}{15625} must be an integer. I found the smallest value of n 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 = 3121 \boxed{n = 3121} .

(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

Tapas Samanta - 7 years, 3 months ago

I love your solutions!!!! They're crystal clear

Sanjana Nedunchezian - 6 years, 10 months ago
Shourya Pandey
Mar 6, 2014

Let y y be the initial number of coins. Each daughter gets 4 ( 256 y 2101 ) 15625 \frac {4 (256y-2101)}{15625} coins. Of course if this is an integer, then all others will get an integer number of coins.

So it remains to solve 256 y = 2101 ( m o d 15625 ) 256 y = 2101 (mod 15625) . This gives y = 3121 + 15625 k y= 3121 + 15625k for any integer k k . So 3121 3121 is the least possible.

How did u get the 3121 initially??By trail and error???

Biswadeep Sen - 7 years, 3 months ago

Log in to reply

I was to ask the same, although I got 3121 through Excel with the formula = ( 15625 [ n ] + 8404 ) / 1024 =(15625*[n] + 8404)/1024 with [ n ] [n] representing the daughters' share and stopping at the point when doing so will give me a whole number.

Ralph Anthony Espos - 7 years, 3 months ago
Harman Deep
Feb 26, 2014

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...

Ak Sharma - 7 years, 3 months ago

Log in to reply

you can read the other comments ,,,, they made my job easy

Harman Deep - 7 years, 3 months ago

please explain how you solved it.

Nancy Suri - 7 years, 3 months ago

Log in to reply

you can read the other comments ,,,, they made my job easy

Harman Deep - 7 years, 3 months ago

then y did u wasted your time by just writing the number of coins each get ? It wasn't also needed..

Vighnesh Raut - 7 years, 2 months ago

Mr. Christopher Xue explained it very well.....

Harman Deep - 7 years, 3 months ago
Saumitra Agrawal
Mar 5, 2014

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

Mahdi Al-kawaz - 7 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...