Abstract. The continuation of the previous series of papers related to the construction of the energy matrix for complex atoms is presented. The contributions from the second-order perturbation theory concerning electrostatically correlated spin-orbit interactions (CSO), as well as electrostatically correlated hyperfine interactions (CHFS) to the atomic structure of nl N , nl N n1lconfigurations, are considered. This theory assumes that the electron excitation n 0l0 → nl affects spin-orbit splitting and magnetic dipole and electric quadrupole hyperfine structure in the same way which will be discussed below. Part I of the series presented, in general terms, a method allowing the analysis of complex electronic systems. Parts II, III and IV provided a description of an electrostatic interaction up to second-order perturbation theory; they constitute the basis for the design of an efficient computer program package for large-scale calculations of accurate wave functions. Analyses presented in the entire series of our papers clearly demonstrate that obtaining the precise wave functions is impossible without considering the contribution from the second-order effects into fine and hyperfine atomic structure.