Post · 4 min read· pp. 91–92

Quadratically Independent Monomials

Today Arun asked me the following question:

"Under what conditions will a set {p1,…,pn}\{p_1,\ldots,p_n\} of polynomials be quadratically independent, in the sense that {p12,p1p2,p22,p1p3,…,pn−1pn,pn2}\{p_1^2, p_1p_2, p_2^2, p_1p_3,\ldots,p_{n-1}p_n, p_n^2\} is a linearly independent set?"

I wasn't able to make much progress on this general question, but in the specific setting where the pip_i are all polynomials in one variable, and we further restrict to just monomials, (i.e. pi(x)=xdip_i(x) = x^{d_i} for some did_i), the condition is just that there are no distinct unordered pairs (i1,j1),(i2,j2)(i_1,j_1),(i_2,j_2) such that di1+dj1=di2+dj2d_{i_1} + d_{j_1} = d_{i_2} + d_{j_2}. Arun was interested in the largest such a set could be for a given maximum degree DD, so we are left with the following interesting combinatorics problem:

"What is the largest subset SS of {1,…,D}\{1,\ldots,D\} such that no two distinct pairs of elements of SS have the same sum?"

For convenience of notation let nn denote the size of SS. A simple upper bound is (N+12)≤2D−1\binom{N+1}{2} \leq 2D-1, since there are (N+12)\binom{N+1}{2} pairs to take a sum of, and all pairwise sums lie between $2$ and 2D2D. We therefore have n=O(D)n = O(\sqrt{D}).

What about lower bounds on n? If we let S be the powers of 2 less than or equal to D, then we get a lower bound of log⁡2(D)\log_2(D); we can do slightly better by taking the Fibonacci numbers instead, but this still only gives us logarithmic growth. So the question is, can we find sets that grow polynomially in D?

It turns out the answer is yes, and we can do so by choosing randomly. Let each element of {1,…,D}\{1,\ldots,D\} be placed in S with probability p. Now consider any k, $2 \leq k \leq 2D$. If k is odd, then there are (k-1)/2 possible pairs that could add up to k: (1,k-1), (2,k-2),...,((k-1)/2,(k+1)/2). The probability of each such pair existing is p2p^2. Note that each of these events is independent.

S is invalid if and only if there exists some k such that more than one of these pairs is active in S. The probability of any two given pairs being simultaneously active is p4p^4, and there are ((k−1)/22)≤(D2)\binom{(k-1)/2}{2} \leq \binom{D}{2} such pairs for a given kk, hence (D−1)(D2)≤D3/2(D-1)\binom{D}{2} \leq D^3/2 such pairs total (since we were just looking at odd k). Therefore, the probability of an odd value of k invalidating S is at most p4D3/2p^4D^3/2.

For even kk we get much the same result except that the probability for a given value of kk comes out to the slightly more complicated formula (k/2−12)p4+(k/2−1)p3+p2≤D2p4/2+Dp3+p2\binom{k/2-1}{2}p^4 + (k/2-1)p^3 + p^2 \leq D^2p^4/2 + Dp^3 + p^2, so that the total probability of an even value of k invalidating S is at most p4D3/2+p3D2+p2Dp^4D^3/2 + p^3D^2 + p^2D.

Putting this all together gives us a bound of p4D3+p3D2+p2Dp^4D^3 + p^3D^2 + p^2D. If we set p to be 12D−34\frac{1}{2}D^{-\frac{3}{4}} then the probability of S being invalid is then at most 116+18D−14+14D−12≤716\frac{1}{16} + \frac{1}{8} D^{-\frac{1}{4}} + \frac{1}{4}D^{-\frac{1}{2}} \leq \frac{7}{16}, so with probability at least 716\frac{7}{16} a set S with elements chosen randomly with probability 12D−34\frac{1}{2}D^{-\frac{3}{4}} will be valid. On the other hand, such a set has D1/4D^{1/4} elements in expectation, and asymptotically the probability of having at least this many elements is 12\frac{1}{2}. Therefore, with probability at least 116\frac{1}{16} a randomly chosen set will be both valid and have size greater than 12\frac{1}{2}, which shows that the largest value of nn is at least Ω(D1/4)\Omega\left(D^{1/4}\right).

We can actually do better: if all elements are chosen with probability 12D−2/3\frac{1}{2}D^{-2/3}, then one can show that the expected number of invalid pairs is at most 18D1/3+O(1)\frac{1}{8}D^{1/3} + O(1), and hence we can pick randomly with probability p=12D−2/3p = \frac{1}{2}D^{-2/3}, remove one element of each of the invalid pairs, and still be left with Ω(D1/3)\Omega(D^{1/3}) elements in S.

So, to recap: choosing elements randomly gives us S of size Ω(D1/4)\Omega(D^{1/4}); choosing randomly and then removing any offending pairs gives us S of size Ω(D1/3)\Omega(D^{1/3}); and we have an upper bound of O(D1/2)O(D^{1/2}). What is the actual asymptotic answer? I don't actually know the answer to this, but I thought I'd share what I have so far because I think the techniques involved are pretty cool.