The first and last terms of a G.P. are a and l respectively; r being its common ratio; then the number of terms in this G.P. is