A statistical theory of polymer compositions based on absorbing Markov chains