If a be the first term, b the nth term and p the product of n terms of G.P.,show that p2=(ab)n.