Q. What is the generating function for the sequence 1,1,1,1,1,1? Ans. The generating function for the sequence is $1+x+x^2+x^3+x^4+x^5.$
Now we have ** $\frac{(x^6-1)}{(x-1)} = 1+x+x^2+x^3+x^4+x^5$.**
Consequently, $G(x) = \frac{x^6-1}{x-1}$ is the required generating function.
I don't understand the line closed by **. What method has been applied to get that.
for any $f(x) = 1+x+x^2+x^3+\cdots+x^n$
Multiply both sides by by $(x-1)$
You'll have $f(x)(x-1) = x^{n+1}-1$
$=> f(x) = \frac{x^{n+1}-1}{x-1}$