Determining the first term and common ratio