Let the four positive consecutive terms of the G.P. be a,ar,ar2,ar3 where a>0 and r>0 is the common ratio.
Sum of the four terms:
a+ar+ar2+ar3=126
⇒a(1+r+r2+r3)=126 −(1)
Product of the four terms:
a⋅ar⋅ar2⋅ar3=1296
⇒a4r6=1296
⇒a4=1296r−6
⇒a=12961/4r−3/2=6r−3/2 −(2)
Substituting a from (2) into (1):
6r−3/2(1+r+r2+r3)=126
⇒1+r+r2+r3=21r3/2 −(3)
Introduce the substitution r=x2 with x>0. Then r3/2=x3.
Equation (3) becomes
x6+x4+x2+1=21x3
⇒x6+x4+x2−21x3+1=0 −(4)
Divide (4) by x3 (since x>0):
x3+x+x1+x31−21=0
Define y=x+x1(y≥2).
Using the identity x3+x31=y3−3y, the above equation becomes
(y3−3y)+y−21=0
⇒y3−2y−21=0 −(5)
Check integral values for y.
For y=3:33−2(3)−21=27−6−21=0, hence y=3 is a root.
Factorising (5):
(y−3)(y2+3y+7)=0
The quadratic y2+3y+7=0 has negative discriminant, so the only real root is y=3.
Thus x+x1=3.
Solve for x:
x2−3x+1=0
x=23±9−4=23±5
Both roots are positive, hence
Case 1: x1=23+5⟹r1=x12=4(3+5)2=27+35
Case 2: x2=23−5⟹r2=x22=4(3−5)2=27−35
Therefore, the common ratio can take two positive values r1 and r2.
The required sum of these ratios is
r1+r2=27+35+27−35=214=7
Hence, the sum of the common ratios of all such G.P.s is 7.
So, the correct option is Option A.