Fractional fermion number at finite temperature