Atomic structures and electronic properties of layered graphitic carbon nitride are studied by
means of ab initio computer simulation. All the structures investigated were found to be
semiconductors with the band gaps lying in the range of 0.5-1.0 eV. The impact of number of layers
and their interaction on the band gap are analyzed