The SIR model when S(t) is a multi-exponential function