Group theory, Markov chains, and excluded volume effect in polymers