Sunday 3 September 2017

Flower Temple Puzzle

In a small town, there are three temples in a row and a well in front of each temple. A pilgrim came to the town with certain number of flowers.

Before entering the first temple, he washed all the flowers he had with the water of well. To his surprise, flowers doubled. He offered few flowers to the God in the first temple and moved to the second temple. Here also, before entering the temple he washed the remaining flowers with the water of well. And again his flowers doubled. He offered few flowers to the God in second temple and moved to the third temple. Here also, his flowers doubled after washing them with water. He offered few flowers to the God in third temple.

There were no flowers left when pilgrim came out of third temple and he offered same number of flowers to the God in all three temples. What is the minimum number of flowers the pilgrim had initially? How many flower did he offer to each God? 


Suppose in the starting there were x no of flowers
x=no of flowers in the staring
y=no of flowers to each temple

First Temple

2x-y=z

Second temple
2z-y=a

Third Temple
2a=y


-------------------

a=y/2
2z-y=y/2
2z=3y/2
z=3y/4

2x-y=3y/4
x=7y/8

if y= 8
then x=7



Answer - from equation x=7y/8
min of x wlll 7 and further will multiply of 7





No comments:

Post a Comment

Recent Post

Parallel Task in .Net 4.0