I'm trying to understand the generating function for this sequence: Triangle read by rows, 0 <= k <= n: T(n,k) = binomial(n-[(k+1)/2],[k/2])*(-1)^[(k+1)/2]. It's a triangle, and I'm trying to find the function $F(r, x)$ such that I can substitute $r$ for the row number, and end up with the generating function in terms of $x$.
In the OEIS page I've linked, they give the generating function as $$A(x, y) = \frac{1 - xy}{1 - x + x^2y^2}$$ however, if I substitute the row $r=3$ for either $x$ or $y$ in A (what I assume would be a natural place to number the rows), and then do polynomial long division [starting with low-order terms], I most certainly do not get the generating function for $x$.
For example, with $y=3$, I get the polynomial $p(x) = 1 - 2x -11x^2 +7x^3+106x^4...$, which is certainly not the third row of the triangle [listed below and on the website.]
1 ;
1, -1 ;
1, -1, -1 ;
1, -1, -2, 1 ;
1, -1, -3, 2, 1 ;
1, -1, -4, 3, 3, -1 ;
1, -1, -5, 4, 6, -3, -1 ;
I have three questions:
- How should I understand the generating function given, A?
- Is it possible for a finite sequence to have a generating function?
- What is the $F(r, x)$ I'm looking for in this case?