So for example, if the sequence is all ones, then the generating function for that sequence is the sum N greater to zero Z to the N, which is geometric sum one / one - Z. or if you have one one-half. 