Write the closed form of the ordinary generating function fo
Write the closed form of the ordinary generating function for each of the following sequences.
(a) 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, . . .
(b) 0, 0, 1, 3, 9, 27, 81, 243, . . .
Solution
(a) Let {xn} be the sequence {2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0 . . .}
Note that xn = 2 for all n = 1, 5, 9, 13... ; and xn = 0 for all n N – {1, 5, 9, 13........}
In other words, xn = 2 for all n of the form 1 + 4k, where k = 0, 1, 2, 3 … and xn = 0 for all n N – {1 + 4k : k = 0, 1, 2, 3 …}
(b) Let {yn} be the sequence {0, 0, 1, 3, 9, 27, 81, 243 . . .}
Hence, y1 = 0, y2 = 0, y3 = 1, y4 = 3, y5 = 9, y6 = 27, y7 = 81, y8 = 243,…
y1 = 0, y2 = 0, y3 = 1 = 30, y4 = 3 = 31, y5 = 9 = 32, y6 = 27 = 33, y7 = 81 = 34, y8 = 243 = 35,……
y3 = 33-3, y4 = 34-3, y5 = 35-3, y6 = 36-3, y7 = 37-3, y8 = 38-3,……..
Hence, we can write a compact form as yn = 3n-3 for all n 3
Therefore, the closed form of the sequence {yn} is y1 = 0, y2 = 0, yn = 3n-3 for all n 3 (Answer)
