This paper derives explicit formulas for counting solutions with distinct variables to linear equations over finite fields and rings, extending previous results with new combinatorial and graph-theoretic methods.
Contribution
It provides new explicit formulas for the number of distinct solutions to linear equations over finite fields and rings, including special cases and a novel proof of existing theorems.
Findings
01
Explicit formulas for solution counts over finite fields.
02
Closed-form solutions for special coefficient cases.
03
A new proof of a generalized theorem using graph theory.
Abstract
Let Fqβ be the finite field of q elements and a1β,a2β,β¦,akβ,bβFqβ. We investigate NFqββ(a1β,a2β,β¦,akβ;b), the number of ordered solutions (x1β,x2β,β¦,xkβ)βFqkβ of the linear equation a1βx1β+a2βx2β+β―+akβxkβ=b with all xiβ distinct. We obtain an explicit formula for NFqββ(a1β,a2β,β¦,akβ;b) involving combinatorial numbers depending on aiβ's. In particular, we obtain closed formulas for two special cases. One is that aiβ,1β€iβ€k take at most three distinct values and the other is that βi=1kβaiβ=0 and βiβIβaiβξ =0 for any Iβ[k]. The same technique works when Fqβ is replaced by Znβ, the ring of integers modulo n. In particular, we give a new proof for the main result given by Bibak, Kapron and Srinivasan, whichβ¦
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Full text
distinct coordinate solutions of linear equations over finite fields
Jiyou Li
Department of Mathematics, Shanghai Jiao Tong University, Shanghai, P.R. China
Let Fqβ be the finite field of q elements and a1β,a2β,β¦,akβ,bβFqβ. We investigate NFqββ(a1β,a2β,β¦,akβ;b), the number of ordered solutions (x1β,x2β,β¦,xkβ)βFqkβ of the linear equation
[TABLE]
with all xiβ distinct. We obtain an explicit formula for
NFqββ(a1β,a2β,β¦,akβ;b) involving combinatorial numbers depending on aiββs. In particular, we obtain closed formulas for two special cases. One is that aiβ,1β€iβ€k take at most three distinct values and the other is that βi=1kβaiβ=0 and βiβIβaiβξ =0 for any Iβ{1,2,β¦,k}.
The same technique works when Fqβ is replaced by Znβ,
the ring of integers modulo n. In particular, we give a new proof for the main result given by Bibak, Kapron and Srinivasan
([2]), which generalizes a theorem of SchΓΆnemann via a graph theoretic method.
This work is supported by the National Science Foundation of China (11771280) and the National Science Foundation of Shanghai Municipal (17ZR1415400, 19ZR1424100).
1. Introduction
Let Fqβ be the finite field of q elements of characteristic p and
D be a subset in Fqβ. Given a1β,a2β,β¦,akβ,bβFqβ, we are interested in the number of solutions of the linear equation over Fqβ
[TABLE]
with the restriction that all xiβ in D are distinct, that is, the cardinality of the set
[TABLE]
This number is closely related to the reduced degree of a map over Fqβ. Any map from Fqβ to Fqβ can be uniquely represented by a polynomial of degree at most qβ1. The degree of such a polynomial is called the reduced degree of the map. Suppose that the range of f is {a1β,a2β,β¦,aqβ}(with multiplicity counted). By the Lagrange interpolation formula, it is direct to check that f is a polynomial of degree at most qβ2 if and only if βi=1qβaiβ=0, and f is a polynomial of degree at most qβ3 if and only if βi=1qβaiβ=0 and NFqββ(a1β,a2β,β¦,aqβ;0)>0.
In particular, it is well-known (see for example, [8]) that NFqβββ(1,Ο,Ο2,β¦,Οqβ2;0) counts the number of permutation polynomials
of degreeβ€qβ3 over Fqβ, where Ο is a primitive element of Fqβ. For more related work we refer to [12, 13, 20].
Furthermore, NDβ(a1β,a2β,β¦,akβ;b) can be naturally regarded as a counting version of knapsack type problem over finite rings. In particular, when aiβ=1, 1β€iβ€k, this is the counting version of subset sum problem, a well-known #P problem in theoretical computer science. It thus has many applications in coding theory and number theory.
For details we refer to [4, 5, 6, 7, 9].
Note that if all aiββs lie in the prime field Fpβ, then this problem is a restricted composition problem over Fqβ; see [10] for a broad generalization.
Few results are known for arbitrary aiββs, even for special cases such as D=Fqβ or D=Fqββ. In [9], GΓ‘cs et al.
proved that NFqββ(a1β,a2β,β¦,akβ;0)>0 always holds except some obvious degenerate cases by using the polynomial method; later, Nagy [21] extended the result to cyclic groups.
Another result, proved by Li and Wan [15], gives a first
explicit formula for NDβ(a1β,a2β,β¦,akβ;b) when a1β=a2β=β―=akβ=1 and β£Dβ£β₯qβ2.
Define v(b)=β1 if bξ =0, and v(b)=qβ1 if b=0. If pβ€k, then
[TABLE]
and if pβ£k, then
[TABLE]
Along this way, Li and Wan gave a series of asymptotic estimates
on NDβ(1,1,β¦,1;b) for many different kinds of DβFqβ; see for example [17, 18, 19].
In this paper, we first prove that apart from some exceptions that can be classified the linear equation a1βx1β+a2βx2β+β―+akβxkβ=1 always has a solution with distinct coordinates.
Theorem 1.2**.**
Suppose qβ₯3 and kβ€q. Then the linear equation a1βx1β+a2βx2β+β―+akβxkβ=1 has a solution (x1β,x2β,β¦,xkβ)βFqkβ with all xiβ distinct, unless one of the following holds: (i)k<q and a1β=a2β=β―=akβ=0;* (ii)k=q and a1β=a2β=β―=akβ=a for an element aβFqβ.*
We remark that this theorem together with Theorem 1.2 in [9] allows us to characterize when a linear equation a1βx1β+a2βx2β+β―+akβxkβ=b has a solution with distinct coordinates, i.e., when NFqββ(a1β,a2β,β¦,akβ;b)>0.
Next we obtain a recurrence formula for NFqββ(a1β,a2β,β¦,akβ;b).
Theorem 1.3**.**
If βi=1kβaiβξ =0, then
[TABLE]
If βi=1kβaiβ=0, then
[TABLE]
where v(b)=β1 if bξ =0, and v(b)=qβ1 if b=0; the hat denotes the omission of an element, and d(a1β,a2β,β¦,akβ) satisfies
[TABLE]
This immediately gives an O(k!) algorithm for computing NFqββ(a1β,a2β,β¦,akβ;b) explicitly.
Corollary 1.4**.**
The number NFqββ(a1β,a2β,β¦,akβ;b) can be computed in O(k!) field operations.
We also obtain an explicit formula for
NFqββ(a1β,a2β,β¦,akβ;b) involving combinatorial numbers depending on aiββs. In particular, we obtain a closed formula when aiβ,1β€iβ€k take at most three distinct values. This generalizes the main result of Theorem 1.1.
Theorem 1.5**.**
Let p(a1β,a2β,β¦,akβ;k,i) be the number of permutations in Skβ of i cycles with the sum of aiββs over its each cycle vanishing. Then
[TABLE]
In particular, if βi=1kβaiβ=0 but βiβIβaiβξ =0 for all Iβ{1,2,β¦,k}, then
[TABLE]
Theorem 1.6**.**
Denote by {x}pβ=xββx/pβp the least non-negative residue of x modulo p. For a special case [a1β,a2β,a3β,β¦,akβ]=[a1β,a2β,1,β¦,1], we have
(i)
If a1β+a2β+kβ2ξ =0, then
[TABLE]
2. (ii)
If a1β+a2β+kβ2=0 and a1β,a2ββ/Fpβ, then
[TABLE]
3. (iii)
If a1β+a2β+kβ2=0 and a1β,a2ββFpβ, then
[TABLE]
where A={(a1β,a2β)βFp2β:a1βξ =1,Β a2βξ =1Β andΒ {1βa1β}pβ+{1βa2β}pββ€p}.
When the field is prime and the aiββs satisfy some strong conditions, this problem was first considered by SchΓΆnemann [22] 180 years ago, and he proved the following result:
Theorem 1.7** (SchΓΆnemann).**
Let p be a prime, a1β,a2β,β¦,akβ be arbitrary integers. If βi=1kβaiββ‘0(modp) but βiβIβaiβξ β‘0(modp) for all Iβ{1,β¦,k},
then
[TABLE]
One may generalize this problem from Fpβ to Z/nZ, i.e., the residue ring modulo n. Similarly, given a1β,a2β,β¦,akβ,bβZ/nZ, we define
[TABLE]
By using tools from additive combinatorics and group theory, Grynkiweicz et al. [11] gave necessary and sufficient conditions to characterize when NZ/nZβ(a1β,a2β,β¦,akβ;b)>0; see also [1, 11] for connections to zero-sum theory and [3] for applications to coding theory.
Bibak et al. generalize SchΓΆnemannβs theorem from Fpβ to Z/nZ ([2]). They proved the following result:
Let a1β,a2β,β¦,akβ,b,nβZ, nβ₯1, and gcd(βiβIβaiβ,n)=1 for all Iβ{1,β¦,k}. The number NZ/nZβ(a1β,a2β,β¦,akβ;b) of solutions (x1β,x2β,β¦,xkβ)β(Z/nZ)k of linear congruence a1βx1β+a2βx2β+β―+akβxkββ‘b(modn) with all xiβ distinct modulo n, is
[TABLE]
The main technique for counting NFqββ(a1β,a2β,β¦,akβ;b) is a sieve method for distinct coordinate counting developed by Li and Wan in [16] and it works well for the Z/nZ case and thus we give another proof of Theorem 1.8.
This paper is organized as follows. Some preliminary results
and the proofs of Theorem 1.2 and Theorem 1.3 are given in Section 2. The Li-Wan sieve technique and the proof of Theorem 1.5 are introduced in Section 3.
The proof for Theorem 1.6 is given in Section 4
and the proof for Theorem 1.8 is given in Section 5.
Notations. We use (q)kβ:=q(qβ1)β¦(qβk+1) to denote the falling factorial of q and βxβ to denote the greatest integer less than or equal to x. If A is a set, we use 1Aβ(x) to denote the indicator function, thus 1Aβ(x)=1 when xβA and 1Aβ(x)=0 otherwise.
2. Preliminary Results and the Proof of Theorem 1.3
The number of ordered k-tuples (x1β,x2β,β¦,xkβ)βFqkβ with all xiβ distinct is (q)kβ, and the sum βi=1kβaiβxiβ could be any element b of the finite field Fqβ. One expects that in favorable cases that the sums are equally distributed and thus NFqββ(a1β,a2β,β¦,akβ;b) should be roughly q1β(q)kβ. It is indeed the case when the aiββs do not sum to zero. A simple observation gives the following result.
Lemma 2.1**.**
If βi=1kβaiβξ =0, then NFqββ(a1β,a2β,β¦,akβ;b) are equal for all bβFqβ. If βi=1kβaiβ=0, then NFqββ(a1β,a2β,β¦,akβ) are equal for all bβFqβ expect b=0.
Proof.
Pick an element cβFqβ. Note that the bijective map (x1β,x2β,β¦,xkβ)β(x1β+c,x2β+c,β¦,xkβ+c) sends the distinct coordinate solutions of the linear equation a1βx1β+a2βx2β+β―+akβxkβ=b to those of the linear equation a1βx1β+a2βx2β+β―+akβxkβ=b+Ac, where A=βi=1kβaiβ. Thus
[TABLE]
for any cβFqβ. Then observe that, for Aξ =0, b+Ac runs over all elements of Fqβ when c does. Thus NFqββ(a1β,a2β,β¦,akβ;b) are equal for all bβFqβ if βi=1kβaiβξ =0.
For the case βi=1kβaiβ=0, consider the bijective map (x1β,x2β,β¦,xkβ)β¦(x1β/b,x2β/b,β¦,xkβ/b), where bξ =0. It sends the distinct coordinate solution of the linear equation a1βx1β+a2βx2β+β―+a1βxkβ=b to those of the linear equation a1βx1β+a2βx2β+β―+akβxkβ=1. Thus
[TABLE]
for all bξ =0. Therefore NFqββ(a1β,a2β,β¦,akβ;b) are equal for all bβFqβ except b=0.
β
If k<q, extend the set of aiββs to a set of size q with ak+1β=ak+2β=β―=aqβ=0. Then notice that NFqββ(a1β,a2β,β¦,akβ;1)=0 if and only if NFqββ(a1β,a2β,β¦,akβ,ak+1β,ak+2β,β¦,aqβ;1)=0, where ak+1β=ak+2β=β―=aqβ=0, so we only need to consider the case k=q. Now assume k=q. We shall show that NFqββ(a1β,a2β,β¦,aqβ;1)=0 if and only if aiβ, 1β€iβ€q are equal. Suppose that the linear equation a1βx1β+a2βx2β+β―+aqβxqβ=1 does not have a solution (x1β,x2β,β¦,,xqβ)βFqqβ with all xiβ distinct, and thus neither does the linear equation a1βx1β+a2βx2β+β―+aqβxqβ=b with bξ =0 by Lemma 2.1. This implies that a1βx1β+a2βx2β+β―+aqβxqβ=0 for all ordered q-tuples (x1β,x2β,β¦,xqβ)βFqqβ with xiβ distinct. Let (x1β,x2β,β¦,xqβ)βFqqβ be an ordered q-tuple with all xiβ distinct (there exists such an ordered q-tuple since β£Fqββ£=q), we then have
[TABLE]
Swapping the i-th and the j-th coordinates of (x1β,x2β,β¦,xqβ), we obtain another ordered q-tuple with distinct coordinates and thus
[TABLE]
Subtracting (2.2) from (2.1), we get (aiββajβ)(xiββxjβ)=0, which implies aiβ=ajβ since xiβξ =xjβ. Since i,j are arbitrary, we conclude that all of the aiβ are equal if there does not exist distinct xiββFqβ such that a1βx1β+a2βx2β+β―+aqβxqβ=1. On the other hand, if qβ₯3 and all of the aiβ are equal, then a1βx1β+a2βx2β+β―+aqβxqβ=0 for all (x1β,x2β,β¦,,xqβ)βFqqβ with xiβ distinct since the sum of all elements of Fqβ is zero except Fqβ being F2β. Thus there does not exist distinct xiββFqβ satisfying a1βx1β+a2βx2β+β―+aqβxqβ=1 when qβ₯3 and all of the aiβ are equal. The proof is completed.
β
Next we turn to the proof of Theorem 1.3, the recurrence relation of NFqββ(a1β,a2β,β¦,akβ;b). The main idea is to introduce NFqβββ(a1β,a2β,β¦,akβ;b), the number of solutions (x1β,x2β,β¦,xkβ)β(Fqββ)k of the linear equation a1βx1β+a2βx2β+β―+akβxkβ=b with all xiβ distinct, which is related to NFqββ(a1β,a2β,β¦,akβ;b) by the Lemma given below.
Lemma 2.3**.**
Let A=βi=1kβaiβ and cβFqβ. Then we have
[TABLE]
where the hat denotes the omission of an element. In particular, letting (b,c) be (1,0) and (0,0), we obtain
[TABLE]
Proof.
Let c be an element of Fqβ. Then the solutions (x1β,x2β,β¦,xkβ)βFqkβ of the linear equation a1βx1β+a2βx2β+β―+akβxkβ=b with all xiβ distinct can be divided into two parts depending on whether c appears. By the linear substitution yiβ=xiββc, 1β€iβ€k, the number of solutions in which c does not appear is NFqβββ(a1β,a2β,β¦,akβ;bβAc), and the number of solutions in which c appears is βi=1kβNFqβββ(a1β,a2β,β¦,aiβ1β,aiββ,ai+1β,β¦,akβ;bβAc). Thus (2.3) follows.
β
There is an additional relation between NFqββ(a1β,a2β,β¦,akβ;b) and NFqβββ(a1β,a2β,β¦,akβ;b) when βi=1kβaiβ=0.
Lemma 2.4**.**
Suppose that βi=1kβaiβ=0. Then we have
[TABLE]
for 1β€iβ€k and bβFqβ. In particular, NFqβββ(a1β,a2β,β¦,aiβ1β,aiββ,ai+1ββ¦,akβ;b) are equal for all 1β€iβ€k.
Proof.
By the linear substitution y1β=x1β and yiβ=xiββx1β, 2β€iβ€k and the assumption that βikβaiβ=0, the number of solutions (x1β,x2β,β¦,xkβ)βFqkβ of a1βx1β+a2βx2β+β―+akβxkβ=b with all xiβ distinct is equal to the number of solutions (y1β,y2ββ¦,ykβ)βFqβΓ(Fqββ)kβ1 of a2βy2β+β―+anβynβ=b with yiβ distinct for 2β€iβ€k. Since y1ββFqβ can be arbitrarily chosen, we have
[TABLE]
The same argument gives
[TABLE]
for all 1β€iβ€k. Hence the proof is completed.
β
It is direct to verify that d(a1β)=NFqβββ(a1β;1)βNFqβββ(a1β;0) equals β(qβ1) if a1β=0, and equals 1 if a1βξ =0. Thus d(a1β)=βv(a1β).
Now suppose kβ₯2. If βi=1kβaiβξ =0, then by Lemma 2.1 we have NFqββ(a1β,a2β,β¦,akβ;1)=NFqββ(a1β,a2β,β¦,akβ;0). Thus the left-hand side of (2.7) is zero, which implies
[TABLE]
Now let us consider the case βi=1kβaiβ=0. In this case, Lemma 2.4 implies that the left-hand side of (2.7) is equal to qd(a1β,a2β,β¦,aiβ1β,aiββ,ai+1β,β¦,akβ).
Again, by Lemma 2.4, d(a1β,a2β,β¦,aiβ1β,aiββ,ai+1β,β¦,akβ) are equal for 1β€iβ€k when βi=1kβaiβ=0. Thus the right-hand side (2.7) can be simplified into
d(a1β,a2β,β¦,akβ)+kd(a1β,a2β,β¦,aiβ1β,aiββ,ai+1β,β¦,akβ). Therefore equality (2.7) yields
[TABLE]
β
3. Li-Wanβs new sieve and the summation expression
In [16], J. Li and D. Wan proposed a new sieve method for distinct coordinate counting problems. We introduce it here briefly.
Let D be a finite set. For a positive integer k, let Dk=DΓDΓβ―ΓD be the k-fold Cartesian product of D with itself. Let X be a subset of Dk. Then every element xβX can written in an ordered k-tuple form x=(x1β,x2β,β¦,xkβ) with xiββD, 1β€iβ€k. We are interested in the number of the elements in X whose coordinates are distinct, that is, the cardinality of the set
[TABLE]
Let Skβ denote the symmetric group on the set {1,β¦,k}. Given a permutation ΟβSkβ, we can write it as a product of disjoint cycles Ο=C1βC2ββ―Cβ(Ο)β uniquely apart from the order of the cycles, where β(Ο) denotes the number of disjoint cycles of Ο. We define the signature of Ο to be sign(Ο):=(β1)kββ(Ο). We also define the set XΟβ to be
[TABLE]
We have the following theorem which will be used in the proof of the summation expression of NFqββ(a1β,a2β,β¦,akβ;b).
The unsigned Stirling number of the first kind c(k,i) is defined to be the number of permutations in Skβ with exactly i cycles. It can also be defined via the following classic identity [23]:
[TABLE]
With these preparations, we are ready to prove Theorem 1.5.
Let X be the set of all solutions (not necessarily to have distinct coordinates) of the linear equation a1βx1β+a2βx2β+β―+akβxkβ=b in Fqβ, i.e.,
[TABLE]
Since NFqββ(a1β,a2β,β¦,akβ;b) counts the number of elements in X, by Theorem 3.1 we have
[TABLE]
where X and XΟβ are defined as in (3.1) and (3.2). Let Ο=C1βC2ββ―Cββ be the disjoint cycle product of Ο. Let Ajβ=βiβCjββaiβ, 1β€jβ€β. By the definition of XΟβ, we have
[TABLE]
Hence β£XΟββ£=qββ1=qβ(Ο)β1 if A1β,A2β,β¦,Aββ are not all zero, and β£XΟββ£=qβ1b=0β=qβ(Ο)β1(v(b)+1) otherwise.
Denote by p(a1β,a2β,β¦,akβ;k,i) the number of permutations in Skβ of i cycles with the sum of aiββs over its each cycle vanishing. We deduce from (3.4) that
[TABLE]
In particular, if βi=1kβaiβ=0 but βiβIβaiβξ =0 for all Iβ{1,β¦,k}, then p(a1β,a2β,β¦,akβ,k,i)=0 for iβ₯2 and p(a1β,a2β,β¦,akβ,k,i)=(kβ1)! for i=1. Thus we conclude that
In this section, we prove Theorem 1.6. We first need some combinatorial formulas and equalities.
Lemma 4.1**.**
Let k,n be integers. Then we have
[TABLE]
and
[TABLE]
Proof.
Comparing the coefficients xk on both sides of the identity (1βx)β1(1βx)n=(1βx)nβ1, we obtain (4.1). Similarly, comparing the coefficients of xkβ1 on both sides of the identity (1βx)β1((1βx)n)β²=βn(1βx)nβ2, we obtain (4.2).
β
Assume pβ£k. Let p(k,i) be the number of permutations in Skβ of i cycles with the length of its each cycle divisible by p. Then
[TABLE]
Lemma 4.3**.**
Assume pβ£(kβj). Let p(k,i,j) be the number of permutations in Skβ of i cycles with a cycle of length j containing {1,2} and the length of each remaining (iβ1) cycles divisible by p. Then
[TABLE]
Proof.
Let ΟβSkβ be a cycle described in the Lemma. We can write Ο as a product of two permutations Ο=Ο1βΟ2β, where Ο1β denotes the cycle of Ο of length j containing {1,2}, and Ο2β denotes the product of the other (iβ1) cycles of Ο.
Since the j-cycle Ο1β contains {1,2} already, the remaining (jβ2) elements of Ο1β must come from the set {3,β¦,k} and thus there are (jβ2kβ2β) choices of them. The number of j-cycles on a j-element set is (jβ1)!, so there are (jβ1)!(jβ2kβ2β) ways to determine Ο1β by the multiplication principle. But Ο2β can be viewed as a permutation in Skβjβ of (iβ1) cycles such that the length of each its cycle is divisible by p, so there are p(kβj,iβ1) choices of Ο2β by Lemma 4.2. Since every permutation can be expressed by a product of disjoint cycles uniquely up to the order of the cycles, we see that every ordered pair (Ο1β,Ο2β) uniquely corresponds to a Ο. Therefore there are
[TABLE]
such Οβs in total. The claim then follows.
β
Lemma 4.4**.**
Assume pβ£(kβj1ββj2β). Let p(k,i,j1β,j2β) be the number of permutations in Skβ of i cycles with a cycle of length j1β containing {1} but not containing {2}, a cycle of length j2β containing {2} but not containing {1}, and the length of each remaining (iβ2) cycles divisible by p. Then we have
[TABLE]
Proof.
Let Ο be a cycle described in the Lemma. We can write Ο as a product of three permutations Ο=Ο1βΟ2βΟ3β, where Ο1β denotes the cycle of Ο of length j1β containing {1} but not containing {2}, Ο2β denotes the cycle of Ο of length j2β containing {2} but not containing {1}, and Ο3β denotes the product of the other (iβ2) cycles of Ο. By a similar argument used in the proof of Lemma 4.3, we conclude that there are
By Corollary 2.2, it suffices to consider the case a1β+a2β+kβ2=0. So assume a1β+a2β+kβ2=0. In particular, both a1β and a2β lie in Fpβ, or neither a1β nor a2β lies in Fpβ. Let X denote the set of all solutions of the linear equation a1βx1β+a2βx2β+x3β+β―+xkβ=b in Fqβ, i.e.,
[TABLE]
Then NFqββ(a1β,a2β,kβ21,β¦,1ββ;b) counts the number of elements in X. We have from Theorem 3.1 that
[TABLE]
For a permutation ΟβSkβ, write it as a disjoint cycle product Ο=C1βC2ββ―Cββ. Then we have two cases: {1} and {2} are contained in one cycle of Ο, or they are contained in two separate cycles of Ο, respectively. For the former case, we may assume that {1,2} is contained in the cycle C1β after rearranging the cycles. Then we have
[TABLE]
where ciβ denotes the length of the cycle Ciβ, 1β€iβ€β. Thus β£XΟββ£=qβ1b=0β=qβ(Ο)β1(v(b)+1) if c1ββ‘2βa1ββa2ββ‘k(modp) and pβ£ciβ for 2β€iβ€β, and β£XΟββ£=qββ1 otherwise. For the latter case, we may assume that {1} is contained in the cycle C1β and {2} is contained in the cycle C2β after rearranging the cycles. Similarly, we have
[TABLE]
Thus β£XΟββ£=qββ1(v(b)+1) if c1ββ‘1βa1β(modp), c2ββ‘1βa2β(modp) and pβ£ciβ for 3β€iβ€β, and β£XΟββ£=qββ1 otherwise. From this classification of β£XΟββ£, we see that (4.3) can be simplified into
[TABLE]
where
[TABLE]
We first consider the case a1β,a2ββ/Fpβ in which it suffices to evaluate the sum S1β since the sum S2β vanishes.
Applying Lemma 4.3 and Lemma 4.2, we see that
[TABLE]
We can evaluate the above sum by using Lemma 4.1 and thus obtain
[TABLE]
For the case a1β,a2ββFpβ, we have to consider the sum S2β. Similarly, using Lemma 4.4 and Lemma 4.2, we see that
[TABLE]
where Njβ is defined as
[TABLE]
For jβ‘k(modp), it is direct to check that
[TABLE]
Inserting Njβ into the sum of S2β, by a routine computation and Lemma 4.1, we obtain
[TABLE]
where Ξ΅ equals β1, [math], 1 in the three cases, respectively. Again, a direct computation shows that S1β+S2β takes the form
[TABLE]
where A={(a1β,a2β)βFp2β:a1βξ =1,Β a2βξ =1Β andΒ {1βa1β}pβ+{1βa2β}pββ€p}. The proof is then completed
β
Let a1β,a2β,β¦,akβ,b,nβZ, nβ₯1. The linear congruence a1βx1β+a2βx2β+β―+akβxkββ‘b(modn) has a solution (x1β,x2β,β¦,xkβ)β(Z/nZ)k if and only if dβ£b, where d=gcd(a1β,a2β,β¦,akβ,n). Furthermore, if this conditions is satisfied, then there are dnkβ1 solutions.
Now we give another proof of Theorem 1.8 via a sieve method.
Let X be of set of all solutions of the linear congruence a1βx1β+a2βx2β+β―+akβxkββ‘b(modn) in Z/nZ, i.e.,
[TABLE]
Then NZ/nZβ(a1β,a2β,β¦,akβ;b) counts the number of elements in X. Thus Theorem 3.1 yields
[TABLE]
Next we compute β£XΟββ£. Let Ο=C1βC2ββ―Cββ be a disjoint cycle product of Ο, and let Ajβ=βiβCjββaiβ,1β€jβ€β. From the definition of XΟβ, we see that
[TABLE]
Since gcd(βiβIβaiβ,n)=1 for all Iβ{1,β¦,k}, by Proposition 5.1, we have β£XΟββ£=nββ1=nβ(Ο)β1 for all ΟβSkβ with β(Ο)β₯2 . Note that Proposition 5.1 also shows that
[TABLE]
for ΟβSkβ with β(Ο)=1.
Substituting this into (5.1), when gcd(βi=1kβaiβ,n)β€b, we obtain
[TABLE]
And when gcd(βi=1kβaiβ,n)β£b, we obtain
[TABLE]
This ends the proof
β
Acknowledgements
Part of the work was done when the second author was a graduate student at Shanghai Jiao Tong University.
Bibliography23
The reference list from the paper itself. Each links out to its DOI / PubMed record.
1[1] D. Adams and V. Ponomarenko, Distinct solution to a linear congruence , Involve 3 (2010), 341-344.
2[2] K. Bibak, B. Kapron and V. Srinivasan, A generalization of SchΓΆnemannβs theorem via a graph theoretic method , submitted.
3[3] K. Bibak, B. Kapron and V. Srinivasan, Unweighted linear congruences with distinct coordinates and the Varshamov-Tenengolts codes , Des. Codes Cryptogr., to appear.
4[4] X. Cao, M. Lu, D. Wan, L. Wang and Q. Wang, Linearized Wenger graphs , Discrete Math. 338 (2015) 1595-1602.
5[5] Q. Cheng and E. Murray, On deciding deep holes of Reed-Solomon codes , in: Proceedings of TAMC 2007, in: LNCS, 4484 (2007), 292-395.
6[6] Q. Cheng and D. Wan, On the list and bounded distance decodability of Reed-Solomon codes , SIAM J. Comput. 37 (1) (2007), 195-209.
7[7] Q. Cheng and D. Wan, Complexity of decoding positive-rate Reed-Solomon codes , IEEE Trans. Inf. Theory 56 (10) (2010), 5217-5222.
8[8] P. Das, The number of permutation polynomials of a given degree over a finite field , Finite Fields Appl. 8 (2002), 478-490.