| |
GeekInterview.com > Placement Papers > Infosys > Analytical
| Print | |
Question: Four Friends A, B, C and D are living in a hostel. One day A’s uncle came and gave him a box of laddoos, According to their rule whatever they get will be equally divided among them. So A divided the laddoos into four equal parts and he ate his part. Then B came to the room and he divided the laddoos into four equal parts and A and B ate their part. Then C came to the room he divided the laddoos into four equal parts and he ate his part. Then at the last D came to the room he also divided the laddoos into four equal parts and he ate his part. The number of laddoos D ate was 3.
1. How many laddoos did A eat?
2. How many laddoos did B eat?
3. How many laddoos did C eat?
4. How many laddoos were there in the box altogether?
|
| March 03, 2008 05:52:19 |
#5 |
| vreswar |
Member Since: March 2008 Total Comments: 1 |
RE: Four Friends A, B, C and D are living in a hostel. One day A’s uncle came and gave him a box of laddoos, According to their rule whatever they get will be equally divided among them. So A divided the laddoos into four equal parts and he ate his part. |
Hi All, My approach is quite simple:
Say there are x laddoes. A shares x/4 each to himself, B,C,D. n eates it (A=x/4) B comes and shares x/4*4 to each and eat (A=x/4+x/16, B=x/16) C comes , shares x/4*4*4 to each and eat (A=x/4+x/16, B=x/16, c=x/64) D comes, shares x/4*4*4*4 to each and eat (A=x/4+x/16, B=x/16, c=x/64, D=x/256)
as its given D eats 3: x/256 =3 => x=768 (Clear)
let us check it with c = x/64 => 768/64 = 12
B = x/16 =>768/16 = 48
A = x/4 + x/16 => 192+48 = 240
A=240, B=48,C=12 D=3.
|
| |
Back To Question | |