6.7 The denominator of the geometric progression is $\frac{1}{3}$, the fourth term of this progression is $\frac{1}{54}$, and the sum of all its terms is $\frac{121}{162}$. Find the number of terms in the progression.
6.7 Since $b_{4}=b_{1} q^{3}$, then $\frac{1}{54}=b_{1} \cdot \frac{1}{27}$, from which $b_{1}=\frac{1}{2}$. Now, using formula (6.7a), we get the equation

$$
\frac{\frac{1}{2}\left(1-\frac{1}{3^{n}}\right)}{\frac{2}{3}}=\frac{121}{162}, \text { or } 1-\frac{1}{3^{n}}=\frac{121 \cdot 4}{162 \cdot 3}, \text { or } 1-\frac{1}{3^{n}}=\frac{242}{243}
$$

from which we find $n=5$.

Answer: 5.