if the ratio of the sum of the first 6 terms of a g . p . to the sum of the first 3 terms of the g . p . is 126 , what is the common ratio of the g . p ?
"126 = ( a 1 + a 2 + a 3 + a 4 + a 5 + a 6 ) / ( a 1 + a 2 + a 3 ) factorize the same terms 126 = 1 + ( a 4 + a 5 + a 6 ) / ( a 1 + a 2 + a 3 ) write every term with respect to r a 1 = a 1 a 2 = a 1 * r ^ 1 a 3 = a 1 * r ^ 2 . . . . . . . . . 126 = 1 + ( a 1 ( r ^ 3 + r ^ 4 + r ^ 5 ) ) / ( a 1 ( 1 + r ^ 1 + r ^ 2 ) ) 125 = ( r ^ 3 ( 1 + r ^ 1 + r ^ 2 ) ) / ( ( 1 + r ^ 1 + r ^ 2 ) ) 125 = r ^ 3 r = 5 d"
power(subtract(126, const_1), divide(const_1, 3))