how to find the first four terms