On the representation of analytic functions by infinite series