2

What is the coefficient $c$ of the term $x_1^2x_2^2x_3^2\cdots x_{12}^2$ in the expansion of the following multivariable polynomial:

$(x_1-x_2)(x_1-x_3)(x_1-x_4)(x_1-x_{10})(x_2-x_3)(x_2-x_5)(x_2-x_{11})(x_3-x_6)(x_3-x_{12})(x_4-x_5)(x_4-x_6)(x_4-x_7)(x_5-x_6)(x_5-x_8)(x_6-x_9)(x_7-x_8)(x_7-x_9)(x_7-x_{10})(x_8-x_9)(x_8-x_{11})(x_9-x_{12})(x_{10}-x_{11})(x_{10}-x_{12})(x_{11}-x_{12})$

If we recognized each $x_i$ as a vertex and each factor as a edge, then we get a quadrilateral tessellation of the torus. The above polynomial is actually as the graph polynomial of the following quadrangulation of the torus:

enter image description here

I hope someone can give an algorithm to get the coefficient of the term $x_1^2x_2^2x_3^2\cdots x_{12}^2$ in the expansion of the above graph polynomial. Thank you very much!

Jacob.Z.Lee
  • 767
  • 3
  • 11
  • Would you mind editing your question so that it states the general question (written in the comments of Carlo Beenakker's answer) rather than just this special case? – j.c. Jun 04 '18 at 15:39

3 Answers3

5

With slightly different notations (and with the opposite sign), we look for the coefficient of $\prod a_i^2b_i^2c_i^2$ in the polynomial $F:=\prod_{i=1}^{2n} (a_{i+1}-a_i)(b_{i+1}-b_i)(c_{i+1}-c_i)\cdot \prod_{i=1}^{2n} (a_i-b_i)(b_i-c_i)(c_i-a_i)$, where indices are taken modulo $n$. We may apply this formula for all sets $A_i=\{0,1,2\}$. How does a non-zero value of $F$ occur? For each $i$, $[a_i,b_i,c_i]$ is a permutation $\pi_i$ of $0,1,2$, and $\pi_{i+1}$ is obtained from $\pi_i$ by a cyclic shift (there are two possible shifts). If we introduce $\varepsilon_i=\pm 1$ dependently on which shift is used, then $\sum \varepsilon_i$ must be divisible by 3 and the value of the polynomial is $4^{2n}\prod \varepsilon_i$. The denominator in the formula is always $4^{2n}$. So the coefficient equals $$6\sum_{3|\varepsilon_1+\dots+\varepsilon_{2n}}\varepsilon_1\cdot \ldots \cdot\varepsilon_{2n}=6\sum_{3 |m-n} (-1)^m\binom{2n} {m}, $$ 6 corresponds to the choice of $\pi_1$, $m$ denotes the number of negative $\varepsilon$'s. The sum equals $\frac13((1-1)^{2n}+w^{-n}(1-w)^{2n}+w^{-2n}(1-w^2)^{2n})=\frac23 (-3)^n$, where $w=e^{2\pi i/3}$, thus the answer is $4(-3)^n$.

Here we use the fact (somebody here on MO told how is it called but I forgot) that for a Laurent polynomial $f(z)=\sum a_j z^j$ and a positive integer $n$ we have $$\sum_{k\equiv \alpha\pmod n} a_k=\frac1n\sum_{\omega:\omega^n=1} \omega^{-\alpha}f(\omega).$$

Fedor Petrov
  • 102,548
  • Erm... The non-zero value may also come from the product of second and fourth powers. How do you account for those? – fedja Jun 04 '18 at 15:02
  • @fedja I am afraid that I do not understand you. Which second and fourth powers? – Fedor Petrov Jun 04 '18 at 15:37
  • Ah, yes, sorry. I just misunderstood the argument entirely. No objection then. – fedja Jun 04 '18 at 16:15
  • @FedorPetrov Great works! Thanks a lot! I will check it . But where can I find the proof of this formula about the coefficient of $\prod_{i=1}^{n}x_i^{d_i} $ in the expansion of the polynomial $ f(x_1, x_2,\cdots, x_{n})$? – Jacob.Z.Lee Jun 05 '18 at 14:45
  • @FedorPetrov I calculated some of them.The value of the polynomial should be $4^{2n}\prod_{i=1}^{2n}\epsilon_i$ and the denominator in the formula is always $4^{2n}$, aren't they?. how can we get the equality of the following: $6\sum_{3|\varepsilon_1+\dots+\varepsilon_{2n}}\varepsilon_1\cdot \ldots \cdot\varepsilon_{2n}=6\sum_{3 |m-n} (-1)^m\binom{2n} {m}.$ and why the sum equals $\frac13((1-1)^{2n}+w^{-n}(1-w)^{2n}+w^{-2n}(1-w^2)^{2n})=\frac23 (-3)^n$. Would you like to explain them in detail? I will appreciate it. – Jacob.Z.Lee Jun 05 '18 at 15:16
  • @Jacob.Z.Lee we fix $\pi_1$ (6 ways to do so), after that we choose $\varepsilon$'s so that their sum is divisible by 3 and sum up $\prod \varepsilon_i$. – Fedor Petrov Jun 05 '18 at 15:43
  • You may read the proof of the formula in any of references I give in the referred MO answer, for example, in our paper with Karasev which I may send you if you write an e-mail. – Fedor Petrov Jun 05 '18 at 15:53
  • @FedorPetrov Great. I got it. Thank you very much. – Jacob.Z.Lee Jun 05 '18 at 21:07
  • @FedorPetrov Great ! I have found the proof of this formula from the references and your paper with Karasev. Thanks a lot! – Jacob.Z.Lee Jun 05 '18 at 21:35
  • @FedorPetrov When we consider the case about $C_5\times C_{2n}$ and we look for the coefficient of $\prod a_i^2b_i^2c_i^2d_i^2e_i^2$ in the polynomial $F:=\prod_{i=1}^{2n} (a_{i+1}-a_i)(b_{i+1}-b_i)(c_{i+1}-c_i)(d_{i+1}-d_i)(e_{i+1}-e_i)\cdot \prod_{i=1}^{2n} (a_i-b_i)(b_i-c_i)(c_i-d_i)(d_i-e_i)(e_i-a_i)$, where indices are taken modulo $n$. Can we solve this problem through above methods? – Jacob.Z.Lee Jun 07 '18 at 00:00
  • For each i, let $A_i={ 0,1,2},i=1,2,\cdots, 2n$, $[a_i,b_i,c_i,d_i,e_i]$ is a permutation from the set ${ 0,1,2}$. There are many cases,not like $C_3\times C_{2n}.$ The cases about $C_5\times C_{2n}$ become more complicated. – Jacob.Z.Lee Jun 07 '18 at 00:00
  • 1
    We have 30, I guess, possible values for $[a_i,b_i,c_i,d_i,e_i]$ (proper 3-colorings of a 5-cycle.) Denote them ${P_i},1\leqslant i\leqslant 30$, further, if $P_k=[v_1,v_2,v_3,v_4,v_5]$ ($v_6:=v_1$), and $P_m=[u_1,u_2,u_3,u_4,u_5]$, we denote $h_k=(-1)^{\sum_{i=1}^5 v_i}\prod_{i=1}^5 \frac{v_{i+1}-v_i}{\binom{4}{v_i}}$; $A_{k,m}=h_k \prod_{i=1}^5 (u_i-v_i)$. The answer is the trace of the matrix $A^{2n}$. It remains to find the eigenvalues of $A$. – Fedor Petrov Jun 07 '18 at 06:34
  • @FedorPetrov Good. Yes, there is 30 possible values for $[a_i,b_i,c_i,d_i,e_i].$ I will try to find them (eigenvalues of $A$) out. – Jacob.Z.Lee Jun 07 '18 at 22:25
  • @FedorPetrov How does the matrix $A$ come from? Does it from the coefficient formula? Why the answer is the trace of $A^{2n}?$ It has taken me a few days to think about it, but I am still confused. Would you like to explain it in detail? Thanks a lot! – Jacob.Z.Lee Jun 14 '18 at 02:05
  • $tr(A^{m})=\sum A_{i_1,i_2} A_{i_2,i_3}\dots A_{i_m,i_1}$ over all $m$-tuples $(i_1,\dots,i_m)$ of the rows of $A$. In our situations the rows of $A$ are enumerated by proper 3-colorings $[a,b,c,d,e]$ of a 5-cycle, and we have to sum up exactly such a product (for $m=2n$). – Fedor Petrov Jun 15 '18 at 08:04
  • @FedorPetrov Does the matrix $A$ come from the coefficient formula? – Jacob.Z.Lee Jun 17 '18 at 01:38
  • I mean, did you introduce the matrix $A$ by the coefficient formula? – Jacob.Z.Lee Jun 17 '18 at 02:08
  • @FedorPetrov: I think the root of unity trick is called "Simpson's dissection". It is mentioned in the book by Andrews, Askey and Roy on special functions. – Abdelmalek Abdesselam Jun 21 '18 at 21:12
  • @AbdelmalekAbdesselam Thank you very much! yes, actually , it is a multisection of a power series, which was first discovered by Thomas Simpson. – Jacob.Z.Lee Jun 22 '18 at 10:56
3

Note that the problem asks essentially for the number of arrow arrangements on the edges such that at each vertex 2 arrows meet except these arrangements are counted with sign, which is $(-1)^N$ where $N$ is the number of "down" arrows plus the number of "right" arrows. For odd $m$ we immediately see from here that the answer is zero: the horizontal flip changes the parity of $N$, so each symmetric pair of arrangements cancels out.

Now take $m=2n$. We can immediately discard all arrangements that have vertical $3$-cycles because inverting such a cycle results in an admissible arrangement of the opposite parity. If we look at what is left, we see that in each column the numbers of vertical arrows converging at the 3 vertices in the column are 0,1,2 in some order and those numbers determine the arrows. The cyclic shifts of $\begin{bmatrix}0\\1\\2\end{bmatrix}$ have 2 downward arrows and, thereby, do not influence the parity, while the cyclic shifts of $\begin{bmatrix}2\\1\\0\end{bmatrix}$ have $1$ downward arrow. Now let's write those numbers and see what the horizontal arrows may be. If you see $2$ or $0$, it is clear, so the interesting part is $1$. Fix one column to start with and look at the direction of the horizontal arrows passing through $1$ in this column. Since the horizontal flip does not change the parity now, we can assume it is to the right and then just double the answer. Let's see what can be in the next column. You have two choices: either you keep $1$ in the same position and $0$ and $2$ flip (thus changing the column orientation), or you follow $1$ by $0$ (it cannot be $2$ because then you'll have too many arrows there), $2$ by $1$, and $0$ by $2$. Notice that the orientation of the horizontal arrows passing through the new $1$ is still to the right and if you choose the second option, then $1$ is shifted by a single position in the direction determined by the column orientation. Thus you have an oriented graph whose vertices are 6 rearrangements of $\begin{bmatrix}0\\1\\2\end{bmatrix}$ in which you want to count the cycles with signs. Note that the contribution to the parity of the horizontal arrows is just the sum of horizontal positions of $2$'s minus the sum of horizontal positions of $0$'s in each row, but if you sum over rows, you get $0$ because in each position (column) there is one $2$ and one $0$. Now you set up the $6$ by $6$ transition matrix for this problem (which looks something like $$ \begin{bmatrix} 0 & -1 & 1 & 0 & 0 & 0 \\ 1 & 0 & 0 & 0 & 0 & -1 \\ 0 & -0 & 0 & -1 & 1 & 0 \\ 0 & -1 & 1 & 0 & 0 & 0 \\ 1 & 0 & 0 & 0 & 0 & -1 \\ 0 & -0 & 0 & -1 & 1 & 0 \end{bmatrix} $$ ("something like" because you may enumerate the positions differently from me; my original mistake was to put all $1$'s), note that it projects everything to a 3-dimensional subspace, on which it acts as $$ \begin{bmatrix} 0 & -1 &1 \\ 1&0&-1 \\ -1&1&0 \end{bmatrix} $$ and compute the eigenvalues which are $0$, $\pm\sqrt 3i$. Thus the count (which is just the trace of the $2n$-th power of this transition matrix) is $2(-3)^n$ and we have to double it.

This is a bit sketchy, so feel free to ask questions. Alas, it does not help much with the $m\times n$ case.

fedja
  • 59,730
2

Mathematica tells me the requested coefficient is $-36$.


In response to the comments, I evaluated the coefficient for larger arrays, of size $m\times n$. Denoting the absolute value of the coefficient by $C_{m,n}$ I find: $$C_{3,2}=12,\;\;C_{3,4}=36,\;\;C_{3,6}=108,\;\;C_{3,8}=324,\;\;C_{3,10}=972,$$ in agreement with the formula $C_{3,2p}=4\cdot 3^p$. Continuing to other values of $m$, I find

$$C_{2,2}=18,\;\;C_{2,4}=114,\;\;C_{2,6}=858,\;\;C_{2,8}=7074,$$ $$C_{4,2}=114,\;\;C_{4,4}=2970,\;\;C_{4,6}=98466,$$ $$C_{5,2}=180,\;\;C_{5,4}=4380,$$ $$C_{6,2}=858,\;\;C_{6,4}=98466.$$

Guess: the coefficients $C_{m,n}$ for $m$ and $n$ both even equal the number of Eulerian orientations of the torus grid graph $C_{m}\times C_n$, given by OEIS A29811:

This implies in particular that $C_{2p,2q}=C_{2q,2p}$. The value of $C_{2p,2q}$ follows from the even powers of the generating function $F_{2p}(x)$ given by $$F_2(x)=\frac{2 x \left(12 x^2-15 x+4\right)}{(1-x) (1-2 x) (1-3 x)},$$ $$F_4(x)=\frac{2 x \left(300 x^4-812 x^3+651 x^2-183 x+16\right)}{(1-x) (1-2 x) (1-5 x) \left(4 x^2-7 x+1\right)}.$$ I have not found a result for generating functions $F_{2p}(x)$ for $p>2$, is this an open problem?

Carlo Beenakker
  • 177,695
  • Indeed, $36$ it is (plus or minus depends on how you enumerate the vertices). Is Mathematica able to do the $3\times 40$ tesselation? (the human answer is plus or minus $2^{41}+4$ but humans are error-prone, you know...) – fedja Jun 03 '18 at 21:42
  • @Carlo Beenakker right answer. But I prefer to know how to calculate the answer out by hand. Is there any pattern in coefficient of the term in the expansion of the polynomial? – Jacob.Z.Lee Jun 03 '18 at 22:33
  • @fedja Yes, the case will be more complicated when there are more vertices and edges. – Jacob.Z.Lee Jun 03 '18 at 22:38
  • @Jacob.Z.Lee Is there any pattern I believe that for $3\times m$ the answer is $2^{m+1}+4(-1)^m$ (again, up to the sign, which is enumeration dependent). The general $n\times m$ is still a mystery for me. – fedja Jun 03 '18 at 23:17
  • @fedja In general, Let $G$ be the cartesian product graph $C_3\times C_{2n}$ and $P_G(x_1,x_2,\cdots, x_{6n})$ be the graph polynomial of $G$. I guess the coefficient of the term $x_1^2x_2^2\cdots x_{6n}^2$ is $(-1)^{n-1} 3^{n}\times 4 $ for $ 3\times 2n$, the answer is $0$ for $3\times (2n-1)$. I know the pattern, but I can't prove its correctness. – Jacob.Z.Lee Jun 04 '18 at 00:48
  • @Jacob.Z.Lee You are probably right for $3$ by odd (I missed the cancellations there). However for $3\times 4$ your formula gives $-12$, which is certainly wrong. – fedja Jun 04 '18 at 00:49
  • @fedja In general, Let $G$ be the cartesian product graph $C_3\times C_{2n}$ and $P_G(x_1,x_2,\cdots, x_{6n})$ be the graph polynomial of $G$. I guess the coefficient of the term $x_1^2x_2^2\cdots x_{6n}^2$ in the expansion of the polynomial $P_G(x_1,x_2,\cdots, x_{6n})$ is $(-1)^{n-1} 3^{n}\times 4 $ for $ 3\times 2n$, the answer is $0$ for $3\times (2n-1)$. I know the pattern, but I can't prove its correctness. – Jacob.Z.Lee Jun 04 '18 at 00:55
  • @Jacob.Z.Lee Then we diverge on $3\times 6$ for the first time. I predict $\pm 132$ and you $108$. I guess we should ask the computer who is right and if it is I, I'll post the argument, but if it is you, I'll look for a mistake in my reasoning. :-). I don't have any fancy CAS on my old laptop. Do you? – fedja Jun 04 '18 at 01:00
  • @Jacob.Z.Lee And yes, I agree that it is $0$ for odds. My stupidity, sorry for that. So, $2^{2n+1}+4$ for evens up to the sign. – fedja Jun 04 '18 at 01:05
  • @fedja -- using Mathematica, I find that the $3\times 6$ coefficient is 108. – Carlo Beenakker Jun 04 '18 at 10:24
  • @CarloBeenakker OK, looking for ar error then. :) – fedja Jun 04 '18 at 12:31
  • @CarloBeenakker Found it. I missed some more cancellations. Indeed, $4\cdot 3^n$ it is. Looks like it is time to post now ;-) – fedja Jun 04 '18 at 13:18
  • 1
    @CarloBeenakker "for m and n both even equal the number of Eulerian orientations" That was exectly my starting point and then I got confused with cancellations in the odd cases a bit. But how do you count those for big sizes? OEIS gives no hint whatsoever. – fedja Jun 04 '18 at 14:58
  • 1
    One reference for the connection between the coefficients of the graph polynomial and Eulerian orientations is Lemma 2.2 of "Colorings and orientations of graphs" by Alon and Tarsi http://www.cs.tau.ac.il/~nogaa/PDFS/chrom3.pdf . In particular, your guess holds true. – j.c. Jun 04 '18 at 15:54
  • @fedja --- "how do you count those big sizes?" --- I found generating functions for $C_{2p,2q}$ with $p=1,2$ --- no idea whether these are known for larger $p$. – Carlo Beenakker Jun 05 '18 at 11:44