On periodic solutions of the equation of a nonlinear oscillator with pulse influence