Another problem is that the partition function contains too many degrees of freedom. The number of chains n p involved can be very large and every chain has internal degrees of freedom, since they are assumed to be totally flexible. For this reason, it is convenient to introduce collective variables, which in this case is the polymer segment density: