A man of faith visits the holy land where three temple are erected in a row offering a surreal divinity to the place. Awestruck at the sight of the magnificent temples, he visits the first temple where he finds that the number of flowers in his basket increases to double the number as soon as he sets his foot inside the temple. Astonished by the miracle he is completely happy and seeks it as a blessing of his god. He offers a few flowers to the stone idol of god and moves out.
Then he visits the second temple, where the same miracle happens again. The number of flowers in his basket again double up in number. With a smile on his face, he offers a few of flowers to the stone idol again and walks out after praying.
The moment he enters the third temple, the number of flowers increases to double again. Now he feels entirely blessed. He offers all the flowers at the feet of the stone idol and walks out in a moment of bliss.
When he walks out, he has no remaining flowers with him. He offered equal number of flowers at each of the temple. What is the minimum number of flowers he had before entering the first temple? How many flowers did he offer at each temple?