Determining the common ratio and the first term