Finding the first terms of a sequence using a recursive rule