A theoretical investigation on the structure of the hypervalent carbon and silicon pentahalogenides as well as their singly charged anions