analytical reasoning

Amar is in wonderland where there are 5 houses serial numbered 1,2,3,4, and 5. When Amar enters the odd numbered houses, the money with him doubles and when he enters the even numbered houses then 1/4th money which he has at that time vanishes. Am…