Density functional theoretical study of a series of binary azides M(N3)n (n = 3, 4).