formula for findin the common ratio of a G.P

just divide any term by the preceding one, since the terms are

a, ar, ar^2, ar^3, ...