On the Partition Function of a One-Dimensional Gas | Synapse