Statistical Theory of Many-Electron Systems. Discrete Bases of Representation