Finding common difference of a geometric series