Idempotent and p-potent quadratic functions: Distribution of nonlinearity and co-dimension
The Walsh transform Q of a quadratic function Q:Fpn→Fp satisfies ∣Q(b)∣∈{0,p2n+s} for all b∈Fpn, where 0≤s≤n−1 is an integer depending on Q. In this article, we study the following three classes of quadratic functions of wide interest. The class C1 is defined for arbitrary n as C1={Q(x)=Tr(∑i=1⌊(n−1)/2⌋aix2i+1):ai∈F2}, and the larger class C2 is defined for even n as C2={Q(x)=Tr(∑i=1(n/2)−1aix2i+1)+Trn/2(an/2x2n/2+1):ai∈F2}. For an odd prime p, the subclass D of all p-ary quadratic functions is defined as D={Q(x)=Tr(∑i=0⌊n/2⌋aixpi+1):ai∈Fp}. We determine the distribution of the parameter s for C1,C2 and D. As a consequence we obtain the distribution of the nonlinearity for the rotation symmetric quadratic Boolean functions, and in the case p>2, our results yield the distribution of the co-dimensions for the rotation symmetric quadratic p-ary functions, which have been attracting considerable attention recently. We also present the complete weight distribution of the subcodes of the second order Reed-Muller codes corresponding to C1 and C2.