(color online) Optimized configurations of Mg-coated B12C6N6Mgn. The preferred binding sites for Mg atom are the B2C2 rings.