Question: There are 100 prisoners lining up to go to jail. Each prisoner is wearing a hat that is either black or white. The prisoners don't know their own hat color, just the hat color of those in front of them in line (the first prisoner in line can't see anyone's hat and the last prisoner can see everyone's hat except their own). Starting from the back, one of the guards asks each prisoner what color their hat is. If they are correct they get to go free but if they are wrong they go to jail.If the prisoners get to discuss a plan, how can at least 99 of them be saved?
Answer: The back prisoner will yell "black" if there is an odd number of black hats in front of him and "white" if there is an even number of black hats in front of him. The next prisoner will then count the number of black hats in front of him and if it was odd and is now even, or vice versa, then that person knows what color their hat is. The next person then knows their hat color based on what the people before them said and how many black hats are in front of them. In this way the front 99 prisoners will know their hat color and will be set free. The prisoner in the back who goes first has a 50 percent chance of being set free.
Question: Man walks into a store and says to the shop owner: “I will spend $10 in your store if you double the amount of money I now have in my pocket.” Store owner agrees; doubles his money; he spends $10 and leaves. He repeats this at 2 more stores. When he leaves the 3rd store he has $0 dollars. How much money did he have in his pocket when he walked into the first store?
Answer: You have to solve this starting with the last store. This means he walked into the 3rd store with $5, had it doubled to $10 and spent the whole $10. He entered the 3rd store with $5.00. He spent $10, so he had $15 after his money was doubled. $15 / 2= Means he had $7.50 when he entered the 2nd store. He left the 1st store with $7.50. He spent $10 so he had $17.50 after his money was doubled; $17.50 divided by 2. So, he started out with $8.75 when he walked into the first store.