The Seven Hat Problem and Error Correcting Codes The power of mathematical notation and reasoning is exploited to relate a famous recreational mathematics problem (hat problem) with an important method for sending and receiving messages that have a small percentage of errors (Hamming codes). The primary tool that is used is the Venn diagram. (Javascript is required to view Mediasite content)