December 26, 2022
Útulek Series, 6 | CF1761D Chapter, 6
It seemed appropriate to broach the subject directly today—that is, generating functions. To do this, we will be looking at three functions today: f(x) the Fibonacci sequence generating function, p(x,y) the generating function for Pascal’s triangle, and finally g(x,y) the generating function for 1761D: Gi,j=3Gi−1,j+3Gi−1,j−1−8Gi−2,j−1 (it is minor, but I have since determined that G is a better letter to use than A for 1761D), which, as a reminder, generates
1392781….1415543135294227
1 Deriving the Generating Functions
As in the proof for ζ(2) in Taylor Series, we utilize the properties of a polynomial to gain more information on its coefficients. The theory of generating functions begins by assigning the sequence as the coefficients of the polynomial:
We then proceed to reduce the generating function into a recurrent form for easier analysis. This is quite trivial for one-dimensional recurrences, but two-dimensional ones need some care around boundary conditions. As
which is now the sum of two geometric sequences in x. We may take the coefficient of xi then as
Fi=[xi]f(x)=51((25+1)i+(25−1)i)
which coincides with Binet’s formula as expected.
3 Solving the Pascal
This one was very tricky for me but I ended up solving it at the end of the day.
The key here is sequential isolation of the variable powers with liberal use of geometric series reinterpretations. Of course, one should expect combinatorial arguments to arise at some point. We use [x] to denote “the coefficient of x.”
at which point we must use stars and bars with i−j stars and j bars:
Pi,j=j!(i−j+1)(i−j+2)⋯(i)=(ji).
The reason radicals don’t show up here is likely to due with the degrees of the variables and the dimension of the recurrence. It has to do with how simple the second term 1/(1−1−xxy) is. I think there’s some simple condition that I’m missing here, but I will sleep on it.
which only applies to j≥1 and must have 3i−2k zeroed out when 2k>i, or alternatively, also from the same post,
Gi,j=k=1∑2j3i−k(⌊k/2⌋i−j)(⌈k/2⌉−1j−1)
which has floor and ceiling functions out of nowhere and likewise also only applies for j≥1.
The form of solutions to two-dimensional recurrences must be intimately related to its order and degree. I intend to explore this relationship briefly in the future.