Finding the first five terms