Homotopy pertubation method for a seir model with varying total population size