math.NT — Number Theory
Second moments of pattern counts in dual Melas codewords
Let be a primitive element of and, for , let be the corresponding codeword of the dual Melas code. Let be the number of occurrences of a uniformly random pattern in . Sac Himelfarb and Schwartz conjectured that converges to the Poisson law for every choice of ; they proved that the second factorial moment satisfies , and for almost every sequence . We prove that uniformly in and in the primitive element . Thus the second factorial moment converges to for every sequence . The proof expresses through a norm form of the quadratic extension , which turns it into a bilinear Kloosterman sum of full length, and bounds the latter in characteristic two. We also show that the counts , as functions of , are the fibre sizes of a family of quadratic maps, and deduce that for almost every sequence of patterns the first two factorial moments of converge to , as they would under the Poisson law conjectured by Sac Himelfarb and Schwartz for fixed patterns.