Everyday, a fox catches 5 crocodiles and locks them in a cave. Every day, he takes
one of the crocodile randomly, and tells, “If you can part the crocodiles into seven,
I will free you and eat the rest of the crocodiles. But if you can’t, I will eat you and
leave the rest alive but captive.” If the month is of 31 days, how many crocodiles
will be there in the cave after one month?
Chittagong-2014
- seemanta001
- Posts:13
- Joined:Sat Jun 06, 2015 9:31 am
- Location:Chittagong
Re: Chittagong-2014
The answer is 17.
If a crocodile cannot part the others into 7 then everyday there are 4 new crocodiles added on. So, firstly, we have to find the minimum of n when 4n divisible by 7. Here n = 7. So, on the 7th day a crocodile will be able to part the others into 7. Thus, on the 8th day there will be only 1 crocodile remaining.Now we have to find the minimum of n when 4n + 1 divisible by 7. Here n = 5; There are another 24 days in the month . So, we can say that after 5 * 4 or 20 more days, on the (7 + 20)27th day, again there will be only 1 crocodile remaining.Hence, after 31 days, there will be 17 crocodiles remaining.
If a crocodile cannot part the others into 7 then everyday there are 4 new crocodiles added on. So, firstly, we have to find the minimum of n when 4n divisible by 7. Here n = 7. So, on the 7th day a crocodile will be able to part the others into 7. Thus, on the 8th day there will be only 1 crocodile remaining.Now we have to find the minimum of n when 4n + 1 divisible by 7. Here n = 5; There are another 24 days in the month . So, we can say that after 5 * 4 or 20 more days, on the (7 + 20)27th day, again there will be only 1 crocodile remaining.Hence, after 31 days, there will be 17 crocodiles remaining.