Sum of infinite series and sum of finite series