Predicting the next numbers in a sequence