The partition function and the Gibb's free energy are calculated exactly in the thermodynamic limit, using techniques which are well known in the theory of superconductivity. This calculation illustrates explicitly the similarity between the phase transition in superconductivity and the molecular field transitions in spin systems.