Molecules and chains in a strong magnetic field - Statistical treatment