Infosys
Company
Logical Reasoning
Mathematical Reasoning
There are 5 burglars and once went to a bakery to rob it obviously. The first guy ate 1/2 of the total bread and 1/2 of the bread. The second guy ate 1/2 of the remaining and 1/2 of the bread. The third guy ,fourth guy and fifth guy did the same. After fifth guy there is no bread left out. How many bread are there?
Read Solution (Total 5)
-
- First we create a general rule for amount of bread left when each burglar leaves
Lets assume we have x no of bread
At every step x/2 + 1/2 bread is eaten by the burglar
Therefore after each step compared to previous step we have [x-(x/2 + 1/2)] = x/2 - 1/2 bread left.
Now let us go to the problem
Now after 5th burglar leaves we have 0 bread left
Hence number of bread after 4th burglar leaves (or before 5th burglar enters) is calculated by
x/2 - 1/2 = 0
Therefore x = 1
Similarly after 4th burglar leaves we have 1 bread left
Hence number of bread after 3th burglar leaves (or before 4th burglar enters) is calculated by
x/2 - 1/2 = 1
Therefore x = 3
Similarly after 3rd burglar leaves we have 3 bread left
Hence number of bread after 2nd burglar leaves (or before 3rd burglar enters) is calculated by
x/2 - 1/2 = 3
Therefore x = 7
Similarly after 2nd burglar leaves we have 7 bread left
Hence number of bread after 1st burglar leaves (or before 2nd burglar enters) is calculated by
x/2 - 1/2 = 7
Therefore x = 15
Similarly after 1st burglar leaves we have 15 bread left
Hence number of bread before 1st burglar enters is calculated by
x/2 - 1/2 = 15
Therefore x = 31·····························Ans
- 10 years agoHelpfull: Yes(4) No(0)
- 31
- 15 years agoHelpfull: Yes(1) No(1)
- 31
- 15 years agoHelpfull: Yes(1) No(1)
- 31
- 15 years agoHelpfull: Yes(0) No(2)
- (1/2 + 1/2) = 1
2(1 + 1/2) = 3
2(3 + 1/2) = 7
2(7 + 1/2) = 15
2(15 + 1/2) = 31 - 7 years agoHelpfull: Yes(0) No(0)
Infosys Other Question