
We clarify a relation between the arithmetic autocorrelation and pattern distribution of binary sequences, then we apply the relation to study the upper bound of arithmetic autocorrelation for two binary sequences constructed by Fermat quotient and the generalized cyclotomic class of order 2, respectively. Our results indicate that the sequences with large "long term" correlations may have small "short term" pattern distribution; and thus have rather small arithmetic autocorrelations.
Citation: Xi Liu, Huaning Liu. Arithmetic autocorrelation and pattern distribution of binary sequences[J]. Electronic Research Archive, 2025, 33(2): 849-866. doi: 10.3934/era.2025038
[1] | Yixin Ren, Chenyu Hou, Huaning Liu . Correlation properties of interleaved Legendre sequences and Ding-Helleseth-Lam sequences. Electronic Research Archive, 2023, 31(8): 4549-4556. doi: 10.3934/era.2023232 |
[2] | Harman Kaur, Meenakshi Rana . On second order mock theta function $ B(q) $. Electronic Research Archive, 2022, 30(1): 52-65. doi: 10.3934/era.2022003 |
[3] | Tingting Du, Zhengang Wu . On the reciprocal sums of products of $ m $th-order linear recurrence sequences. Electronic Research Archive, 2023, 31(9): 5766-5779. doi: 10.3934/era.2023293 |
[4] | Frank Baginski, Jiajun Lu . Numerical investigations of pattern formation in binary systems with inhibitory long-range interaction. Electronic Research Archive, 2022, 30(5): 1606-1631. doi: 10.3934/era.2022081 |
[5] | Agustín Moreno Cañadas, Robinson-Julian Serna, Isaías David Marín Gaviria . Zavadskij modules over cluster-tilted algebras of type $ \mathbb{A} $. Electronic Research Archive, 2022, 30(9): 3435-3451. doi: 10.3934/era.2022175 |
[6] | Tian-Xiao He, Peter J.-S. Shiue, Zihan Nie, Minghao Chen . Recursive sequences and girard-waring identities with applications in sequence transformation. Electronic Research Archive, 2020, 28(2): 1049-1062. doi: 10.3934/era.2020057 |
[7] | Yuanfei Li . A study on continuous dependence of layered composite materials in binary mixtures on basic data. Electronic Research Archive, 2024, 32(10): 5577-5591. doi: 10.3934/era.2024258 |
[8] |
Tian-Xiao He, Peter J.-S. Shiue .
Identities for linear recursive sequences of order |
[9] | Prapanpong Pongsriiam . Combinatorial structure and sumsets associated with Beatty sequences generated by powers of the golden ratio. Electronic Research Archive, 2022, 30(7): 2385-2405. doi: 10.3934/era.2022121 |
[10] |
Jorge Garcia Villeda .
A computable formula for the class number of the imaginary quadratic field |
We clarify a relation between the arithmetic autocorrelation and pattern distribution of binary sequences, then we apply the relation to study the upper bound of arithmetic autocorrelation for two binary sequences constructed by Fermat quotient and the generalized cyclotomic class of order 2, respectively. Our results indicate that the sequences with large "long term" correlations may have small "short term" pattern distribution; and thus have rather small arithmetic autocorrelations.
Pseudorandom sequences are widely used in measurement, code-division multiple-access (CDMA) systems, wireless communication systems, digital communication systems, and cryptography. The correlation properties analysis of pseudorandom sequences is an important problem for pseudorandom sequences theory.
The arithmetic autocorrelation of a (purely) periodic binary sequence is investigated by Mandelbaum [1] on arithmetic codes. Let (an) be a binary sequence of (purely) period T. For 1≤τ<T, let (an+τ) be the shift of (an). Put
xτ=T−1∑n=0an+τ2nandατ=∞∑n=0an+τ2n,0≤τ<T. |
Write
α0−ατ=∞∑n=0sn,τ2n | (1.1) |
with unique sn,τ∈{0,1}. If x0≥xτ, (sn,τ) is (purely) periodic with period T; otherwise, (sn,τ) is eventually periodic with period T from T on (see [2]). In terms of the case, the arithmetic autocorrelation function A(τ) of (an) is defined as
A(τ)=N0−N1,1≤τ<T, | (1.2) |
where Ni=|{T≤n≤2T−1:sn,τ=i}|, i=0,1.
Compared to the classical autocorrelation, arithmetic autocorrelation is the with-carry correlation function of pseudorandom sequences. Goresky and Klapper [3] extended the arithmetic autocorrelation to cross-correlation and gave large families of binary sequences which have ideal arithmetic cross-correlations. Later, they generalized the arithmetic autocorrelation to non-binary sequences in [4,5]. For more background, the reader is referred to [6].
The arithmetic correlation of sequences is expected to be as small as possible. A nontrivial bound on the arithmetic autocorrelation of the Legendre sequence was proposed in [2]. Hofer, Mérai, and Winterhof [7] proved the arithmetic autocorrelation and the correlation measure of higher orders have the relation as follows:
Proposition 1.1. [7] Put
Γs=max0≤d1<⋯<dℓ−1<T1≤ℓ≤s|T−1∑n=0(−1)en+en+d1+⋯+en+dℓ−1|. |
Then the arithmetic autocorrelation function of a T-periodic binary sequence (en) satisfies
A(τ)≪min{T1/2Γ1/2⌊logT⌋,2rΓ⌊logT⌋logT}, |
where r=min{τ,T−τ} for 1≤τ≤T−1.
We write f(n)=O(g(n)) or f(n)≪g(n) if |f(n)|≤cg(n) for some absolute constant c>0.
Pattern distribution is an important randomness feature of pseudorandom sequences, which reflects any pattern (for fixed length) appearing in a period of the sequence. More precisely, let (bn) be a binary sequence with period T, and let the binary vector f_={f0,f1,⋯,fℓ−1}∈{0,1}ℓ be any pattern (with fixed length ℓ). The number of pattern distribution is
N=|{0≤n<T:(bn,bn+1,⋯,bn+ℓ−1)=(f0,f1,⋯,fℓ−1)}|. |
Ding [8] proved the bounds of the pattern distribution of binary Legendre sequences. Golomb [9] presented the pattern distribution of binary m-sequences. Liu and Ren [10] showed the M-ary sequences derived from Sidel'nikov sequences have asymptotical uniform pattern distribution. Mauduit and Sárközy [11] introduced a relation of pattern distribution and correlation measure of high order. In view of the relation, Hofer, Mérai, and Winterhof [7] obtained another relation between correlation measures of high order and arithmetic autocorrelation, indicating that pseudorandom binary sequences with a small correlation measure of high order also have a small arithmetic autocorrelation; that is Proposition 1.1.
Noting that many binary sequences with large "long term" correlations may have small "short term" pattern distributions and thus they still have small arithmetic autocorrelations. In other words, there are binary sequences that have a great value correlation measure of order ℓ for large value lags dℓ−1, but a small pattern distribution for short lengths of patterns, and then they may have small arithmetic autocorrelation. We shall establish the relation between the arithmetic autocorrelation and the pattern distribution by using the idea in [7] with certain modifications.
Theorem 1.2. Let ET={e0,e1,⋯,eT−1}∈{0,1}T be a binary sequence of period T. Let k≥1, 1≤τ≤T−1 be integers. For any binary vectors a_={a0,⋯,ak}∈{0,1}k+1, b_={b0,⋯,bk}∈{0,1}k+1 and c_={c0,⋯,ck+τ}∈{0,1}k+τ+1, we write pattern distribution as
N(a_,b_,k,τ)(ET)=|{n: T≤n≤2T−1,(en−k,en−k+1,⋯,en)=(a0,a1,⋯,ak) and(en−k+τ,en−k+τ+1,⋯,en+τ)=(b0,b1,⋯,bk)}|, |
when τ>k, otherwise
N(c_,k,τ)(ET)=|{n: T≤n≤2T−1,(en−k,en−k+1,⋯,en+τ)=(c0,c1,⋯,ck+τ)}|. |
Denote
δ2k+2(ET)=maxa_,b_|N(a_,b_,k,τ)(ET)−T22k+2|, | (1.3) |
and
λk+τ+1(ET)=maxc_|Nc_,k,τ(ET)−T2k+τ+1|, | (1.4) |
where the above maximums are taken over all binary vectors a_,b_,c_, respectively, and any integer τ with 1≤τ<T. Put
Δs=max1≤h1,h2≤s{δh1(ET),λh2(ET)}. |
Then we have
A(τ)≪min{T1/2Δ1/2⌊logT⌋,2rΔ⌊logT⌋logT}, | (1.5) |
where r=min{τ,T−τ} for 1≤τ≤T−1.
This paper is organized as follows. We establish a relation between arithmetic autocorrelation and pattern distribution of binary sequences; and prove the relation in Section 2. In terms of the relation, we consider the arithmetic autocorrelation of two types of binary sequences constructed by Fermat quotient and generalized cyclotomic classes of order 2 in Section 3.
In this section, our main content is to prove Theorem 1.2 using the idea of Proposition 1.1, with the difference being that we focus on the direct relation between arithmetic autocorrelation and more specific pattern distributions with "short term".
Now we prove Theorem 1.2. As the arithmetic autocorrelation is symmetric with A(τ)=A(T−τ)([7], Proposition 2.1.), we consider 1≤τ≤⌊T2⌋ in the following. Let 1≤k<m be integers. Take a∈{0,1}, assume
(en−k,en−k+τ)=(a,1−a),en−k+j=en−k+τ+j,j=1,⋯,k−1(en,en+τ)∈{0,1}2, | (2.1) |
for k=1,⋯,m−1 and n=T,⋯,2T−1. First we let m+1≤τ≤⌊T2⌋. For fixed a, from (1.3) we have the number of patterns
(en−ken−k+1⋯enen−k+τen−k+τ+1⋯en+τ) | (2.2) |
that satisfy the assumptions (2.1) is at least T22k+2−δ2k+2. We discuss the specific cases of assumption (2.1). If a=1, from (1.1) we have
2n−k+1>n−k∑n=0(en2n−en+τ2n)=n−k−1∑n=0(en2n−en+τ2n)+2n−k≥1. |
This means there is no need to carry to make sn−k,τ≥0 for the subtraction of en−k+τ=0 from en−k=1. Hence
sn,τ={1,if en≠en+τ,0,if en=en+τ. |
Obviously, there are 2k possibilities of the pattern (2.2), then we have at least T2k+2−2kδ2k+2 different n with T≤n<2T such that sn,τ=1.
If a=0, from (1.1) we have
n−k∑n=0(en2n−en+τ2n)=n−k−1∑n=0(en2n−en+τ2n)−2n−k<0. |
This means there is a need to give a carry for the subtraction of 1 from 0. Hence
sn,τ={1,if en=en+τ,0,if en≠en+τ. |
There are also 2k possibilities of the pattern (2.2); thus we have at least T2k+2−2kδ2k+2 different n with T≤n<2T such that sn,τ=1.
In both cases, we count at least T2k+1−2k+1δ2k+2 different n with T≤n<2T satisfying en−k≠en−k+τ, (en−k+j,en−k+τ+j)∈{(0,0),(1,1)} for j=1,⋯,k−1 and sn,τ=1. Then we have
N1≥12(m−1∑k=112k)T−m−1∑k=12k+1δ2k+2≥T2−2−mT−2m+1Δ2m. |
Analogously, we have the number N0 satisfies
N0≥T2−2−mT−2m+1Δ2m. |
Hence, we obtain
|A(τ)|=|N0−N1|≤2−m+1T+2m+2Δ2m. |
Next, we let 1≤τ≤m, that indicates some indices in pattern (2.2) coincide, so we have two types of pattern distributions. For fixed a, if k≤τ−1, from (1.3) we have the number of patterns (2.2) that satisfy the assumptions (2.1) is at least
T22k+2−δ2k+2, |
if k≥τ, we have the pattern as
(en−ken−k+1⋯enen+1⋯en+τ). | (2.3) |
From (1.4), we know the number of patterns (2.3) satisfies the assumption (2.1) is at least
T2k+τ+1−λk+τ+1. |
Similar to before, if a=1, we have
sn,τ={1,if en≠en+τ,0,if en=en+τ. |
If a=0, we have
sn,τ={1,if en=en+τ,0,if en≠en+τ. |
In each case, we have 2k possibilities of pattern (2.2) and 2τ−1 possible choices of pattern (2.3). Thus, we have at least
T2k+1−2k+1δ2k+2,k≤τ−1,T2k+1−2τλk+τ+1,k≥τ. |
different n with T≤n<2T satisfies en−k≠en−k+τ, (en−k+j,en−k+τ+j)∈{(0,0),(1,1)} for j=1,⋯,k−1 and sn,τ=1.
Let m′=2m−τ, we obtain
N1≥T2m′−1∑k=12−k−τ−1∑k=12k+1δ2k+2−m′−1∑k=τ2τλk+τ+1≥T2−2−2m+τT−2τ+1(m−τ+1)Δ2m, |
and
N0≥T2−2−2m+τT−2τ+1(m−τ+1)Δ2m. |
Therefore
|A(τ)|≤2−2m+τ+1T+2τ+2(m−τ+1)Δ2m. |
Choosing
m=⌊12logTΔ⌊logT⌋⌋, |
We prove the result of Theorem 1.2.
We shall study the arithmetic autocorrelation of two pseudorandom binary sequences by applying Theorem 1.2.
Let p be a prime and let n be an integer with (n,p)=1. The Fermat quotient qp(n) is defined as
qp(n)≡np−1−1p (mod p),0≤qp(n)≤p−1. |
We also define qp(kp)=0 for k∈Z. Fermat quotients have numerous applications in computational and algebraic number theory, and many authors studied their properties (see [12,13,14,15,16,17,18,19] for details). For example, Gómez and Winterhof [15] defined the binary sequence Ep2=(e0,e1,⋯,ep2−1)∈{0,1}p2 as follows:
en={0,if qp(n) is a quadratic residue modulo p or qp(n)=0,1,otherwise, | (3.1) |
and showed that the upper bound of the f-correlation measure of order ℓ is ℓp53. The high linear complexity of Ep2 was studied in [20]. Chen [21] described the trace representation of the above binary sequence Ep2 by determining the defining pairs of all binary characteristic sequences of cosets. There is the research on generalizations of the sequence Ep2 (see [22,23]). The binary sequence Ep2 has the desired pseudorandomness; however, the arithmetic correlation of the sequence Ep2 remains open. We would study the arithmetic autocorrelation of the sequence Ep2 through Theorem 1.2.
In order to calculate the pattern distribution of the binary sequence Ep2, an upper bound estimate for multiplicative character sums of Fermat quotients is needed.
Lemma 3.1. [15] Let χ1,⋯,χℓ be nontrivial multiplicative characters modulo p. Then we have
N−1∑n=0χ1(qp(n+d1))⋯χℓ(qp(n+dℓ))≪max{ℓNp1/3,ℓp3/2logp} |
for any integers 0≤d1<⋯<dℓ≤p2−1 and 1≤N≤p2.
We use the lemma to analyze the pattern distribution of the binary sequence.
Lemma 3.2. Let Ep2 be the binary sequence with period p2 defined in (3.1). Let 1≤k<τ<p2 be integers. For any pattern a_={a0,⋯,ak}∈{0,1}k+1 and b_={b0,⋯,bk}∈{0,1}k+1, we know
N(a_,b_,k,τ)(Ep2)=|{n: p2≤n≤2p2−1,(en−k,en−k+1,⋯,en)=(a0,a1,⋯,ak) and(en−k+τ,en−k+τ+1,⋯,en+τ)=(b0,b1,⋯,bk)}|, |
then
δ2k+2(Ep2)≪(2k+2)p53, | (3.2) |
for 1≤k<16log2p.
Proof. From the definition of pattern distribution, we have
N(a_,b_,k,τ)(Ep2)−p222k+2=122k+22p2−1∑n=p2k∏j=0(1+(−1)en−k+j+aj)(1+(−1)en−k+τ+j+bj)−p222k+2=122k+2∑U,V⊆{0,1,⋯,k}U∪V≠∅2p2−1∑n=p2∏j1∈U(−1)en−k+j1+aj1∏j2∈V(−1)en−k+τ+j2+bj2. |
In the following, we classify and discuss the first sum in the above equation. Let η be the Legendre symbol modulo p. When U≠∅ and V=∅, by (3.1) and Lemma 3.1, we have
122k+2∑U⊆{0,1,⋯,k}∖{∅}2p2−1∑n=p2∏j1∈U(−1)en−k+j1+aj1≤2k+1−122k+2maxU≠∅|2p2−1∑n=p2∏j1∈U(−1)en−k+j1|≤2k+1−122k+2maxU≠∅|2p2−1∑n=p2∏j1∈Uη(qp(n−k+j1))+|U|⋅p|≪12k+1(k+1)p53, | (3.3) |
where |U| denotes the number of elements in set U. When U=∅ and V≠∅, we also have
2k+1−122k+2maxV≠∅|2p2−1∑n=p2∏j2∈V(−1)en−k+τ+j2|≪12k+1(k+1)p53. | (3.4) |
When U≠∅ and V≠∅, by (3.1) and Lemma 3.1 we obtain
122k+2∑U,V⊆{0,1,⋯,k}∖{∅}2p2−1∑n=p2∏j1∈U(−1)en−k+j1+aj1∏j2∈V(−1)en−k+τ+j2+bj2≤22k+2−2k+2+122k+2maxU,V≠∅|2p2−1∑n=p2∏j1∈U(−1)en−k+j1∏j2∈V(−1)en−k+τ+j2|≤maxU,V≠∅|2p2−1∑n=p2∏j1∈Uη(qp(n−k+j1))∏j2∈Vη(qp(n−k+τ+j2))+(|U|+|V|)⋅p|≪(2k+2)p53. | (3.5) |
Combing (3.3)–(3.5), we immediately obtain
|N(a_,b_,k,τ)(Ep2)−p222k+2|≪(2k+2)p53. |
This completes the proof of lemma.
Lemma 3.3. Let Ep2 be the binary sequence with period p2 defined in (3.1). Let 1≤τ≤k be integers. For any pattern c_={c0,c1,⋯,ck+τ}∈{0,1}k+τ+1, we have
N(c_,k,τ)(Ep2)=|{n: p2≤n≤2p2−1,(en−k,en−k+1,⋯,en+τ)=(c0,c1,⋯,ck+τ)}|, |
then
λk+τ+1(Ep2)≪(k+τ+1)p53, | (3.6) |
for 1≤k<16log2p.
Proof. Similar to the proof of Lemma 3.2. Let η be the Legendre symbol modulo p, from (3.1) and Lemma 3.1 we have
N(c_,k,τ)(Ep2)−p22k+τ+1=12k+τ+12p2−1∑n=p2k+τ∏j=0(1+(−1)en−k+j+cj)−p22k+τ+1=12k+τ+1∑W⊆{0,1,⋯,k+τ}∖{∅}2p2−1∑n=p2∏j∈W(−1)en−k+j+cj≤2k+τ+1−12k+τ+1maxW≠∅|2p2−1∑n=p2∏j∈W(−1)en−k+j|≤maxW≠∅|2p2−1∑n=p2∏j∈Wη(qp(n−k+j))+|W|⋅p|≪(k+τ+1)p53. |
Hence, we obtain
|N(c_,k,τ)(Ep2)−p22k+τ+1|≪(k+τ+1)p53. |
This completes the proof of lemma.
As a direct result of Theorem 1.2, Lemmas 3.2 and 3.3, we obtain the arithmetic autocorrelation of binary sequence in (3.1).
Theorem 3.4. Let Ep2 be the binary sequence with period p2 defined by (3.1). The arithmetic autocorrelation of sequence Ep2 satisfies
A(τ)≪min{√2p116(logp)12,2r+2p53(logp)2}, | (3.7) |
where r=min{τ,p2−τ} for 1≤τ≤p2−1.
We illustrate the upper bound derived from Theorem 3.4 with some actual maximum arithmetic autocorrelation values of the binary sequence Ep2 in Figure 1. Then Theorem 3.4 implies that the binary sequence Ep2 has a small arithmetic autocorrelation for a large enough period p2. In addition, the ε-correlation measure of sequence Ep2 was mentioned in [15], we have the upper bound of arithmetic autocorrelation of order of magnitude O(p116(logp)12) from Proposition 1.1 that equals the upper bound of arithmetic autocorrelation of order of magnitude in Theorem 3.4.
Let p and q be distinct primes, T=pq. Let gcd(p−1,q−1)=d and e=(p−1)(q−1)d. By the Chinese Remainder Theorem: there exists a common primitive root g of both p and q, and an integer x such that
x≡g(mod p),x≡1(mod q), |
and ordT(g)=e. A generalized cyclotomic class of order d is defined by Whiteman [24] as
Di={gsxi|s=0,1,⋯,e−1}, i=0,1,⋯,d−1. |
Let Zpq be the residue class ring modulo pq. Whiteman [24] proved
Z∗pq=d−1⋃i=0Di, Di∩Dj=∅,fori≠j. |
The generalized cyclotomic classes is an important approach to constructing pseudorandom sequences. Let P={p,2p,⋯,(q−1)p}, Q={q,2q,⋯,(p−1)q}, and Q0=Q∪{0}. Take d=2, Ding [25] defined the generalized cyclotomic sequence of order 2 Spq={s0,s1,⋯,spq−1} by
sn={0,if nmodpq∈Q0,1,if nmodpq∈P,i,if nmodpq∈Di, | (3.8) |
obviously, the sequence is periodic with pq and can be expressed as [26]
sn={0,if nmodpq∈Q0,1,if nmodpq∈P,1−(np)(nq)2,otherwise, |
where (⋅p) is the Legendre symbol.
The high linear complexity and low autocorrelation values with certain properties of the primes of the generalized cyclotomic sequences Spq have been determined by Ding [25,27], respectively. Brandst¨atter and Winterhof [28] got the lower bound of linear complexity profile and the upper bound of aperiodic autocorrelation. Dai et al. [29] showed the trace representation of the generalized cyclotomic sequence Spq. Hofer and Winterhof [30] demonstrated the 2-adic complexity of the above generalized cyclotomic sequence Spq is close to the period. More generalization refers to [31,32,33,34]. As we know, the arithmetic autocorrelation of the generalized cyclotomic sequence of order 2 has yet to be concerned.
We would study the arithmetic autocorrelation of the generalized cyclotomic sequence Spq based on the upper bound estimates of multiplicative character sums with composite moduli.
Lemma 3.5. [35] Let p,q be distinct prime numbers and f(x)=aℓxℓ+⋯+a1x+a0∈Z[x] and X,Y are real numbers with 0<Y≤pq. Let χ be a primitive multiplicative character modulo pq and write χ=χ1χ2, where χ1 is a character modulo p of order dp>1 and χ2 is a character modulo q of order dq>1. Assume that in Fp[x], f(x) is not the constant multiple of the dp-power of a polynomial and it has sp distinct zeros in ¯Fp, and in Fq[x], f(x) is not the constant multiple of the dq-power of a polynomial, and it has sq distinct zeros in ¯Fq, we have
|∑X<x≤X+Yχ(f(x))|≪ℓ2p1/2q1/2log(pq). |
We first represent the generalized cyclotomic sequence using a multiplicative character. Let χ be the multiplicative character modulo pq. By the orthogonality relations of multiplicative character, we have
n∈Di⟺there is s with 0≤s≤e−1 such that n≡gsxi(mod pq)⟺1ϕ(pq)e−1∑s=0∑χmod pqχ(n)¯χ(gsxi)=1⟺1ϕ(pq)∑χmodpqχ(n)¯χ(xi)e−1∑s=0¯χ(gs)=1⟺12∑χmodpq¯χ(g)=1χ(n)¯χ(xi)=1. |
That means
12∑χmodpq¯χ(g)=1χ(n)={1,if nmodpq∈D0∪Q0,0,if nmodpq∈D1∪P. |
Let H={χmodpq |χ(g)=1 and χ is non-trivial}. Since the order of χ modulo pq is 2, we have |H|=1 and χ∈H is the primitive multiplicative character modulo pq, denoted by χpq. Hence
(−1)sn={+1,if nmodpq∈Q0,−1,if nmodpq∈P,χpq(n),if nmodpq∈Z∗pq. | (3.9) |
According to Theorem 1.2, we will calculate the pattern distribution of the generalized cyclotomic sequence of order 2 in (3.8).
Lemma 3.6. Let p and q be two distinct primes with gcd(p−1,q−1)=2. Let Spq be the binary sequence with period pq defined in (3.8). Let 1≤k<τ<pq be integers. For any pattern a_={a0,⋯,ak}∈{0,1}k+1 and b_={b0,⋯,bk}∈{0,1}k+1, we know
N(a_,b_,k,τ)(Spq)=|{n: pq≤n≤2pq−1,(sn−k,sn−k+1,⋯,sn)=(a0,a1,⋯,ak)and(sn−k+τ,sn−k+τ+1,⋯,sn+τ)=(b0,b1,⋯,bk)}|, |
then
δ2k+2(Spq)≪(2k+2)2p1/2q1/2log(pq)+(2k+2)(p+q), | (3.10) |
for 1≤k<log2p+log2q4.
Proof. From (1.3) we have
N(a_,b_,k,τ)(Spq)−pq22k+2=122k+22pq−1∑n=pqk∏j=0(1+(−1)sn−k+j+aj)(1+(−1)sn−k+τ+j+bj)−pq22k+2=122k+2∑U,V⊆{0,1,⋯,k}U∪V≠∅2pq−1∑n=pq∏j1∈U(−1)sn−k+j1+aj1∏j2∈V(−1)sn−k+τ+j2+bj2=122k+2∑U,V⊆{0,1,⋯,k}∖{∅}2pq−1∑n=pq∏j1∈U(−1)sn−k+j1+aj1∏j2∈V(−1)sn−k+τ+j2+bj2+122k+2∑U⊆{0,1,⋯,k}∖{∅}V=∅2pq−1∑n=pq∏j1∈U(−1)sn−k+j1+aj1+122k+2∑V⊆{0,1,⋯,k}∖{∅}U=∅2pq−1∑n=pq∏j2∈V(−1)sn−k+τ+j2+bj2=∑1+∑2+∑3. |
Next, we discuss the above three sum equations separately. By (3.9) and Lemma 3.5 we have
∑1≤22k+2−2k+2+122k+2maxU,V≠∅|2pq−1∑n=pq∏j1∈U(−1)sn−k+j1∏j2∈V(−1)sn−k+τ+j2|≤22k+2−2k+2+122k+2maxU,V≠∅|pq−1∑n=0n−k+j1∈Zpq∗n−k+τ+j2∈Z∗pq∏j1∈U(−1)spq+n−k+j1∏j2∈V(−1)spq+n−k+τ+j2|+(2k+2)(p+q)≤maxU,V≠∅|∑n∈Zpqχpq(∏j1∈U(pq+n−k+j1))χpq(∏j2∈V(pq+n−k+τ+j2))|+(2k+2)(p+q)≪(2k+2)2p1/2q1/2log(pq)+(2k+2)(p+q), |
and
∑2≤2k+1−122k+2maxU≠∅|2pq−1∑n=pq∏j1∈U(−1)sn−k+j1|≤2k+1−122k+2maxU≠∅|∑n∈Zpqχpq(∏j1∈U(pq+n−k+j1))+|U|(p+q)|≪(k+1)22k+1p1/2q1/2log(pq)+(k+1)2k+1(p+q). |
Similarly, we have
∑3≪(k+1)22k+1p1/2q1/2log(pq)+(k+1)2k+1(p+q). |
Hence, we obtain
|N(a_,b_,k,τ)(Spq)−pq22k+2|≪(2k+2)2p1/2q1/2log(pq)+(2k+2)(p+q). |
This completes the proof of lemma.
Lemma 3.7. Let p and q be two distinct primes with gcd(p−1,q−1)=2. Let Spq be the binary sequence with period pq defined in (3.8). Let 1≤τ≤k be integers. For any pattern c_={c0,c1,⋯,ck+τ}∈{0,1}k+τ+1, we know
N(c_,k,τ)(Spq)=|{n: pq≤n≤2pq−1,(sn−k,sn−k+1,⋯,sn+τ)=(c0,c1,⋯,ck+τ)}|, |
then
λk+τ+1(Spq)≪(k+τ+1)2p1/2q1/2log(pq)+(k+τ+1)(p+q), | (3.11) |
for 1≤k<log2p+log2q4.
Proof. By (3.9) and Lemma 3.5, we have
N(c_,k,τ)−pq2k+τ+1=12k+τ+12pq−1∑n=pqk+τ∏j=0(1+(−1)sn−k+j+cj)−pq2k+τ+1≤2k+τ+1−12k+τ+1maxW≠∅|2pq−1∑n=pq∏j∈W(−1)sn−k+j|≤2k+τ+1−12k+τ+1maxW≠∅|∑n∈Zpqχpq(∏j∈W(pq+n−k+j))+|W|(p+q)|≪(k+τ+1)2p1/2q1/2log(pq)+(k+τ+1)(p+q). |
This concludes the proof of lemma.
Substituting the results of Lemmas 3.6 and 3.7 into Theorem 1.2, we immediately have the arithmetic autocorrelation of the binary generalized cyclotomic sequence.
Theorem 3.8. Let p and q be two distinct primes with gcd(p−1,q−1)=2. Let Spq be the binary sequence with period pq defined by (3.8). The arithmetic autocorrelation of sequence Spq satisfies
A(τ)≪min{√2 p34q34(log(pq))32,2r+1p12q12(log(pq))4}, | (3.12) |
where r=min{τ,p2−τ} for 1≤τ≤p2−1.
We enumerate some actual maximum arithmetic autocorrelation values and the upper bounds obtained from Theorem 3.8 for small periods of binary sequence Spq in Figure 2. The graph shows that the upper bound is greater than the actual maximum value of arithmetic autocorrelation. Then the result derived from Theorem 3.8 indicates the arithmetic autocorrelation of the sequence Spq is rather small for a sufficiently large period pq.
Remark 3.9. Rivat and Sárközy [35] studied the pseudorandom correlation measure of the binary Jacobi sequence of period pq defined with polynomial f(n). For f(n)=n, their results imply
|pq−p−q∑n=1(−1)snsn+psn+qsn+p+q|≥pq−35p1/2q1/2, |
that means "long term" correlation of order 4 of the generalized cyclotomic sequence Spq in (3.8) is large. Then we cannot obtain the arithmetic autocorrelation of the sequence by Proposition 1.1. In contrast to this, we get a rather small "short term" pattern distribution, resulting in a small arithmetic autocorrelation of the binary sequence Spq.
Let p,q and T be prime numbers, and d, n, and k be integers. We list the previously known and currently proposed arithmetic autocorrelation functions A(τ) as well as conditions with binary sequences in Table 1.
No. | A(τ)≪ | period of sequence | conditions | reference |
1 | 0 | pr−1(p−1) | 2 is primitive root modulo pr | [19] |
2 | 4p3/4(log2p)1/2 | p | [26] | |
3 | d1/2p3/4 | p | d<12loglogplogp | [25] |
or 2 is a primitive root modulo p | ||||
4 | p3n/4 | pn−1 | [25] | |
5 | d1/2p1/4T1/2 | T | d<logploglogp | [25] |
or 2 is a primitive root modulo T | ||||
6 | d1/223k/4 | 2k−1(is prime) | k≤d+1 | [25] |
0 | pr−1(p−1)/2 | p≡1(mod 8) | ||
7 | pr−1/2lnp | pr−1(p−1)/2 | p≡−1(mod 8) | [8] |
2p−1≢1(mod p2),ordp(2)=p−12 | ||||
8 | 2n−1−1 | 2n−1 | [10] | |
9 | √2p11/6(logp)1/2 | p2 | Theorem 3.4 | |
10 | √2 (pq)3/4(log(pq))3/2 | pq | Theorem 3.8 |
Goresky and Klapper [4,5] presented the expected arithmetic autocorrelation over all binary sequences with period T, which is T2T−gcd(τ,T) for fixed τ. Subsequently, Hofer, Mérai, and Winterhof [7] gave the upper bound of arithmetic autocorrelation for any pseudorandom binary sequence of period T with a small correlation measure, A(τ)=O(T34(log2T)12). They studied the arithmetic autocorrelation of several sequences, including binary sequences from the Legendre symbol, the Sidelnikov–Lempel–Cohn–Eastman sequence, and the sequence from the trace function, as in the 3–6-th row of Table 1. The arithmetic autocorrelation of these sequences is relatively small with respect to its period when the period is sufficiently large, but obtaining these results relies on a small correlation measure of high order. Moreover, Goresky and Klapper [3] proved ℓ-sequence have ideal arithmetic autocorrelation, as in the 1-th row of Table 1; however, the classical autocorrelation equals the period, which is not desired. Chen et al. [36] presented the arithmetic autocorrelation of the binary m-sequence, which amounts to half of the period, as in the 8-th row of Table 1. Compared with these sequences, the generalized cyclotomic sequence of order 2 studied in Theorem 3.8 has rather small arithmetic autocorrelation with upper bound of order of magnitude O(p34q34(log(pq))3/2) for sufficiently large period pq, although its correlation measure of order 4 is quite large. As well as binary sequence Ep2 studied in Theorem 3.4, which has a small upper bound of arithmetic autocorrelation relative to its large enough period, its f-correlation measure is also small.
In this paper we constructed the relation between arithmetic autocorrelation and pattern distribution of binary sequences. Based on this relation, we proved the arithmetic autocorrelation of the binary sequence defined in [15]; and pointed out that the generalized cyclotomic sequence defined in [25] has a small "short term" pattern distribution and gave an upper bound of arithmetic autocorrelation. Our results indicate that some pseudorandom sequences with large "long term" pseudorandom correlations of order k may have small arithmetic correlations; and therefore can also be used for research in certain cryptographic fields. It may be interesting to find and study these pseudorandom sequences.
The authors declare they have not used Artificial Intelligence (AI) tools in the creation of this article.
The authors express their gratitude to the referees for their nice comments. This paper is supported by the National Natural Science Foundation of China under Grant No. 12071368, the Science and Technology Program of Shaanxi Province of China under Grant Nos. 2024JC-YBMS-040 and 2024JC-JCQN-04, and the Shaanxi Fundamental Science Research Project for Mathematics and Physics under Grant Nos. 23JSY025 and 22JSY017.
The authors declare there are no conflicts of interest.
[1] |
D. Mandelbaum, Arithmetic codes with large distance, IEEE Trans. Inf. Theory, 13 (1967), 237–242. https://doi.org/10.1109/TIT.1967.1054015 doi: 10.1109/TIT.1967.1054015
![]() |
[2] |
R. Hofer, A. Winterhof, On the arithmetic autocorrelation of the legendre sequence, Adv. Math. Commun., 11 (2017), 237–244. https://doi.org/10.3934/amc.2017015 doi: 10.3934/amc.2017015
![]() |
[3] |
M. Goresky, A. Klapper, Arithmetic crosscorrelation of feedback with carray shift register sequences, IEEE Trans. Inf. Theory, 43 (1997), 1342–1345. https://doi.org/10.1109/18.605605 doi: 10.1109/18.605605
![]() |
[4] | M. Goresky, A. Klapper, Some results on the arithmetic correlation of sequences, in Sequences and Their Applications-SETA 2008: 5th International Conference Lexington, 5203 (2008), 71–80. https://doi.org/10.1007/978-3-540-85912-3_7 |
[5] |
M. Goresky, A. Klapper, Statistical properties of the arithmetic correlation of sequences, Int. J. Found. Comput. Sci., 22 (2011), 1297–1315. https://doi.org/10.1142/S0129054111008726 doi: 10.1142/S0129054111008726
![]() |
[6] | M. Goresky, A. Klapper, Algebratic Shift Register Sequences, Cambridge University Press, U.K., 2012. https://doi.org/10.1017/CBO9781139057448 |
[7] | R. Hofer, L. Mérai, A. Winterhof, "Measure of pseudorandomness: Arithmetic autocorrelation and correlation measure", in Number Theory-Diophantine Problems, Uniform Distribution and Applications, (eds. C. Elsholtz and P. Grabner), Spring, Cham (2017), 303–312. https://doi.org/10.1007/978-3-319-55357-3_15 |
[8] |
C. Ding, Pattern distributions of Legendre sequences, IEEE Trans. Inf. Theory, 44 (1998), 1693–1698. https://doi.org/10.1109/18.681353 doi: 10.1109/18.681353
![]() |
[9] | S. W. Golomb, G. Gong, Signal Design for Good Correlation: For Wireless Communication, Cryptography and Radar, Cambridge University Press, Cambridge, 2005. https://doi.org/10.1017/CBO9780511546907 |
[10] |
H. Liu, Y. Ren, Balance, pattern distribution and linear complexity of M-ary sequences from Sidel'nikov sequences, Appl. Algebra Engrg. Comm. Comput., 35 (2024), 667–682. https://doi.org/10.1007/s00200-022-00580-5 doi: 10.1007/s00200-022-00580-5
![]() |
[11] |
C. Mauduit, A. Sárközy, On finite pseudorandom sequences of k symbols, Indag. Math., 13 (2002), 89–101. https://doi.org/10.1016/S0019-3577(02)90008-X doi: 10.1016/S0019-3577(02)90008-X
![]() |
[12] |
H. Aly, A. Winterhof, Boolean functions derived from Fermat quotients, Cryptogr. Commun., 3 (2011), 165–174. https://doi.org/10.1007/s12095-011-0043-5 doi: 10.1007/s12095-011-0043-5
![]() |
[13] |
M. C. Chang, Short character sums with Fermat quotients, Acta Arith., 152 (2012), 23–38. https://doi.org/10.4064/aa152-1-3 doi: 10.4064/aa152-1-3
![]() |
[14] |
Z. Chen, A. Winterhof, Interpolation of Fermat quotients, SIAM J. Discrete Math., 28 (2014), 1–7. https://doi.org/10.1137/130907951 doi: 10.1137/130907951
![]() |
[15] |
D. Gómez, A. Winterhof, Multiplicative character sums of Fermat quotients and pseudorandom sequences, Period. Math. Hungar., 64 (2012), 161–168. https://doi.org/10.1007/s10998-012-3747-1 doi: 10.1007/s10998-012-3747-1
![]() |
[16] |
A. Ostafe, I. E. Shparlinski, Pseudorandomness and dynamics of Fermat quotients, SIAM J. Discrete Math., 25 (2011), 50–71. https://doi.org/10.1137/100798466 doi: 10.1137/100798466
![]() |
[17] |
I. E. Shparlinski, Fermat quotients: exponential sums, value set and primitive roots, Bull. Lond. Math. Soc., 43 (2011), 1228–1238. https://doi.org/10.1112/blms/bdr058 doi: 10.1112/blms/bdr058
![]() |
[18] |
I. E. Shparlinski, Character sums with Fermat quotients, Q. J. Math., 62 (2011), 1031–1043. https://doi.org/10.1093/qmath/haq028 doi: 10.1093/qmath/haq028
![]() |
[19] |
I. E. Shparlinski, Bounds of multiplicative character sums with Fermat quotients of primes, Bull. Aust. Math. Soc., 83 (2011), 456–462. https://doi.org/10.1017/S000497271000198X doi: 10.1017/S000497271000198X
![]() |
[20] | Z. Chen, L. Hu, X. Du, Linear complexity of some binary sequences derived from Fermat quotients, China Commun., 9 (2012), 105–108. |
[21] |
Z. Chen, Trace representation and linear complexity of binary sequences derived from Fermat quotients, Sci. China Inf. Sci., 57 (2014), 112109:1–10. https://doi.org/10.1007/s11432-014-5092-x doi: 10.1007/s11432-014-5092-x
![]() |
[22] | Z. Chen, Z. Niu, C. Wu, On the k-error linear complexity of binary sequences derived from polynomial quotients, preprint, arXiv: 1307.6626. |
[23] |
X. Du, A. Klapper, Z. Chen, Linear complexity of pseudorandom sequences generated by Fermat quotients and their generalizations, Inf. Process. Lett., 112 (2012), 233–237. https://doi.org/10.1016/j.ipl.2011.11.017 doi: 10.1016/j.ipl.2011.11.017
![]() |
[24] |
A. L. Whiteman, A family of difference sets, Illinois J. Math., 6 (1962), 107–121. https://doi.org/10.1215/ijm/1255631810 doi: 10.1215/ijm/1255631810
![]() |
[25] |
C. Ding, Linear complexity of generalized cyclotomic binary sequences of order 2, Finite Fields Appl., 3 (1997), 159–174. https://doi.org/10.1006/ffta.1997.0181 doi: 10.1006/ffta.1997.0181
![]() |
[26] | T. W. Cusick, C. Ding, A. Renvall, Stream Ciphers and Number Theory, North-holland mathematical library, Amsterdam, The Netherlands: North-Holland, 1998. https://doi.org/10.1016/s0924-6509(98)x8001-3 |
[27] |
C. Ding, Autocorrelation values of generalized cyclotomic sequences of order two, IEEE Trans. Inf. Theory, 44 (1998), 1699–1702. https://doi.org/10.1109/18.681354 doi: 10.1109/18.681354
![]() |
[28] |
N. Brandstätter, A. Winterhof, Some notes on the two-prime generator of order 2, IEEE Trans. Inf. Theory, 51 (2005), 3654–3657. https://doi.org/10.1109/TIT.2005.855615 doi: 10.1109/TIT.2005.855615
![]() |
[29] |
Z. Dai, G. Gong, H. Y. Song, A trace representation of binary Jacobi sequences, Discrete Math., 309 (2009), 1517–1527. https://doi.org/10.1016/j.disc.2008.02.024 doi: 10.1016/j.disc.2008.02.024
![]() |
[30] |
R. Hofer, A. Winterhof, On the 2-adic complexity of the two-prime generator, IEEE Trans. Inf. Theory, 64 (2018), 5957–5960. https://doi.org/10.1109/TIT.2018.2811507 doi: 10.1109/TIT.2018.2811507
![]() |
[31] |
E. Bai, X. Fu, G. Xiao, On the linear complexity of generalized cyclotomic sequences of order four over Zpq, IEICE Trans. Fundam. Electron. Commun. Comput. Sci., E88-A (2005), 392–395. https://doi.org/10.1093/ietfec/E88-A.1.392 doi: 10.1093/ietfec/E88-A.1.392
![]() |
[32] |
E. Bai, X. Liu, G. Xiao, Linear complexity of new generalized cyclotomic sequences of order two of length pq, IEEE Trans. Inf. Theory, 51 (2005), 1849–1853. https://doi.org/10.1109/TIT.2005.846450 doi: 10.1109/TIT.2005.846450
![]() |
[33] |
T. Yan, X. Du, G. Xiao, X, Huang, Linear complexity of binary Whiteman generalized cyclotomic sequences of order 2k, Inf. Sci., 179 (2009), 1019–1023. https://doi.org/10.1016/j.ins.2008.11.006 doi: 10.1016/j.ins.2008.11.006
![]() |
[34] |
L. Hu, Q. Yue, M. Wang, The linear complexity of Whiteman's generalized cyclotomic sequences of period pm+1qn+1, IEEE Trans. Inf. Theory, 58 (2012), 5534–5543. https://doi.org/10.1109/TIT.2012.2196254 doi: 10.1109/TIT.2012.2196254
![]() |
[35] |
J. Rivat, A. Sárközy, Modular constructions of pseudorandom binary sequences with composite moduli, Period. Math. Hungar., 51 (2005), 75–107. https://doi.org/10.1007/s10998-005-0031-7 doi: 10.1007/s10998-005-0031-7
![]() |
[36] |
Z. Chen, Z. Niu, Y. Sang, C. Wu, Arithmetic autocorrelation of binary m-sequences, Cryptologia, 47 (2023), 449–458. https://doi.org/10.1080/01611194.2022.2071116 doi: 10.1080/01611194.2022.2071116
![]() |
[37] |
Z. Chen, V. Edemskiy, Z. Niu, Y. Sang, Arithmetic correlation of binary half-ℓ-sequences, IET Inf. Secur., 17 (2023), 289–293. https://doi.org/10.1049/ise2.12093 doi: 10.1049/ise2.12093
![]() |
[38] |
Z. Chen, Z. Niu, A. Winterhof, Arithmetic crosscorrelation of pseudorandom binary sequences of coprime periods, IEEE Trans. Inf. Theory, 68 (2022), 7538–7544. https://doi.org/10.1109/tit.2022.3184176 doi: 10.1109/tit.2022.3184176
![]() |
[39] |
X. Jing, K. Feng, Arithmetic crosscorrelation of binary m-sequences with coprime periods, Finite Fields Appl., 96 (2024), 102424. https://doi.org/10.1016/j.ffa.2024.102424 doi: 10.1016/j.ffa.2024.102424
![]() |
[40] |
X. Jing, A. Zhang, K. Feng, Arithmetic Autocorrelation Distribution of Binary m-Sequences, IEEE Trans. Inf. Theory, 69 (2023), 6040–6047. https://doi.org/10.1109/tit.2023.3282229 doi: 10.1109/tit.2023.3282229
![]() |
No. | A(τ)≪ | period of sequence | conditions | reference |
1 | 0 | pr−1(p−1) | 2 is primitive root modulo pr | [19] |
2 | 4p3/4(log2p)1/2 | p | [26] | |
3 | d1/2p3/4 | p | d<12loglogplogp | [25] |
or 2 is a primitive root modulo p | ||||
4 | p3n/4 | pn−1 | [25] | |
5 | d1/2p1/4T1/2 | T | d<logploglogp | [25] |
or 2 is a primitive root modulo T | ||||
6 | d1/223k/4 | 2k−1(is prime) | k≤d+1 | [25] |
0 | pr−1(p−1)/2 | p≡1(mod 8) | ||
7 | pr−1/2lnp | pr−1(p−1)/2 | p≡−1(mod 8) | [8] |
2p−1≢1(mod p2),ordp(2)=p−12 | ||||
8 | 2n−1−1 | 2n−1 | [10] | |
9 | √2p11/6(logp)1/2 | p2 | Theorem 3.4 | |
10 | √2 (pq)3/4(log(pq))3/2 | pq | Theorem 3.8 |
No. | A(τ)≪ | period of sequence | conditions | reference |
1 | 0 | pr−1(p−1) | 2 is primitive root modulo pr | [19] |
2 | 4p3/4(log2p)1/2 | p | [26] | |
3 | d1/2p3/4 | p | d<12loglogplogp | [25] |
or 2 is a primitive root modulo p | ||||
4 | p3n/4 | pn−1 | [25] | |
5 | d1/2p1/4T1/2 | T | d<logploglogp | [25] |
or 2 is a primitive root modulo T | ||||
6 | d1/223k/4 | 2k−1(is prime) | k≤d+1 | [25] |
0 | pr−1(p−1)/2 | p≡1(mod 8) | ||
7 | pr−1/2lnp | pr−1(p−1)/2 | p≡−1(mod 8) | [8] |
2p−1≢1(mod p2),ordp(2)=p−12 | ||||
8 | 2n−1−1 | 2n−1 | [10] | |
9 | √2p11/6(logp)1/2 | p2 | Theorem 3.4 | |
10 | √2 (pq)3/4(log(pq))3/2 | pq | Theorem 3.8 |