What is max pain?

Max pain is the strike where the most option value expires worthless. How it is calculated, the evidence for and against, and how a gamma magnet differs.