If we consider $A(x)$ as a generating function of a sequences $a_{n}$, is there any way to find the generating function of, say for example, the sequences : $v_{n}=a_{n}.a_{n+1}$ and $u_{n} = a_{n}^2$ in terms of $A(x)$?
-
I don't expect an easy expression. For instance, you'd be hard pressed to express $\sum\limits_{k=0}^\infty \frac{x^k}{(k!)^2}$ in terms of the exponential function... – J. M. ain't a mathematician Sep 20 '11 at 17:50
-
3What you are looking for is the Hadamard product of generating functions. – marty cohen Sep 20 '11 at 17:51
1 Answers
The problem of doing this is equivalent to the problem of finding the Hadamard product $\sum a_n b_n x^n$ of two generating functions $A = \sum a_n x^n$ and $B = \sum b_n x^n$. (The reason is that $a_n b_n = \frac{(a_n + b_n)^2 - a_n^2 - b_n^2}{2}$.)
Hadamard products are difficult to compute in general. However, many classes of generating functions (e.g. the rational ones) are closed under Hadamard product. One way to compute Hadamard products is to consider the integral
$$\int_{0}^{2\pi} A(r e^{it}) B(r e^{-it}) \, dt = \int_0^{2\pi} \sum_{m,n} a_n b_m r^{n+m} e^{i(n-m)t} \, dt = 2\pi \sum_{n \ge 0} a_n b_n r^{2n}$$
provided that everything converges. If $A, B$ are sufficiently nice functions this integral may be computed in various ways, e.g. using complex analysis. See this blog post for details; there I consider a more general problem, that of computing the diagonal $\sum a_{n,n} x^n$ of a two-variable generating function $A = \sum_{m,n} a_{m,n} x^m y^n$.

- 419,620
-
-
@orlp: it’s fine, that’s what the extra exponent of $2$ on the RHS is for. It’s cleaner to write things this way so the LHS looks more like a contour integral. – Qiaochu Yuan Nov 14 '17 at 20:52
-
Oops, I totally missed that! Do you by any chance know if this method is feasible for rational $A$, $B$? I'm interested in the Hadamard product of rational generating functions $A$ and $B$, and I tried this method but only got super complicated integrals from what I could see. – orlp Nov 14 '17 at 21:56
-
@orlp: yes, but it’s pretty annoying. For rational functions there are easier things to do. – Qiaochu Yuan Nov 14 '17 at 22:42