In a G.P., $1, \frac{1}{2}, \frac{1}{4}, \ldots$, when the first $n$ number of terms are added, the sum is $\frac{1023}{512}$. Then the value of $n$ is
Show Hint
For G.P. sums, always simplify the denominator early. Converting the result into powers of 2 or 3 often makes solving much faster.