Finding the next three terms in the sequence