Series - algorithm