On the values of representation functions II
Xing-Wang [email protected](X.-W. Jiang), Csaba Sá[email protected](C. Sándor), Quan-Hui [email protected](Q.-H. Yang)
*School of Mathematical Sciences and Institute of Mathematics,
Nanjing Normal University, Nanjing 210023, China
†Institute of Mathematics, Budapest University of Technology and Economics,
H-1529 B. O. Box, Hungary
‡School of Mathematics and Statistics, Nanjing University of Information
Science and Technology,
Nanjing 210044, China
Abstract.
For a set A of nonnegative integers, let R2(A,n) and R3(A,n) denote the number of solutions to n=a+a′ with a,a′∈A, a<a′ and a≤a′, respectively. In this paper, we prove that, if A⊆N and N is a positive integer such that R2(A,n)=R2(N∖A,n) for all n≥2N−1, then for any θ with 0<θ<42log2−9log32log2−log3, the set of integers n with R2(A,n)=8n+O(n1−θ) has density one. The similar result holds for R3(A,n). These improve the results of the first author.
2010 Mathematics Subject Classification: 11B34, 11B83
Keywords and phrases: partition, representation function, Thue-Morse sequence, Sárközy’s problem
1 Introduction
Let N be the set of nonnegative integers. For a set A⊆N, let R2(A,n) and R3(A,n) denote the number of solutions to a+a′=n with a,a′∈A, a<a′ and a≤a′, respectively.
In the last few decades, the representation function was a popular topic that was studied by Erdős, Sárközy and Sós in a series of papers, see [7, 8, 9]. Sárközy asked that whether there exist two sets A and B with infinite symmetric difference such that Ri(A,n)=Ri(B,n) for all sufficiently large integers n. Let A0 be the set of all nonnegative integers n with even number of ones in the binary representation of n, and let B0=N∖A0. The sequence A0 is called Thue-Morse sequence. In 2002, Dombi [6] answered this problem affirmatively by proving that R2(A0,n)=R2(B0,n) for all n≥0. In 2003, Chen and Wang [5] proved that the set of nonnegative integers can be partitioned into two subsets A and B such that R3(A,n)=R3(B,n) for all n≥1. In 2004, Sándor [11] gave the precise formulations as following.
Theorem A [11, Theorem 1].
Let N be a positive integer. Then R2(A,n)=R2(N∖A,n) for all n≥2N−1 if and only if ∣A∩[0,2N−1]∣=N and 2m∈A⇔m∈A, 2m+1∈A⇔m∈/A for all m≥N.
Theorem B [11, Theorem 2].
Let N be a positive integer. Then R3(A,n)=R3(N∖A,n) for all n≥2N−1 if and only if ∣A∩[0,2N−1]∣=N and 2m∈A⇔m∈/A, 2m+1∈A⇔m∈A for all m≥N.
Let RA,B(n) be the number of solutions to
a+b=n,a∈A,b∈B. In 2011, Chen [1] studied the range of Ri(A,n) for the first time and proved the
following results.
Theorem C [1, Theorem 1.1, Theorem 1.4 (i)].
(i) Let A be a subset of N and N be a positive integer such that R2(A,n)=R2(N∖A,n) for all n≥2N−1. If ∣A∩A0∣=+∞ and ∣A∩B0∣=+∞, then for all n≥1, we have
[TABLE]
(ii) Let A be a subset of N and N be a positive integer such that R3(A,n)=R3(N∖A,n) for all n≥2N−1. Then for all n≥1, we have
[TABLE]
Theorem D ([1, Theorem 1.2, Theorem 1.5]).
(i) Let A be a subset of N and N be a positive integer such that R2(A,n)=R2(N∖A,n) for all n≥2N−1. Then, for any function f with f(x)→+∞ as x→+∞, the set of integers n with
[TABLE]
*has the density one.
(ii) Let A be a subset of N and N be a positive integer such that R3(A,n)=R3(N∖A,n) for all n≥2N−1. Then, for any function f with f(x)→+∞ as x→+∞, the set of integers n with*
[TABLE]
has the density one.
In 2018, Jiang [10] improved the results of Theorem D.
Theorem E [10, Corollary 1.2].
Let A be a subset of N and N be a positive integer such that R2(A,n)=R2(N∖A,n) for all n≥2N−1. Then, for any ϵ>0, the set of integers n with
[TABLE]
has density one.
Jiang claimed that if A⊆N and N is a positive integer such that R3(A,n)=R3(N∖A,n) for all n≥2N−1, then the same result holds for R3(A,n). For more
related results, see [2, 3, 12, 13, 14]. In this paper, the following results are proved.
Theorem 1.1**.**
Let A0 be the Thue Morse sequence. Then for any 0<θ<40log2−8log32log2−log3=0.0151…, there exists a δ=δ(θ)>0 such that
[TABLE]
where the implied constant depends on θ.
Theorem 1.2**.**
Let A be a subset of N and N be a positive integer such that R2(A,n)=R2(N∖A,n) for all n≥2N−1. Then for any 0<θ<42log2−9log32log2−log3=0.0149…, there exists a δ=δ(θ)>0 such that
[TABLE]
where the implied constant depends only on θ.
By Theorem 1.2, we immediately have
Corollary 1.3**.**
Let A be a subset of N and N be a positive integer such that R2(A,n)=R2(N∖A,n) for all n≥2N−1. Then for any 0<θ<42log2−9log32log2−log3=0.0149…, the set of integers n with
[TABLE]
has density one.
Remark 1.4**.**
If A⊆N and N is a positive integer such that R3(A,n)=R3(N∖A,n) for all n≥2N−1, then applying the same method, we can get that for any 0<θ<42log2−9log32log2−log3=0.0149…, the set of integers n with
R3(A,n)=8n+O(n1−θ)
has density one.
Motivated by R2(A0,22l+1−1)=0, we pose two problems for further research.
Problem 1.5**.**
Let A be a subset of N and N be a positive integer such that R2(A,n)=R2(N∖A,n) for all n≥2N−1. Does there exist a sequence n1,n2,… such that
[TABLE]
Problem 1.6**.**
Let A be a subset of N and N be a positive integer such that R3(A,n)=R3(N∖A,n) for all n≥2N−1. Does there exist a sequence n1,n2,… such that
[TABLE]
In this paper, we define
[TABLE]
and
[TABLE]
where
[TABLE]
2 Proofs
In this section, we give the proof of our main result. Firstly, we prove some lemmas.
Lemma 2.1**.**
Let 0<ϵ<40log2−8log32log2−log3. Then there exists a δ′=δ′(ϵ) with 0<δ′<1 such that
[TABLE]
where the implied constant depends only on ϵ.
Proof.
For 10x<n≤x, let
[TABLE]
be the binary representation of n, and let
[TABLE]
For 0<c<1, we are going to show that f(n)>24clog2x implies
[TABLE]
Suppose that f(n)>24clog2x. Let (ε3kj(n),ε3kj+1(n),ε3kj+2(n))=(1,0,1) for 1≤j≤f(n), and let
[TABLE]
Then
[TABLE]
where
[TABLE]
Clearly,
[TABLE]
and
[TABLE]
We have
[TABLE]
It follows from (y,z)∈S1 and (y,z)∈/Pkt
that
[TABLE]
therefore the digits ε3kt+3(z),ε3kt+4(z),… are determined. Since
[TABLE]
it follows that
[TABLE]
and so
[TABLE]
On the other hand,
[TABLE]
hence
[TABLE]
Therefore,
[TABLE]
By (2.1), (2.2), (2.3), (2.4), we have
[TABLE]
Let
[TABLE]
We will prove that S(n)⊆T(n).
Let (y,z)∈S(n) and (ε3kt(z),ε3kt+1(z),ε3kt+2(z))=(0,1,0), then
[TABLE]
since ∑i=03ktεi(y)2i+∑i=03ktεi(z)2i<23kt+23kt+1 and ε3kt(n)=1. It follows from (ε3kt(n),ε3kt+1(n),ε3kt+2(n))=(1,0,1) that ε3kt+1(y)=1, ε3kt+2(y)=0.
Hence,
[TABLE]
and so there exists some L≤3kt satisfying
[TABLE]
but
[TABLE]
Since ∑i=3kt+3⌊log2x⌋εi(y)2i<∑i=3kt+3⌊log2x⌋εi(z)2i, we have ∑i=L+3⌊log2x⌋εi(y)2i<∑i=L+3⌊log2x⌋εi(z)2i.
Therefore, (y,z)∈T(n).
Similarly, if (y,z)∈S(n) and (ε3kt(z),ε3kt+1(z),ε3kt+2(z))=(0,0,1), then we obtain ε3kt+1(y)=0, ε3kt+2(y)=0. By the similar argument as above, we have (y,z)∈T(n). Therefore S(n)⊆T(n), and so
[TABLE]
Now, we prove that
[TABLE]
For D1,D2⊆N, let
[TABLE]
Then
[TABLE]
We are going to define a bijection between TA0,A0(n)∪TB0,B0(n) and TA0,B0(n)∪TB0,A0(n). Let (y,z)∈T(n). Let (y′,z′)=(y−2L+1,z+2L+1) if (εL+1(y),εL+2(y),εL(z),εL+1(z),εL+2(z))=(1,0,0,1,0). It is easy to see that (εL+1(y′),εL+2(y′),εL(z′),εL+1(z′),εL+2(z′))=(0,0,0,0,1), ∑i=0∞εi(y)+∑i=0∞εi(z)−(∑i=0∞εi(y′)+∑i=0∞εi(z′))=1 and (εi+1(y′),εi+2(y′),εi(z′),εi+1(z′),εi+2(z′))=(1,0,0,1,0) and (0,0,0,0,1) for i<L.
Let (y′,z′)=(y+2L+1,z−2L+1) if (εL+1(y),εL+2(y),εL(z),εL+1(z),εL+2(z))=(0,0,0,0,1). It is easy to see that (εL+1(y′),εL+2(y′),εL(z′),εL+1(z′),εL+2(z′))=(1,0,0,1,0), ∑i=0∞εi(y)+∑i=0∞εi(z)−(∑i=0∞εi(y′)+∑i=0∞εi(z′))=−1 and (εi+1(y′),εi+2(y′),εi(z′),εi+1(z′),εi+2(z′))=(1,0,0,1,0) and (0,0,0,0,1) for i<L.
Clearly, {(y,z):(y,z)∈T(n),∑i=0∞εi(y)+∑i=0∞εi(z)\mboxiseven}=TA0,A0(n)∪TB0,B0(n) and {(y,z):(y,z)∈T(n),∑i=0∞εi(y)+∑i=0∞εi(z)\mboxisodd}=TA0,B0(n)∪TB0,A0(n).
These facts imply that (y,z)→(y′,z′) defined as above is a bijection between TA0,A0(n)∪TB0,B0(n) and TA0,B0(n)∪TB0,A0(n).
By (2.5) and (2.6), we have
[TABLE]
Clearly,
[TABLE]
and
[TABLE]
Since R2(A0,n)=R2(B0,n), we have
[TABLE]
Let ϵ=40log2−8log3c(2log2−log3). Then 0<ϵ<40log2−8log32log2−log3. By Stirling’s approximation, there is a δ′=δ′(ϵ) with 0<δ′<1 such that
[TABLE]
Therefore,
[TABLE]
This completes the proof.
∎
Lemma 2.2**.**
[4, Lemma 1]**
Let A be a subset of N and N be a positive integer such that R2(A,n)=R2(N∖A,n) for all n≥2N−1, and let m,k,i be integers with m≥N, i≥0 and 0≤k<2i. Then
(a) if k∈A0, then m∈A⇔2im+k∈A,
(b) if k∈B0, then m∈A⇔2im+k∈/A.
Lemma 2.3**.**
Let A be a subset of N and N be a positive integer such that R2(A,n)=R2(N∖A,n) for all n≥2N−1. If 0<ϵ,δ′<1 and
[TABLE]
then
[TABLE]
Proof.
Let 2k0−2<N≤2k0−1 and let k=⌊1+ϵlog2x⌋. The integer 10x<n≤x is called bad if n=2km+r, 0≤r<2k, where
R2(A0,r)=8r+O(2k(1−ϵ)) or R2(A0,r+2k)=8r+2k+O(2k(1−ϵ)). We are going to show that if n is not bad, then
[TABLE]
Suppose that n is not bad. Then
[TABLE]
and so
[TABLE]
It follows from
[TABLE]
that
[TABLE]
Similarly, we have
[TABLE]
and
[TABLE]
By Lemma 2.2, we know that
[TABLE]
where Cj=A0∩[0,2k−1] if j∈A and Cj=B0∩[0,2k−1] if j∈N∖A. Define Cjˉ=[0,2k−1]∖Cj, and Cjext=A0 if j∈A, Cjext=B0 if j∈N∖A.
We have
[TABLE]
By (2.10) and (2.11), we have
[TABLE]
On the other hand,
[TABLE]
By (2.12) and (2.13), we have
[TABLE]
If c+c′=n−⌊2kn⌋2k+2k, where c≥2k, then 2k≤c<2k+1. Hence, c∈C⌊2kn⌋−j−1ext if and only if c−2k∈Cˉ⌊2kn⌋−j−1. Therefore,
[TABLE]
Similarly,
[TABLE]
It follows that
[TABLE]
Hence,
[TABLE]
By (2.9), we have
[TABLE]
Therefore,
[TABLE]
This completes the proof.
∎
Finally, we prove our main results.
Proof of Theorems 1.1 and 1.2.
For 0<ϵ<40log2−8log32log2−log3, by Lemma 2.1, we know that there exists a δ′=δ′(ϵ) with 0<δ′<1 such that
[TABLE]
Let θ=1+ϵϵ. Then 0<θ<42log2−9log32log2−log3. By Lemma 2.3, we have
[TABLE]
Similar to the previous argument, we can get the desired result.
∎
Acknowledgements
The first author was supported by the National Natural Science Foundation of China, Grant No. 11771211. The second author was supported by the NKFIH Grant No. K129335. The third author was supported by the National Natural Science Foundation for Youth of China, Grant No. 11501299, the Natural Science Foundation of Jiangsu Province, Grant Nos. BK20150889, 15KJB110014 and the Startup Foundation for Introducing Talent of NUIST, Grant No. 2014r029.