Quantization of Particle Energy in the Analysis of the Boltzmann Distribution and Entropy