Consider a model in which the particles are distinguishable,
non-interacting, and have only two possible velocities and .
Since the particles are non-interacting, the size of the system and the
positions of the particles are irrelevant. Consider a system of of
such particles and fixed energy . (the mass of the particles is
taken to be unity) The number of possible microstates with these
constraints is . The enumeration of these configuration allows us
to calculate the ensemble averages for the physical quantities of the
system. The enumeration procedure is equivalent to the one used to
enumerate 1D random walks. If we fix the number of particles moving
to the right, the number of configurations for a given are 1, 4, 6, 4,
1 for 0, 1, 2, 3, 4, respectively, and the corresponding probabilities
are 1/16, 4/16, 6/16, 4/16, 1/16. Hence, the mean number of
particles moving to the right is