Maximum entropy in the problem of moments:an analytical study