Theory and application of infinite series