divisor function sigma

fix for some special cases (k=0, e=1,2) in partial sum computation.