Find the median of the data a,ar,ar2,......arn where n is an odd number.
a+ar+ar2+⋯+arn−1=a(rn−1)r−1
a+ar+ar2+......+arn−1=a(rn−1r−1) r≠1.