Fractional occupation in the hartree-fock method