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 343 , what is the common ratio of the g . p ?
"343 = ( a 1 + a 2 + a 3 + a 4 + a 5 + a 6 ) / ( a 1 + a 2 + a 3 ) factorize the same terms 343 = 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 . . . . . . . . . 343 = 1 + ( a 1 ( r ^ 3 + r ^ 4 + r ^ 5 ) ) / ( a 1 ( 1 + r ^ 1 + r ^ 2 ) ) 342 = ( r ^ 3 ( 1 + r ^ 1 + r ^ 2 ) ) / ( ( 1 + r ^ 1 + r ^ 2 ) ) 342 = r ^ 3 r = 7 d"
power(subtract(343, const_1), divide(const_1, 3))