Puzzle | Camels and Travelers

In a desert there are some camels and some travelers. How many camels and travelers are there if both the following statements are TRUE?

  1. If each traveler sit on the camel, one traveler doesn’t get a camel.
  2. If two traveler share each camel there is one camel left out.

 

Answer:
Camels-> 3
Travelers-> 4

Explanation:
As we saw in statement 1, there is a condition that one traveler doesn’t get a camel state that camels is one less than the travelers.
And in statement 2 there is a condition that two travelers share each camel state that traveler must be an even number. So the following cases occur:
1. States that the number of camels is equivalent to the number of travelers minus one.

    camels = travellers - 1    ------(1) 

2. States that the number of camels is going to be equal to half the traveller(because two are on each camel)plus one leftover.



     (travellers/2)+1 = camels  -----(2)

If we solve above two equations we get the result.

This article is contributed by RAHUL SHUKLA. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

My Personal Notes arrow_drop_up
Article Tags :
Practice Tags :


1


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.