The arithmetic of supersymmetric vacua