In each of the following GP the first second and last term are given. Find the common ratio . The number of term in each case

r = a2/a1