In the equal ratio sequence {an}, if a1 + A2 + a3 = 7, a1a2a3 = 8, and the common ratio is greater than 1, find the first sequence N and Sn of the sequence

In the equal ratio sequence {an}, if a1 + A2 + a3 = 7, a1a2a3 = 8, and the common ratio is greater than 1, find the first sequence N and Sn of the sequence

a1a3=a2^2
a1a2a3=8 a2=2
a1+a2+a3=7
a1+a3=5
a1*a3=4
a1=1 a3=4 q=2
A1 = 4 A3 = 1 Q = 1 / 2 (rounding)
Sn=a1(1-q^n)/(1-q)
=2^n-1