Abstract
We study rainbow solutions to linear equations modulo a prime p, where the residue classes are partitioned into n color classes. Using the Fourier method, we derive a universal lower bound that depends only on the class densities and a single spectral parameter: the Fourier bias (the largest nontrivial Fourier coefficient) of each class. When the biases are at the square-root cancellation scale (for random colorings, up to a factor), the bound recovers the optimal growth with an explicit leading constant and negligible error. Our results complement recent work: in low-bias regimes (pseudorandom or random) they yield sharper quantitative bounds with transparent constants, and the bound requires no extra hypotheses such as coefficient separability.
Keywords:
rainbow solutions; finite fields; additive combinatorics; Fourier analysis; Fourier bias; Gauss sums; random colorings MSC:
11B30; 05D10; 11T23; 43A25
1. Introduction
Let denote the finite field of order p (with p prime), and write . Fix , set (the set of colors), and call an n-coloring of a map . For , let ; then the chromatic classes form a partition .
Given nonzero coefficients and , consider the linear equation
A solution is monochromatic if all coordinates lie in the same chromatic class, and rainbow (ordered) if each color appears exactly once (i.e., the tuple intersects every ). Throughout, following the notation in previous work [1], we denote by the set of rainbow solutions of L under the coloring , and by its cardinality.
While lower bounds for monochromatic solutions are well established (see, e.g., [2,3,4,5]), the rainbow case is comparatively less explored. Early work focused on structural and existence aspects; see, for instance, [6,7,8,9,10,11]. Quantitative bounds for specific equations have also appeared. For , bounds for the equation under certain colorings were proved ([12] Proposition 1); see also ([13] Proposition 11), and later extended to more general equations and colorings [14]. A quantitative bound for the general case was obtained only recently ([1] Theorem 1.2). That result ensures that, given and with
if the coefficients satisfy the separability condition for some distinct , then for every n-coloring satisfying one has
where one may take . The constant c can nevertheless be improved, leaving room for sharper quantitative bounds. Our contribution is to refine this lower bound, especially in regimes where the coloring behaves (pseudo-)randomly. This constitutes the main result of the paper.
A second contribution is methodological: we employ a Fourier-analytic approach to counting rainbow solutions. For background and intuition we refer to [15] and references therein. In brief, linear equations are naturally expressed and counted in frequency space: the Fourier expansion turns L into an average of additive characters, and the resulting count decomposes into a main term depending only on the sizes of the chromatic classes and an error term that measures their correlation with additive characters (Fourier bias). More broadly, spectral techniques via Gowers uniformity norms and higher-order Fourier analysis underpin many quantitative results in additive combinatorics; see [16,17,18]. Our bounds use only classical (-level) Fourier information.
The outline is as follows. In Section 2 we introduce the basic Fourier-analytic notions over used in the paper. In Section 3 we use additive orthogonality to derive a lower bound on the relevant counts via the triangle inequality. Section 4 states the main result and discusses (pseudo-)random regimes in which the bound becomes tight. Section 5 analyzes the optimality of our bounds in these cases and compares them with the state of the art, and Section 6 summarizes our contributions.
2. Fourier Basics in
We begin by recalling standard Fourier-analytic notions over finite fields; for details see ([15] Ch. 4), ([19] Ch. 6), and ([20] Ch. 11).
Fix a prime p and work additively in . Set and define the Fourier transform as follows:
Set . The well-known additive orthogonality (see, e.g., [15] Lemma 4.5) is
For , the Fourier bias ([15] Definition 4.12) of the set A is the quantity:
where denotes the indicator of A.
Note that for every one has
because by the definition of and the triangle inequality, we have
for every . Taking the maximum over gives . In addition, , while the bias only involves nonzero frequencies.
As a general rule, the Fourier bias tracks how uniform a set looks. If the bias is small, no single frequency stands out and repeated sumsets tend to smooth the distribution, much like random data. If the bias is large, a few frequencies dominate; this points to visible additive structure, for example long arithmetic progressions or other near-periodic patterns, and the set stops looking random.
3. A Triangular Lower Bound
Let L be a linear equation such as in Equation (1). For subsets we denote by the number of tuples solving L.
Lemma 1
(Orthogonality identity). For any , it holds
Proof.
By additive orthogonality in Equation (3), we have
Summing over and exchanging sums gives
Thus, we obtain as we claimed.
Lemma 2.
For any , it holds
Proof.
Apply Lemma 1 and split the sum into and . The term equals
For the nonzero modes, by the triangle inequality and we have
Now, since we assume , then for every we have , hence by the definition of ,
Therefore,
Combining the contribution with this lower bound yields the claim.
4. Main Result
Recall that a rainbow (ordered) solution uses each color exactly once in some order. Let be the permutation group of n elements. For the partition we have
Theorem 1.
Let L be a linear equation as in Equation (1), and let be an n-coloring with chromatic classes and densities . Then
Proof.
Apply Lemma 2 with and sum over .
Note that when there is only one color, so rainbow and monochromatic coincide and the permutation sum disappears. The equation has exactly one solution, so the case is trivial. The bound above is aimed at the genuinely multicolor case .
In what follows in this section we show an application of the previous result for n-colorings with (pseudo-)random behavior, obtaining tight bounds.
4.1. Pseudorandom Colorings: Bias at the Scale
As a canonical example, take with p odd. The Gauss sum estimate ([15] Lemma 4.14) gives that the 2–coloring defined by the quadratic residues and their complement
satisfies (see also [15] (Exercise 4.3.2) for the complement)
The same Gauss–sum mechanism extends to algebraic colorings, such as those built from multiplicative characters on . For instance, partitioning according to the value of a fixed multiplicative character (and placing 0 in any class) yields color classes whose indicators are short linear combinations of that character, and hence their nontrivial additive Fourier coefficients are linear combinations of Gauss sums. By the classical Gauss bound (see, e.g., [20], Proposition 11.5), each such Gauss sum has size . Consequently, there is a constant (independent of p) such that
More generally, if one forms an n-coloring by taking joint level sets of a fixed finite family of multiplicative characters (and merging cells if needed to obtain exactly n classes), the same argument shows that for all i, with depending on that finite family.
Plugging into Equation (4) gives
for some constant depending only on n. Thus, for every fixed , the main term dominates as .
4.2. Random Colorings: Bias at the Scale (with High Probability)
Assign each to exactly one color independently over x, with the law where . By ([15] Lemma 4.16) (applied with and with the lemma’s density parameter set to ), there exists an absolute constant such that, for each i,
Now, by a union bound over i, with probability we have simultaneously for all that
Consequently, with the same probability,
Since , we bound the product and absorb constants to obtain
for some constant depending only on n. In particular, for every fixed the main term dominates as .
5. Discussion
To orient the reader, Table 1 summarizes assumptions, constants, and asymptotic regimes side by side.
Table 1.
Comparison between [1] and the present Fourier-analytic bound.
Throughout this section we assume and set
In the state of art ([1] Theorem 1.2) the minimal class size is parametrised by a number via . Up to the additive (an inessential rounding when passing to densities), this matches our convention . We will use the same letter w for the minimal density throughout.
The result below shows an upper bound (cf. [1] Equation (1)) for showing the natural order for this quantity.
Proposition 1.
Let L be a linear equation as in Equation (1), and let be an n-coloring with chromatic classes . Then
In particular, with an implied constant depending only on the and n.
Proof.
Fix a permutation and let be the color used in the last coordinate. If we choose arbitrarily, the equation L determines at most one value of because . Thus
Summing over all and grouping by the last color j (there are permutations with ) gives
Finally, for any j, (because the product over any classes is maximized by omitting the smallest one, ). Hence
as we claimed.
Note that for the (pseudo-)random cases, when p is large enough so that the spectral error is negligible, the lower bounds in Equations (6) and (7) are far from the upper bound in Equation (8) by a term . For example, take the 2–coloring partition given by the quadratic residues in Equation (5). Then , hence
Thus, . Also, for instance, for n-coloring given by the balanced random model, assign each independently with . By Chernoff bounds, as , with high probability. Thus, in the (pseudo-)random settings, once p is large enough for the error term to be negligible, our lower bounds match the upper bound up to a constant factor governed by bounded (asymptotically) by the number of colors n.
Now, we consider the comparison with the prior bound in Equation (2) in low-bias regimes. Whenever the hypotheses of ([1] Theorem 1.2) hold (, for some , and with ), one has
In the low-bias regimes treated above, our Fourier bound is essentially sharp while the constant c is extremely small.
Consider the pseudorandom scale with for all i. For p large enough (depending only on n and the ) the spectral error in Equation (6) is at most , hence
Comparing the leading constants gives
which is astronomically larger for any fixed and . Thus, in this case, the prior lower bound is far from the true constant-level scale, while the Fourier bound attains the correct order with the correct constant up to a fixed factor. Equivalently, the same conclusion as above holds with high probability in the random regime.
Furthermore, we note that our Fourier bound does not require coefficient separability (); it applies verbatim for arbitrary nonzero coefficients. Therefore, it also covers non-separable instances that lie outside the scope of the previous related result.
We also note that our result should be read as complementary to previous work. When the color classes have strong additive structure, the spectral term can dominate and make our inequality vacuous, while the bound in Equation (2) remains positive.
As a concrete example, partition into n long, disjoint arithmetic progressions (for instance, n consecutive cyclic intervals of length ). Then . For a single cyclic interval of the form one has, for ,
hence taking module values and using gives
Taking and using gives
If (which holds when and ), the elementary bound for yields
The same estimate applies to complements (see [15], Exercise 4.3.2). Thus, for the coloring by n consecutive cyclic intervals we have
From our general bound Equation (4) and using , we obtain the upper estimate
In particular, if
then the right-hand side above is negative, so our Fourier lower bound becomes trivial in this highly structured regime.
By contrast, the hypotheses of ([1] Theorem 1.2) are satisfied here. For large p we have , and one can choose L with at least two distinct non-opposite coefficients (i.e., not equal up to sign). Therefore Equation (2) still yields a strictly positive lower bound (with a constant that seems improvable). It remains interesting to optimize that constant in these cases.
6. Conclusions
This work provides new lower bounds for counting rainbow solutions to linear equations over a finite field of prime order p partitioned into n chromatic classes. We employ Fourier-analytic methods that leverage the linear structure to obtain quantitative bounds in terms of class densities and a single spectral parameter (the Fourier bias). Furthermore, our result does not require additional assumptions such as coefficient separability.
To sum up, for colorings with strong additive structure, the spectral error can dominate and our Fourier bound may become vacuous, while the previous combinatorial approach remains nontrivial. Conversely, in low-bias regimes (pseudorandom and random), our bound recovers the optimal scaling with the correct leading constant up to a fixed factor; to our knowledge, this quantitative form is new. It remains an open problem to obtain finer bounds in strongly additive-structured settings.
Finally, the same Fourier-analytic template extends to systems of linear equations over finite abelian groups and to higher-dimensional colorings via multidimensional characters. For certain nonlinear patterns, partial extensions are available through linearization or completion of sums, whereas a broader nonlinear theory would likely call for higher-order uniformity tools.
Funding
This research was funded by “PREDOCT2022-006” program at Universidad Rey Juan Carlos and from grant PID2023-151238OA-I00, funded by MICIU/AEI/10.13039/501100011033 and by EU, ERDF.
Data Availability Statement
No new data were created or analyzed in this study.
Acknowledgments
The author thanks the anonymous referees for their careful reading and constructive comments, which improved the manuscript.
Conflicts of Interest
The author declares no conflict of interest concerning the publication of this paper.
References
- Huicochea, M. Rainbow Solutions of a Linear Equation with Coefficients in Z/pZ. Graphs Comb. 2024, 40, 110. [Google Scholar] [CrossRef]
- Bergelson, V. Rado’s Theorem for finite fields. In Proceedings of the Conference on Sets Graphs and Numbers; North-Holland: Amsterdam, The Netherlands, 1992; pp. 77–88. [Google Scholar]
- Cameron, P.; Cilleruelo, J.; Serra, O. On monochromatic solutions of equations in groups. Rev. Mat. Iberoam. 2007, 23, 385–395. [Google Scholar] [CrossRef]
- Landman, B.M.; Robertson, A. Ramsey Theory on the Integers; American Mathematical Society: Providence, RI, USA, 2014; Volume 73. [Google Scholar]
- Serra, O.; Vena, L. On the number of monochromatic solutions of integer linear systems on abelian groups. Eur. J. Comb. 2014, 35, 459–473. [Google Scholar] [CrossRef]
- Jungic, V.; Radoicic, R. Rainbow 3-term arithmetic progressions. Integers 2003, 3, A18. [Google Scholar]
- Axenovich, M.; Fon-Der-Flaass, D. On rainbow arithmetic progressions. Electron. J. Comb. 2004, 11, R1. [Google Scholar] [CrossRef] [PubMed]
- Conlon, D. Rainbow solutions of linear equations over Zp. Discret. Math. 2006, 306, 2056–2063. [Google Scholar] [CrossRef]
- Conlon, D.; Jungić, V.; Radoičić, R. On the existence of rainbow 4-term arithmetic progressions. Graphs Comb. 2007, 23, 249–254. [Google Scholar] [CrossRef]
- Fox, J.; Mahdian, M.; Radoičić, R. Rainbow solutions to the Sidon equation. Discret. Math. 2008, 308, 4773–4778. [Google Scholar] [CrossRef]
- Llano, B.; Montejano, A. Rainbow-free colorings for x + y= cz in Zp. Discret. Math. 2012, 312, 2566–2573. [Google Scholar] [CrossRef]
- Balandraud, É. Coloured solutions of equations in finite groups. J. Comb. Theory Ser. A 2007, 114, 854–866. [Google Scholar] [CrossRef][Green Version]
- Montejano, A.; Serra, O. Counting patterns in colored orthogonal arrays. Discret. Math. 2014, 317, 44–52. [Google Scholar] [CrossRef]
- Huicochea, M. On the number of rainbow solutions of linear equations in Z/pZ. Australas. J. Comb. 2020, 78, 118–132. [Google Scholar]
- Tao, T.; Vu, V.H. Additive Combinatorics; Cambridge University Press: Cambridge, UK, 2006; Volume 105. [Google Scholar]
- Gowers, W.T. A new proof of Szemerédi’s theorem. Geom. Funct. Anal. GAFA 2001, 11, 465–588. [Google Scholar] [CrossRef]
- Green, B.; Tao, T. An inverse theorem for the Gowers norm. Proc. Edinb. Math. Soc. 2008, 51, 73–153. [Google Scholar] [CrossRef]
- Tao, T. Higher Order Fourier Analysis; American Mathematical Society: Providence, RI, USA, 2012. [Google Scholar]
- Mullen, G.L.; Panario, D. Handbook of Finite Fields; CRC Press: Boca Raton, FL, USA, 2013. [Google Scholar]
- Iwaniec, H.; Kowalski, E. Analytic Number Theory; American Mathematical Society: Providence, RI, USA, 2021; Volume 53. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).