the math is
 
Bucket Hats