How do you find the next terms of sequence?