The apparent paradox of the divergent partition function can be resolved, and it does not mean that either quantum theory or statistical mechanics are wrong. You may have access to this article ...