This paper derives formulas and algorithms to count solutions of polynomial congruences involving sums of powers modulo integers, with applications to quadratic and linear cases over primes and prime powers.
Contribution
It provides new explicit formulas and an algorithm for counting solutions of polynomial congruences, extending previous results to more general cases and specific polynomial forms.
Findings
01
Complete solution for linear polynomial solutions over primes.
02
Explicit counting formulas for quadratic cases when t=2.
03
General results for polynomial solutions with specific p-adic valuation conditions.
Abstract
Given a polynomial Q(x1,⋯,xt)=λ1x1k1+⋯+λtxtkt, for every c∈Z and n≥2, we study the number of solutions NJ(Q;c,n) of the congruence equation Q(x1,⋯,xt)≡cmodn in (Z/nZ)t such that xi∈(Z/nZ)× for i∈J⊆I={1,⋯,t}. We deduce formulas and an algorithm to study NJ(Q;c,pa) for p any prime number and a≥1 any integer. As consequences of our main results, we completely solve: the counting problem of Q(xi)=i∈I∑λixi for any prime p and any subset J of I; the counting problem of Q(xi)=i∈I∑λixi2 in the case t=2 for any p and J, and the case t general for any p and J satisfying min{vp(λi)∣i∈I}=min{vp(λi)∣i∈J}; the counting…
Tables1
Table 1. Table 1. N J ( c , 27 ) subscript 𝑁 𝐽 𝑐 27 N_{J}(c,27) for J 𝐽 J nonempty
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.
Taxonomy
TopicsAnalytic Number Theory Research · Mathematics and Applications · History and Theory of Mathematics
Full text
Counting the solutions of λ1x1k1+⋯+λtxtkt≡cmodn
Songsong Li
and
Yi Ouyang
Wu Wen-Tsun Key Laboratory of Mathematics, School of Mathematical Sciences, University of Science and Technology of China, Hefei, Anhui 230026, China
Given a polynomial Q(x1,⋯,xt)=λ1x1k1+⋯+λtxtkt, for every c∈Z and n≥2, we study the number of solutions NJ(Q;c,n) of the congruence equation Q(x1,⋯,xt)≡cmodn in (Z/nZ)t such that xi∈(Z/nZ)× for i∈J⊆I={1,⋯,t}. We deduce formulas and an algorithm to study NJ(Q;c,pa) for p any prime number and a≥1 any integer. As consequences of our main results, we completely solve: the counting problem of Q(xi)=i∈I∑λixi for any prime p and any subset J of I; the counting problem of Q(xi)=i∈I∑λixi2 in the case t=2 for any p and J, and the case t general for any p and J satisfying min{vp(λi)∣i∈I}=min{vp(λi)∣i∈J}; the counting problem of Q(xi)=i∈I∑λixik in the case t=2 for any p∤k and any J, and in the case t general for any p∤k and J satisfying min{vp(λi)∣i∈I}=min{vp(λi)∣i∈J}.
2010 Mathematics Subject Classification:
Primary 11B13, 11L03, 11L05
1. Introduction and Main results
1.1. Introduction
Given a polynomial
[TABLE]
Let λ=(λ1,⋯,λt)∈(Z−{0})t and k=(k1,⋯,kt)∈Z≥1t. For any c∈Z and n≥2, and for a subset J of I={1,⋯,t}, denote by ΓJ(c,n)=ΓJ(Q;c,n)=ΓJ(λ,k;c,n) the set of solutions (x1,⋯,xt) of the congruence equation
[TABLE]
such that xj∈(Z/nZ)× for j∈J, and by NJ(Q;c,n) the cardinality of ΓJ(Q;c,n). In particular, write Γ, N, Γ∗ and N∗ for Γ∅, N∅, ΓI and NI respectively.
The problem to determine NJ(Q;c,n) has been studied by many authors extensively in various special cases:
(i)
The linear case k=(1,⋯,1). For J=I, this is a problem proposed by H. Rademacher[7] in 1925 and answered by A. Brauer[2] in 1926, and recovered by many authors later from time to time. For J=I and λ=(λi) where the λi’s are divisors of n, this is the work of Sun and Yang[9] in 2014.
(ii)
The quadratic case k=(2,⋯,2). For J=∅, this is studied in the work of Tóth[10] in 2014. For t=2 and λ=(1,1), this is the work of Yang and Tang[11] in 2015. For t=2, λ arbitrary and J=I, this is the work of Sun and Cheng [8] in 2016. For general t, λ=(1,⋯,1) and J=I, this is the recent work of Mollahajiaghaei [6]. See also [3] for more development.
(iii)
The case t=2, λ=(1,1) and k=(k,k). Partial results were obtained by Deaconescu and Du [4].
1.2. Notations.
Before stating our main results, let us fix the following notations.
In this paper, p is always a prime number and vp is the p-adic valuation, a is always a positive integer and I is the set {1,⋯,t}.
For a set X, #X or ∣X∣ means the cardinality of X. For two subsets X and Y of the set U, the difference set X−Y is the set {x∈U∣x∈X,x∈/Y}.
For the congruence equation
[TABLE]
we call t, k and n its dimension, degree and level respectively.
For J a nonempty subset of I,
the depthdp,J=dp,J(Q)=dp,J(λ,k) of Q at prime p associated to J is defined by
[TABLE]
Write dp for dp,I and call it the depth of of Q at p.
For J a nonempty subset of I, let λJ=(λi)i∈J, kJ=(ki)i∈J and QJ=j∈J∑λjxkj∈Z[xj:j∈J]. Set Q∅=0 and
[TABLE]
If Q and (λ,k) are clear from the context, we may drop them in our notations.
1.3. Main results
Suppose n has the prime decomposition
[TABLE]
By Chinese Remainder Theorem, the set of solutions of Q(x1,⋯,xt)≡cmodn is in one-to-one correspondence with the product set of solutions of the equations Q(x1,⋯,xt)≡cmodpnp for primes p∣n. Moreover, x∈(Z/nZ)× if and only if x∈(Z/pnp)× for all p∣n. Thus for any J⊆I, we have the product formula
[TABLE]
So to compute NJ(Q;c,n), it suffices to study the prime power case NJ(Q;c,pa). By simple argument (as seen in Proposition 2.1(2)), we may reduce Q to the case p∤λi for some i∈I, which we call Q is reduced at p.
Our first main result is the following theorem (which we call the decomposition formula):
Theorem A**.**
Given the polynomial Q. For subsets J1⊊J2⊆I, let
[TABLE]
For b∈B(∅,I;a), but b=(a,⋯,a), let
[TABLE]
If b=(a,⋯,a), let Jb=∅, Qb=0 and s(b)=0. Then we have the decomposition formula
[TABLE]
Our next two results are consequences of the following lifting formula
[TABLE]
for a sufficiently large under various assumptions. We shall establish this formula by simple p-adic analysis, not by the more complicated exponential sum argument employed by other authors. More precisely, we have
Theorem B**.**
Given the polynomial Q, and assume it is reduced at prime p. Then
(1) For a≥dp,J and c∈Z,
[TABLE]
(2) For a≤dp=dp,I, the map
[TABLE]
where αi∈Z is any lifting of ai∈Fp, is well defined. Let φa,J be the restriction of φa on i∈I−J∏Fp×i∈J∏Fp×, then
[TABLE]
In particular, if p=2 and a≤d2,
[TABLE]
Theorem C**.**
Given polynomial Q and prime p. Let fp=max{vp(ki)+1} (or 3 if p=2 and max{v2(ki)}=1). For integer c=0, let cp be the p-adic valuation of c. Then for any a≥1, any J⊆I (empty or not), f≥fp and any x∈Z/paZ,
[TABLE]
In particular, for a≥cp+fp,
[TABLE]
Thus NJ(Q;c,pa) as a varies is completely determined by NJ(c,pa) for a≤cp+fp.
Remark*.*
For J=∅, even if p∤i=1∏tki, the formula for N(Q;0,pa) is much more complicated. In general we don’t always have N(0,pa)=pt−1N(0,pa−1) for a sufficiently large. For example, consider Q(x1,x2)=x13+px23. Then N(0,p3a)=p4a, N(0,p3a+1)=p4a+1 and N(0,p3a+2)=p4a+2.
As a consequence of Theorems A, B and C, we will give an algorithm to effectively compute NJ(Q;c,pa) for all possible J, c and a if the prime number p∤i=1∏tki. Moreover, except the case J=∅ and c=0, the number of steps to compute NJ(Q;c,pa) is bounded by a constant independent of a.
Using the main theorems and the algorithm, we shall work on the example Q(x1,⋯,xt)=λ1x1k+⋯+λtxtk. We obtain the following results:
(1)
In the linear case (k=1), we solve the counting problem in full generality (cf. [9]). Namely, for any prime p, we completely determine the value of NJ(Q;c,pa) for arbitrary J⊆I, c∈Z and a≥1. Our result is stated in Theorem 4.1.
2. (2)
In the quadratic case (k=2), for any prime p, we completely determine the value of NJ(Q;c,pa) for any J⊆I satisfying min{vp(λi)∣i∈I}=min{vp(λi)∣i∈J}, and arbitrary c∈Z and integer a≥1. In particular, we get the exact formula for N∗(Q;c,pa) for any c∈Z and a≥1. Our result is stated in Theorem 4.4. This is a vast generalization of Yang-Tang [11], Sun-Cheng [8] and Mollahajiaghaei [6].
3. (3)
In the general case, for prime p∤k, we give a more detailed version of our algorithm in Theorem 4.2. We obtain formulas so that NJ(Q;c,pa) can be computed in finite steps independent of a except the case c=0 and J=∅.
4. (4)
We study the case p∤k and the dimension t=2 in full generality. When k=2, NJ(c,2a) is also studied in full generality.
Finally we shall work on the example Q(x1,⋯,xt)=9x1+2x23+x39 for p=3, which is not covered by our algorithm, but the main theorems are still applicable.
2. Preliminaries
2.1. Reduce Q to the reduced case.
The following fact is obvious:
Proposition 2.1**.**
Consider the number NJ(Q;c,pa) for p a prime number and J⊆I.
(1) (Lowering dimension) If there exists j∈I such that vp(λj)≥a, then
[TABLE]
(2) (Lowering level) Let e=min{vp(λi)∣i∈I} and vp(c)=cp.
Then
[TABLE]
(3) (Lowering degree) If one has vp(ki)≥a, replace ki by ki/pvp(ki)−a+1.
Then the new ki has p-adic valuation a and NJ(Q;c,pa) is unchanged.
Proof.
The only thing needs to prove is (3), which follows from Euler’s Theorem that for x∈(Z/paZ)×, xps=xpa−1 for all s≥a, and for x∈pZ/paZ, xps=0 for all s≥a−1 since pa−1≥a for any prime p and integer a≥1.
∎
Based on Proposition 2.1, to compute NJ(Q;c,pa), it suffices to consider the case that min{vp(λi)}=0, max{vp(λi),vp(ki)∣i=1,⋯,t}<a and the depth dp≤a. In particular, we can always assume p∤λi for some i∈I.
2.2. Formulas for N(Q;c,p).
We recall the classical formulas for N(Q;c,p). First recall for complex characters χ1,⋯,χt of the prime field Fp, the Jacobi sumJ(χ1,⋯,χt) is defined by the formula
[TABLE]
and the Jacobi sumJ0(χ1,⋯,χt) is defined by the formula
[TABLE]
Then the following theorem is well known:
Theorem 2.2**.**
(1) Suppose p is odd and λ1⋯λt=0∈Fp. Then N(c,p), the number of solutions of
[TABLE]
over the prime field Fp, is given by
[TABLE]
and
[TABLE]
for c=0.
(2) If 2∤λi for some i∈I, then N(0,2)=N(1,2)=2t−1.
Proof.
Part (1) follows from Theorem 5 in § 8.7 in [5]. Part (2) is clear, since xk=x in F2.
∎
3. Proof of the main theorems and the algorithm
3.1. The decomposition formula and its special cases.
We now prove Theorem A.
Proof of Theorem A.
Note that Z/paZ has a disjoint decomposition (assuming pa+1Z/paZ is the empty set)
[TABLE]
Suppose x=(x1,⋯,xt)∈ΓJ1(Q;c,pa), and if J1=∅ and J2=I, suppose x=0. Then for j∈J2−J1, xj∈pbjZ/paZ−pbj+1Z/paZ for some 0≤bj≤a. Set bj=0 for j∈/J2−J1. Let b=b(x)=(bj)j=1,⋯,t∈B(J2,J1;a) and Jb=∅.
For j∈J2∩Jb, the element x~j=xj/pbj is a well defined element in (Z/pa−bj)×. Let Cj={x∈(Z/pa)×∣x≡x~jmodpa−bj}. For j∈Jb−J2, let Cj={xj}. Then
[TABLE]
On the other hand, if Qb=0, then Jb as the set of j’s such that xj appears in Qb is not empty. For (yj)j∈Jb∈ΓJ2∩Jb(Qb;c,pa), let x~j=yjmodpa−bj, then xj=pbjx~j is a well defined element in pbjZ/paZ−pbj+1Z/paZ. Let xj=0 for j∈/Jb. Then x=(xj)∈ΓJ1(Q;c,pa). In this way, one element x corresponds exactly to p∑j:bj<abj=ps(b) elements in ΓJ2∩Jb(Qb;c,pa).
If J1=∅ and J2=I, then 0∈ΓJ1(Q;c,pa) if only if pa∣c, which is corresponding to the case b=(a,⋯,a) and Qb=0.
This means that NJ(Q;c,p) is determined by N(QI−T;c,p) for all T⊆J.
Remark*.*
Another interesting question is to count the number NJ1,J2(Q;c,n) of solutions of Q(x1,⋯,xt)≡cmodn such that xi∈(Z/nZ)× for i∈J1 and xi∈/(Z/nZ)× for i∈J2. First one must keep in mind that no product formula exists in general for NJ1,J2(Q;c,n) if J2=∅. However, by the Inclusion-Exclusion Principle, we have
[TABLE]
As a consequence, the values NJ(Q;c,n) for all J determine NJ1,J2(Q;c,n) for all disjoint pairs (J1,J2).
3.2. The lifting formula
We need the following lemma whose proof is an easy exercise of Newton’s Binomial Theorem and p-adic analysis:
Lemma 3.1**.**
(1) Let p be an odd prime. For integers x,y, k≥1, and m≥1, we have
[TABLE]
(2) For integers x and integer y, k≥1, and m≥1, then
[TABLE]
For odd integer x,
[TABLE]
(3) Let Up,a(i)={1+pix∣x∈Z/paZ}⊆(Z/paZ)×. Then for f>0, (Up,a(i))pf=Up,a(f+i) if (p,i)=(2,1) and (U2,a(1))pf=U2,a(f+2).
We are now ready to prove Theorem B and Theorem C.
Proof of Theorem B.
Write d=dp.
Let ψa,b be the natural reduction map from ΓJ(c,pa) to ΓJ(c,pb).
(1) First assume p is odd. Suppose that j satisfies vp(λjkj)=ej+fj=dj<a. By Lemma 3.1(1), if (x1,⋯,xj,⋯,xt)∈ΓJ(c,pa), then (x1,⋯,xj+pa−djyj,⋯,xt)∈ΓJ(c,pa) for any yi∈Z/paZ.
If a>dp,J, then a>dj+1 for some j∈J. Let (a1,⋯,at)∈ΓJ(c,pa−1). Let u∈{0,⋯,p−1}. Let xi∈Z/paZ be any lifting of ai. Then
[TABLE]
Thus there exists exactly one u∈{0,⋯,p−1} such that (x1,⋯,xj+upa−dj−1,⋯,xt)∈ΓJ(c,pa), and ψa,a−1 is a pt−1-to-1 map. Thus we have the lifting formula
[TABLE]
for all a>dp,J.
Now assume p=2. Assume a>d2,J. Then the assumption means that a>dj+2 for some j∈J with kj even or a>dj+1 for some j∈J with kj odd. Let (a1,⋯,at)∈ΓJ(c,2a−1). Let xi∈Z/2aZ be any lift of ai. Then
[TABLE]
Thus one of (x1,⋯,xt) and (x1,⋯,xj+2a−dj−1,⋯,xt) is a solution of Q(x1,⋯,xt)≡cmodn, and ψa,a−1 is a 2t−1-to-1 map. Again we have the lifting formula.
(2) Assume a≤d=dp,I. Suppose (a1,⋯,at)∈Fpt, let αi∈Z be any lifting of ai. Then
[TABLE]
for any yi∈Z, and Q(α1,⋯,αt)modpa is a fixed element in Z/paZ independent of the lifting, so the map φa is well-defined. Thus for (a1,⋯,at)∈ΓJ(c,p)⊆Fpt,
[TABLE]
Assume furthermore that p=2. For T⊆I, let eT=(eT,i)i∈I be the element in F2t that eT,i=1 for i∈T and eT,i=0 for i∈/T. Then ΓJ(c,2) consists of elements eT satisfying T⊇J and v2(∑i∈TλT−c)≥1. Let [math] and 1 in Z be the liftings of [math] and 1 in F2 respectively. Then φa(eT)=i∈T∑λimod2a. This finishes the proof of Theorem B(2).
∎
Corollary 3.2**.**
Given the polynomial Q(x1,⋯,xt). If at prime p one has dp≥t. Then there exists c∈Z such that N∗(Q;c,pdp)=0.
Proof.
This is because there are pdp conjugacy classes modulo pdp but there are only (p−1)t points in Fp×t.
∎
Proof of Theorem C.
Write ki=pfik′ such that (p,k′)=1. By Lemma 3.1, if f≥fp, then for any i∈I, 1+pfx=(1+pyi)pfi for some fi∈Z/paZ. If a≤cp+f, the formula is certainly true. For a>cp+f, let ui,vi∈Z such that uiki′+pa−kivi=1, then 1+pfx=((1+pyi)uiki=βiki for some βi∈(Z/paZ)×. Thus we have a one-to-one correspondence
[TABLE]
and hence NJ(c,pa)=NJ(c(1+pfx),pa).
Now consider the natural map ψa+1,a:(Z/pa+1Z)t→(Z/paZ)t. For a>cp+fp, ψa+1,a−1(ΓJ(c,pa)) is the disjoint union of ΓJ(c+upa,pa+1) for u∈{0,⋯,p−1}, but all
ΓJ(c+upa,pa+1) are of the same cardinality NJ(c,pa+1), hence the lifting formula NJ(c,pa+1)=pt−1NJ(c,pa) holds. This finishes the proof of Theorem C.
∎
3.3. An algorithm to compute NJ(Q;c,pa) if p∤i∈I∏ki
By Theorems A, B and C, we then have the following algorithm to effectively compute NJ(Q;c,pa).
(1)
Reduce Q to the reduced form at p (i.e., dp(Q)=1) by Proposition 2.1. We suppose Q is reduced hereafter.
2. (2)
Compute N(Q;c,p) for all Q by using formulas in Theorem 2.2.
3. (3)
For J nonempty, compute NJ(Q;c,p) by the Inclusion-Exclusion Principle formula (16). If dp,J=1, use the relation NJ(Q;c,pa)=p(a−1)(t−1)NJ(Q;c,p) by Theorem B to get NJ(Q;c,pa), in particular, get N∗(Q;c,pa).
4. (4)
For J nonempty and dp,J=b+1>1, use the decomposition formula (13) to compute NJ(Q;c,pa) for all 1<a≤b+1, then NJ(Q;c,pa)=p(a−b−1)(t−1)NJ(Q;c,pb+1) for a≥b+1 by Theorem B. (Note: the assumption p∤∏ki means the reduced form of Qb for any b in the right hand side of (13) is of depth 1, hence N∗(Qb;c,pa) can be computed as in the previous step.)
5. (5)
If c=0, let cp=vp(c). Compute N(Q;c,pa)=N(Q;0,pa) for a≤cp and N(Q;c,pcp+1) by the decomposition formula (13). Then for a>cp+1, N(Q;c,pa)=p(a−cp−1)(t−1)N(Q;c,pcp+1) from Theorem C.
6. (6)
Use the decomposition formula (13) to compute N(Q;0,pa) for any given a.
Remark*.*
We see that except the last step to compute the case J=∅ and c=0, the number of steps to compute NJ(Q;c,pa) is bounded by a constant independent of a.
In the case J is nonempty, let ∣J∣=s. If cp=vp(c)<b, by Theorem C, one can furthermore get
[TABLE]
In particular, if p∤c, i.e., cp=0, then we just need formulas for N(QI−J;c,p) in Theorem 2.2 to get NJ(Q;c,pa).
4. Applications of the main theorems
In this section, we shall apply the general formulas obtained in the previous section to compute NJ(Q;c,pa) in many special cases. Without loss of generality, we assume Q is reduced, i.e., p∤λi for some i because of (10).
4.1. The linear case Q(x1,⋯,xt)=i=1∑tλixi.
Consider the linear congruence equation
[TABLE]
Theorem 4.1**.**
Suppose p∤λi for some i∈I. For any subset J of I and prime p, let s=#J and sp=#Jp where Jp={j∈J∣p∤λj}. Then
(1) The lifting formula holds for all a≥1:
[TABLE]
(2) If there exists i∈/J, p∤λi, then
[TABLE]
if for all i∈/J, p∣λi, then
[TABLE]
where δc=1 if p∣c and =0 if p∤c.
Proof.
If there exists i∈/J, p∤λi, then one can choose all possible xj for j=i, and then xi is decided by the xj’s, so NJ(Q;c,pa)=pa(t−s−1)⋅φ(pa)s. Thus (20) holds, so does (19) in this situation.
If for all i∈/J, p∣λi, then there exists i∈J such that p∤λi, so dp,J=1 and (19) holds in this situation by Theorem B. Now one easily has NJ(Q;c,p)=pt−s(p−1)s−spN∗(QJp;c,p), and by (15),
[TABLE]
The theorem is proved.
∎
4.2. The case Q(x1,⋯,xt)=i=1∑tλixik.
In this subsection, we consider the congruence equation
[TABLE]
4.2.1. A general result.
The following Theorem is a more detailed version of our algorithm:
Theorem 4.2**.**
Suppose prime p∤k and Q is reduced at p. For c=0, let cp be the p-adic valuation of c. Let Ip={i∈I∣p∤λi} and tp=#Ip. For J a nonempty subset of I, let Jp={i∈J∣p∤λi}, s=#J and sp=#Jp.
Then
(1) For c=0, N(Q;c,pa) for all a≥1 is completely determined by N(Q;0,pa) for 1≤a≤cp and N(Q;c,pcp+1) through the formula
[TABLE]
In particular, if p∤c, then for a≥1,
[TABLE]
where N(QIp;c,p) can be computed by the formulas in Theorem 2.2.
(2) If Jp=∅, i.e., sp=0 and dp,J=1, then for any a≥1, for any c∈Z,
[TABLE]
[TABLE]
and
[TABLE]
where N(QT;c,p) can be computed by the formula in Theorem 2.2.
In particular, N∗(Q;c,pa) can be computable by the formulas above, in this case J=I and Jp=Ip.
(3) If dp,J=b+1>1, i.e., sp=0, then for c∈Z,
[TABLE]
If moreover, cp<b, then
[TABLE]
Here NJ(Q;c,pa) for a≤b+1 and N(QI−J;c,pa) for a≤cp+1 can be computed by the decomposition formula (13).
In particular, if p∤c, then for a≥1,
[TABLE]
where N(QIp;c,p) can be computed by Theorem 2.2.
4.2.2. The quadratic case.
In this case, we recall the following well-known result:
Proposition 4.3**.**
Suppose Q(x1,⋯,xt)=λ1x12+⋯+λtxt2. For odd prime p,
let \bigl{(}\frac{\cdot}{p}\bigr{)} be the Legendre symbol. If p∤i=1∏tλi, then
[TABLE]
Proof.
This follows from §8.6 in [5], and can also be found in [1].
∎
Remark*.*
The above formula holds for I=∅. In this case t=0 and N(0;c,p)=1 if p∣c and [math] if not.
Theorem 4.4**.**
Suppose Q(x1,⋯,xt)=λ1x12+⋯+λtxt2 and p∤λi for some i∈I.
(1) For p odd, suppose p∤λi for some i∈I.
Let Ip={p∈I∣p∤λi}, let tp=#Ip and rp=#{i∈I∣λiis a quadratic non-residue modulop}. Write p∗=p⋅(p−1), and for i≥j≥0, write
[TABLE]
[TABLE]
Then for a≥1, we have
[TABLE]
where N∗(QIp;c,p) is given by
[TABLE]
(2) Moreover, for J⊆I such that dp,J=1, i.e., if there exists i∈J such
that p∤λj.
Let Jp={p∈I∣p∤λi}, let s=#J, sp=#Jp and rp,J=#{i∈J∣λiis a quadratic non-residue modulop}. Then for a≥1, we have
[TABLE]
where
[TABLE]
(3) For p=2, for J⊆I such that d2,J=3, i.e. if there exists j∈J such that 2∤λj, then for a≥3,
[TABLE]
and for 1≤a≤3,
[TABLE]
In particular, for J=I, let c2′=v2(i∈I∑λi−c). Then
[TABLE]
Remark*.*
For general Q (reduced or not), if we replace the assumption p∤λi for some i∈J by the assumption min{vp(λi)∣i∈I}=min{vp(λi)∣i∈J}, along with Proposition 2.1(2), we get the formula for NJ(Q;c,pa) for all c∈Z and a≥1.
Proof.
Part (3) follows from Theorem B(2), Part (1) is a special case of (2), and (33) follows from Theorem B(1), we just need to prove (34) in Part (2).
By the Inclusion-Exclusion principle, we know
[TABLE]
We use (30) and the above formula to compute NJp(QIp;c,p). We compute the main term and the error term separately. The main term is
[TABLE]
For the error term, we need the following identities
[TABLE]
[TABLE]
In the case tp is odd and p∤c, for the subset T of even order, suppose there are i quadratic residues in {λm∣m∈T} and j quadratic non-residues, the contribution of the error term in N(QIp−T;c,p) is
[TABLE]
So the contribution for all T of even order is (−1)rp(pc)(p∗)tp−1×
[TABLE]
which is
[TABLE]
Similarly for all T of odd order, the error term contribution is
[TABLE]
The other three cases in (34) are obtained by the same method.
∎
4.2.3. The case t=2 and p∤k.
For this case, note that if p∤λ1, let λ1−1 be the p-adic inverse of λ1, then
[TABLE]
Thus we may assume
[TABLE]
such that p∤λ and e≥0. We want to compute NJ(c,pa) for J=∅,{1},{2} and I={1,2}, c∈Z and a≥1.
If p∤c and e=0, by Theorem 2.2 and note that J0(χ,χ−1)=(p−1)χ(−1) if χ=1, =p if χ=1, then
[TABLE]
For J={1} or I, then dp,J=1. By Theorem B, we have NJ(c,pa)=pa−1NJ(c,p). Then by (16), we have
Proposition 4.5**.**
Let Q(x1,x2)=x1k+λpex2k
such that p∤λk and e≥0. Then
[TABLE]
[TABLE]
Here N(c,p) and N(0,p) are given by (38) and (39) respectively.
Remark*.*
In the quadratic case, Theorem 4.4 gives more precise formulas for the cases J={1} or I, or J={2} and e=0.
For J=∅ and {2}, the situation for NJ(c,pa) is much more complicated. We first have
Proposition 4.6**.**
Let Q(x1,x2)=x1k+λpex2k
such that p∤λk and e≥0. For c=0, let cp be the p-adic valuation of c and c′=c/pcp. For c=0, let cp=+∞. Let J={2} or ∅. Then
(1)
NJ(Q;c,pa)=pa−cp−1NJ(Q;c,pcp+1)* for c=0.*
2. (2)
If e≥a, then N{2}(Q;c,pa)=pa−1(p−1)N(x1k;c,pa) and N(Q;c,pa)=paN(x1k;c,pa), and
[TABLE]
Here ⌈x⌉ meanings the smallest integer ≥x.
3. (3)
If e<a, N{2}(Q;c,pa)=pa−e−1N{2}(Q;c,pe+1).
Consequently, the study of NJ(Q;c,pa) for the set J=∅ and {2} is reduced to the study of N(Q;upa,pa+1) for u∈{0,⋯,p−1} and e≤a, and N{2}(Q;upe,pe+1) for u∈{0,⋯,p−1}.
Proof.
Part (1) follows from Theorem C and Part (3) follows from Theorem B. The first half of (2) follows from Proposition 2.1(1). For the second half of (2), the solutions of x1k≡0(modpa) are of the form x1=p⌈ka⌉x1′ for x1′ arbitrary. If cp<a, then x1k≡c(modpa) is solvable only if k∣cp, in this case
[TABLE]
but N∗(xk;c′,p)=N(xk;c′,p)=χ:χk=1∑χ(c′).
∎
For the quadratic case, we have
Proposition 4.7**.**
Let Q(x1,x2)=x12+λpex22 such that p∤2λ. Then
(1) For u∈{1,⋯,p−1},
[TABLE]
For u=0,
[TABLE]
(2) For u∈{1,⋯,p−1} and a≥e,
[TABLE]
For e<a,
[TABLE]
Proof.
We use the decomposition formula in Theorem A to count the number.
(1) Take J1={2} and J2=I in Theorem A, then the decomposition formula for N{2}(Q;upe,pe+1) is
[TABLE]
If j<e/2, N∗(p2jx12+λpex22;upe,pe+1)=0. If j>e/2,
[TABLE]
If j=e/2, then
[TABLE]
Combine the results we get the formula for N{2}(Q;upe,pe+1).
The decomposition formula for N{2}(Q;0,pe+1) is
[TABLE]
If j=e/2, N∗(p2jx12+λpex22;0,pa)=0 and N∗(λpex22;0,pe+1)=0; for j=e/2, N^{*}(p^{2j}x_{1}^{2}+\lambda p^{e}x_{2}^{2};0,p^{e+1})=p^{2e}(p-1)(1+\bigl{(}\frac{-\lambda}{p}\bigr{)}).
So we get the formula for N{2}(Q;0,pe+1).
(2) Take J1=∅ and J2={2}, then the decomposition formula for N(Q;upa,pa+1) is
[TABLE]
If j≥(a+1−e)/2, then
[TABLE]
and N(x_{1}^{2};up^{a},p^{a+1})=p^{a/2}(1+\bigl{(}\frac{u}{p}\bigr{)}) if 2∣a and [math] if 2∤a, so
[TABLE]
If j<(a−e)/2, then
[TABLE]
If j=(a−e)/2, then
[TABLE]
We now can just use results in (1) to obtain the formula for N(Q;upa,pa+1).
The decomposition formula for N(Q;0,pa) is
[TABLE]
If j≥(a−e)/2, then
[TABLE]
If j<(a−e)/2, then
[TABLE]
which is given by formulas in (1). Combine these results, we get the formula for N(Q;0,pa).
∎
Remark*.*
For completeness, let us study NJ(Q;c,2a) for Q(x1,x2)=x12+2eλx22 and 2∤λ. The cases J={1} and {1,2} are given in part (3) of Theorem 4.4. Here we give steps to compute NJ(Qc,2a) for J={2} or ∅.
(1) We first compute N(x12;c,2a). Assume that c=2c2u with u odd for c=0. Then
•
if c=0 or c2≥a, N(x12;0,2a)=2a−⌈2a⌉;
•
if a≥c2+3, N(x12;c,2a)=N(x12;c,2c2+3) (by Theorem C);
•
if c2+1≤a≤c2+3, N(x12;c,2a)=2a−2c2−1 if 2∣c2 and u≡1(mod2a−c2) or [math] if otherwise.
(2) For J={2}, if a>e+3, by Theorem B, we have
[TABLE]
If a≤e+3, since 2ex22≡2e(mod2a) for any x2∈(Z/2aZ)×,
[TABLE]
with N(x12;c−2eλ,2a) be given in part (1).
(3) For J=∅, by the decomposition formula in Theorem A, we have
[TABLE]
where N{2}(x12+λpe+2jx22;c,2a) is given in part (2) and N(x12;c,2a) is given in part (1).
For the general case, we have
Proposition 4.8**.**
Let Q(x1,x2)=x1k+λpex2k
such that p∤λk and e≥0. Let C=N(x1k+λx2k;u,p) and C0∗=N(x1k+λx2k;0,p)−1 given by (38) and (39) respectively. Then
(1) For u∈{1,⋯,p−1},
[TABLE]
For u=0,
[TABLE]
(2) For u∈{1,⋯,p−1} and a≥e,
[TABLE]
For e<a,
[TABLE]
Here the sum ∑ is over all characters χ such that χk=1, and [n] means the largest integer ≤n.
Proof.
The proof of part (1) is similar to the proof of Proposition 4.7. We just show how to get the formulas of part (2).
Take J1=∅ and J2={2}, then the decomposition formula for N(Q;upa,pa+1) is
[TABLE]
If e+kj>a, i.e. j≥[ka−e]+1, then
[TABLE]
and N(x1k;upa,pa+1)=pa−ka∑χ(u) if k∣a and [math] if k∤a, so
The case t≥3 can also be computed, but the discussion is a little bit tedious.
4.3. The example Q(x1,x2,x3)=9x1+3x23+x39 for p=3.
At last we consider the congruence equation
[TABLE]
which is not included in the algorithm.
For c=0, write c=3c3c′; for c=0 set c3=+∞≥a for any a. Since for any J=∅, d3,J=3, by Theorem B, we have
[TABLE]
After simple calculation, we then get NJ(Q;c,27) in Table 1.
For J=∅, the map φ3:(a1,a2,a3)↦Q(α1,α2,α3)mod27 from (Z/3Z)3 to Z/27Z is found to be one-to-one. Note that any solution (β1,β2,β3)∈Γ(Q;c,27) is a lifting of some (a1,a2,a3)∈φ3−1(c), but we always have
[TABLE]
Thus for any c∈Z, we have N(Q;c,27)=36. In fact, we have N(Q;c,3a)=32a for a≤3. For the case a>3, we use the notation NJ1,J2 introduced in the remark of §3.1, then
[TABLE]
We compute the right hand side term by term:
•
if c3=0, then N∅,{2,3}=N{2},{3}=0, N{3},{2}=32a for c′≡1,8,10,17,19,26(mod27), and N{2,3}=32a for c′≡2,4,5,7,11,13,14,16,20,22,23,25(mod27) from Table 1;
•
if c3=1, then N∅,{2,3}=N{3},{2}=N{2,3}=0, and N{2},{3}=32a;
•
if c3≥2, N{2},{3}=N{3},{2}=N{2,3}=0, and N∅,{2,3}=32a.
Thus we have
[TABLE]
for any a>0.
Acknowledgement
Research is partially
supported by National Key Basic Research Program of China (Grant No. 2013CB834202) and National Natural Science Foundation of China (Grant No. 11571328).
Bibliography11
The reference list from the paper itself. Each links out to its DOI / PubMed record.
1[1] T. Agoh, T. Shoji, Quadratic Equations over Finite Fields and Class Numbers of Real Quadratic Fields . Monatsh. Math., 125 (1998), 279-292.
2[2] A. Brauer, Lösung der Aufgabe 30 . Jahresber. Dtsch. Math.-Ver. 35 (1926), 92-94.
3[3] C. Calderón, J. M. Grau, A. M. Oller-Marcén, L. Tóth, Counting invertible sums of squares modulo n 𝑛 n and a new generalization of Euler’s totient function . Publ. Math. Debrecen 87 (2015), no. 1-2, 133-145.
4[4] M. Deaconescu, H.K. Du, Counting similar automorphisms of finite cyclic groups . Math. Japan. 46 (1997), 345-348.
5[5] K. Ireland, M. Rosen, A Classical Introduction to Modern Number Theory, second edition . Graduate Text in Mathematics 84 , Springer Verlag, New York, 1990.
6[6] M. Mollahajiaghaei, On the addition of squares of units modulo n 𝑛 n . J. Number Theory 170 (2017), 35-45.