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.