for each sequence find the first 4 terms and the 10th term