Buy the book
How can an infinite number of mathematicians figure out their own hat colours?
How can 4 friends guess their own hat colours?
Think of a number between 1 and 10. Multiply it by 9 and subtract 1. Now close your eyes. It got dark, didn't it?