Abstract
For distinct odd primes N and p, we view the N-periodic binary Legendre sequence as a p-ary sequence and present its trace representation via trace functions over \({\mathbb {F}}_p\). We use a skill to calculate the Mattson–Solomon polynomials of Legendre sequences and then describe the Mattson–Solomon polynomials by means of trace functions over \({\mathbb {F}}_p\).
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
For an odd prime number N, the N-periodic Legendre sequence is defined as
where \((\frac{\cdot }{N})\) is the Legendre symbol. Let g be a (fixed) primitive root modulo N, one can define the cyclotomic classes
and
Then we get an equivalent definition of the Legendre sequence
The Legendre sequences \((s_u)\) have been extensively studied in the literature. They have strong pseudorandomness properties: equidistribution, optimal correlation, high linear complexity, etc., see [3, 4, 6, 9, 10, 14, 18, 23]. Aly, Winterhof [1] studied the k-error linear complexity (over \({\mathbb {F}}_N\)) by viewing the N-periodic \((s_u)\) as a sequence over \({\mathbb {F}}_N\).
In particular, for certain applications to coding theory, some binary sequences are discussed over different finite fields (not in \({\mathbb {F}}_2\)) [7, 8]. Partially motivated by the study, Wang et al considered the N-periodic Legendre sequence \((s_u)\) in \({\mathbb {F}}_p\), where p is an odd prime (or a prime-power) with \(\gcd (p,N)=1\), and investigated the linear complexity and minimal polynomials over \({\mathbb {F}}_p\) in [11, 21, 22]. Certain work had actually been done by He in [13]. In this work, we will continue this project to investigate the trace representation of N-periodic Legendre sequence \((s_u)\) in \({\mathbb {F}}_p\) (not in \({\mathbb {F}}_2\)). We should remark that, the trace representation of \((s_u)\) of Mersenne prime period and of any prime period have been described via trace functions from \({\mathbb {F}}_{2^{n}}\) to \({\mathbb {F}}_2\), where n is the order of 2 modulo N, by No et al in [19] and by Kim et al in [15], sequentially. Some special cases have been studied in [20] recently.
We will compute the Mattson–Solomon polynomial (see definition below) of \((s_u)\) and present the trace representation by using trace functions over \({\mathbb {F}}_p\). For any N-periodic p-ary sequence \((t_u)\), there always exists a polynomial G(X) defined over finite fields of characteristic p such that
where \(\beta \) is an Nth root of unity in an extension field of \({\mathbb {F}}_p\). G(X) is unique if its degree is smaller than N, see [16]. Such G(X) is called the Mattson–Solomon polynomial of \((t_u)\) in coding theory [17]. Dai et al called G(X) as a defining polynomial and \((G(X),\beta )\) as the defining pair of \((t_u)\) in [5], where they discussed trace representation and linear complexity of certain binary sequences.
Throughout the work, we always let p be an odd prime and co-prime to N, the period of Legendre sequences.
2 Mattson–Solomon polynomials
Define polynomials
We need the following technical lemma.
Lemma 1
Let \(\beta \) be a primitive Nth root of unity in an extension field of \({\mathbb {F}}_p\). For any fixed pair of integers i, j with \(0\le i,j<2\), we have
Here and hereafter, the subscript of d is performed modular 2.
Proof
We calculate
Let \(\mathrm {ord}(\gamma _w)\) denote the order of \(\gamma _w\). We note that \(\mathrm {ord}(\gamma _w)|N\) since \(\beta \) is a primitive Nth root of unity. If \(\mathrm {ord}(\gamma _w)= N\), then we have
If \(\mathrm {ord}(\gamma _w)= 1\), then we have
Now we need to determine the number of \(w\in D_0\) with \(\mathrm {ord}(\gamma _w)=1\) and the number of \(w\in D_0\) with \(\mathrm {ord}(\gamma _w)=N\).
We have \(\mathrm {ord}(\gamma _w)= 1\) if and only if \(g^{i-j}+w \equiv 0 \pmod {N}\), which is equivalent to \(w \equiv g^{(N-1)/2+i-j}\pmod {N}\). This implies that \(2|((N-1)/2+i-j)\) since \(w\in D_0\). That is to say, there exists an \(w\in D_0\) such that \(g^{i-j}+w \equiv 0 \pmod {N}\), which holds if and only if \(2|((N-1)/2+i-j)\). In this case w is unique. We conclude that if \(2|((N-1)/2+i-j)\), then there are \((N-1)/2-1\) elements \(w\in D_0\) such that \(\mathrm {ord}(\gamma _w)= N\) and one \(w\in D_0\) such that \(\mathrm {ord}(\gamma _w)= 1\), while if \(2\not \mid (N-1)/2+i-j)\), all \(w\in D_0\) satisfy \(\mathrm {ord}(\gamma _w)= N\).
Putting everything together, we derive
This completes the proof. \(\square \)
Theorem 1
Let \(\beta \) be a primitive Nth root of unity in an extension field of \({\mathbb {F}}_p\). Then the Mattson–Solomon polynomial of \((s_u)\) defined in Eq. (1) or Eq. (2) is
if \(N\equiv 1 \pmod 4\), and otherwise
Proof
We get from Lemma 1 that
and
Note that \(d_i(\beta ^u)=d_{i+j}(\beta )\) if \(u\in D_j\), where \(i,j\in \{0,1\}\) and the subscript of d is performed modulo 2. Now, we discuss the Mattson–Solomon polynomial of \((s_u)\).
Case 1 \(N\equiv 1 \pmod 4\).
For \(u\in D_0\), we have
For \(u\in D_1\), we have
For \(u=0\), we note that
and
Then, we get
Putting everything together, we derive that
is the Mattson–Solomon polynomial of \((s_u)\) when \(N\equiv 1 \pmod 4\).
Case 2 \(N\equiv -1 \pmod 4\).
It can be verified in a similar way. \(\square \)
Now we further consider the values of \(d_0(\beta )\) and \(d_1(\beta )\) in Theorem 1.
Lemma 2
Let \(\beta \) be a primitive Nth root of unity in an extension field of \({\mathbb {F}}_p\) and p a quadratic residue class modulo N (i.e., \(p\in D_0\)). If N satisfies one of the following two conditions
-
(1)
\(N\equiv 1 \pmod 4\) and \(N\equiv 1 \pmod {p}\),
-
(2)
\(N\equiv -1 \pmod 4\) and \(N\equiv -1 \pmod {p}\),
then we have
and otherwise we have
which means that both \(d_0(\beta )\) and \(d_1(\beta )\) are non-zero.
Proof
Firstly, we have \(d_{0}(\beta )=d_{0}(\beta ^p)=(d_{0}(\beta ))^p\) since \(p \in D_0\). That is to say \(d_{0}(\beta )\in {\mathbb {F}}_p\). Similarly, we have \(d_{1}(\beta )\in {\mathbb {F}}_p\).
For \(N\equiv 1 \pmod 4\), we see that in the proof of Theorem 1
if and only if \(N\equiv 1 \pmod p\). So together with \(d_0(\beta )+d_1(\beta )=-1\), we get for \(N\equiv 1 \pmod p\)
which derives that either \(d_0(\beta )\) or \(d_1(\beta )\) is zero. Then, it is easy to get that
For \(N\equiv -1 \pmod 4\), we get similarly \(2d_0(\beta )d_1(\beta )=\frac{N+1}{2}=0\) if and only if \(N\equiv -1 \pmod p\) and then the result is derived.
The proof above also tells us that
for other N. \(\square \)
Lemma 3
Let \(\beta \) be a primitive Nth root of unity in an extension field of \({\mathbb {F}}_p\) and p a quadratic non-residue class modulo N (i.e., \(p\in D_1\)). Then both \(d_0(\beta )\) and \(d_1(\beta )\) are non-zero.
Proof
Since \(p \in D_1\), we have for \(i=0,1\)
which indicates both \(d_0(\beta )\) and \(d_1(\beta )\) are non-zero. \(\square \)
From Theorem 1 and Lemmas 2 and 3, we immediately get the following results.
Theorem 2
Let \(\beta \) be a primitive Nth root of unity in an extension field of \({\mathbb {F}}_p\), p a quadratic residue class modulo N (i.e., \(p\in D_0\)) and \((s_u)\) defined in Eq. (1) or Eq. (2).
-
(1)
For N satisfying \(N\equiv 1 \pmod 4\) and \(N\equiv 1 \pmod {p}\), if we suppose \(d_0(\beta )=0\) (of course we can also suppose \(d_1(\beta )=0\)), then the Mattson–Solomon polynomial of \((s_u)\) is
$$\begin{aligned} G(X)= -N^{-1}d_{1}(X). \end{aligned}$$ -
(2)
For N satisfying \(N\equiv -1 \pmod 4\) and \(N\equiv -1 \pmod {p}\), if we suppose \(d_0(\beta )=0\) (of course we can also suppose \(d_1(\beta )=0\)), then the Mattson–Solomon polynomial of \((s_u)\) is
$$\begin{aligned} G(X)= -N^{-1}d_{1}(X)+N^{-1}. \end{aligned}$$ -
(3)
For other N, the Mattson–Solomon polynomial of \((s_u)\) is
$$\begin{aligned} G(X)= N^{-1}\Big ( \rho d_1(X)-(1+\rho )d_{0}(X) +\frac{N-1}{2}\Big ). \end{aligned}$$where \(\rho =d_0(\beta )\) and \(\rho (1+\rho )\ne 0\).
Theorem 3
Let \(\beta \) be a primitive Nth root of unity in an extension field of \({\mathbb {F}}_p\) and p a quadratic non-residue class modulo N (i.e., \(p\in D_1\)). Then the Mattson–Solomon polynomial of \((s_u)\) defined in Eq. (1) or Eq. (2) is
where \(\rho =d_0(\beta )\) and \(\rho (1+\rho )\ne 0\).
3 Trace representation
In this section, we describe the trace representation of \((s_u)\). For n|m, the trace function from finite field \({\mathbb {F}}_{p^m}\) to \({\mathbb {F}}_{p^n}\) is defined as
The trace functions play an important role in sequences design [12].
Theorem 4
Let \(\beta \) be a primitive Nth root of unity in an extension field of \({\mathbb {F}}_p\) , p a quadratic residue class modulo N (i.e., \(p\in D_0\)) and \((s_u)\) defined in Eq. (1) or Eq. (2). Let \(\ell \) be the order of p modulo N.
-
(1)
For N satisfying \(N\equiv 1 \pmod 4\) and \(N\equiv 1 \pmod {p}\), if we suppose \(d_0(\beta )=0\), then the trace representation of \((s_u)\) is
$$\begin{aligned} s_u= -N^{-1}\sum \limits _{j=0}^{\frac{N-1}{2\ell }-1}\mathrm {Tr}_1^{\ell }\left( \beta ^{g^{2j+1}}\right) . \end{aligned}$$ -
(2)
For N satisfying \(N\equiv -1 \pmod 4\) and \(N\equiv -1 \pmod {p}\), if we suppose \(d_0(\beta )=0\), then the trace representation of \((s_u)\) is
$$\begin{aligned} s_u= -N^{-1}\sum \limits _{j=0}^{\frac{N-1}{2\ell }-1}\mathrm {Tr}_1^{\ell }\left( \beta ^{g^{2j+1}}\right) +N^{-1}. \end{aligned}$$ -
(3)
For other N, the trace representation of \((s_u)\) is
$$\begin{aligned} s_u=N^{-1}\left( \rho \sum \limits _{j=0}^{\frac{N-1}{2\ell }-1}\mathrm {Tr}_1^{\ell }\left( \beta ^{g^{2j+1}}\right) -(1+\rho )\sum \limits _{j=0}^{\frac{N-1}{2\ell }-1}\mathrm {Tr}_{1}^{\ell }\left( \beta ^{ug^{2j}}\right) +\frac{N-1}{2}\right) . \end{aligned}$$where \(\rho =d_0(\beta )\) and \(\rho (1+\rho )\ne 0\).
Proof
To get the trace presentation of s(u), we only need to describe \(d_0(X)\) and \(d_1(X)\) in Theorem 2 using trace functions.
Let U be set generated by p modulo N, i.e.,
Since \(p\in D_0\), we see that U is a subgroup of \(D_0\) (under the multiplication). Then \(D_0, D_1\) can be written as the union
Write polynomial
Using the fact that
we derive
and
Then, replacing \(d_{0}(X)\) and \(d_{1}(X)\) in Theorem 2 and noting that \(s_u=G(\beta ^u)\), we finish the proof. \(\square \)
Theorem 5
Let \(\beta \) be a primitive Nth root of unity in an extension field of \({\mathbb {F}}_p\) and p a quadratic non-residue class modulo N (i.e., \(p\in D_1\)). Let \(\ell \) be the order of p modulo N. Then, the trace representation of \((s_u)\) defined in Eq. (1) or Eq. (2) is
where \(\rho =d_0(\beta )\) and \(\rho (1+\rho )\ne 0\).
Proof
The proof is similar to that of Theorem 4. From the condition \(p\in D_{1}\), we see that \(p^2\in D_{0}\) and the order of \(p^2\) modulo N is \(\frac{\ell }{2}\). We remark here that \(\ell \) is even. Indeed, if \(p\equiv g^{2k+1} \pmod {N}\) for some k, we get \(p^\ell \equiv g^{(2k+1)\ell }\equiv 1 \pmod {N}\), which indicates that \((N-1)|\ell (2k+1)\). Then \(\ell \) is even since \(N-1\) is even.
Now write
Then V is a subgroup of \(D_0\) and \(D_0, D_1\) can be represented as
Similar to the proof of Theorem 4, we have
where \(v(X)=\sum \limits _{u\in V}X^u\). Then we describe \(d_0(X)\) and \(d_1(X)\) as follows
and
Then, replacing \(d_{0}(X)\) and \(d_{1}(X)\) in Theorem 3 and noting that \(s_u=G(\beta ^u)\), we finish the proof. \(\square \)
4 Remarks and conclusions
In this work, we view N-periodic Legendre sequences in \({\mathbb {F}}_2\) as in \({\mathbb {F}}_p\) and considered their trace representation by calculating Mattson–Solomon polynomials. The results extended the early work of No et al and Kim et al on trace representation over \({\mathbb {F}}_2\).
The way in this work also can be used to consider the trace representation if we put N-periodic Legendre sequences in rings, for example in \({\mathbb {Z}}_4\), the residue class ring modulo 4.
We finally remark that, there is a relationship between Mattson–Solomon polynomials of prime periodic sequences and their linear complexity[12, Theorem 6.3]. The linear complexity\(LC(t_u)\) of an N-period sequence \((t_u)\) over \({\mathbb {F}}_p\) is the least order L of a linear recurrence relation over \({\mathbb {F}}_p\)
where \(c_1, c_2, \ldots , c_{L}\in {\mathbb {F}}_p\). By [2], \(LC(t_u)\) equals the number of nonzero coefficients of the Mattson–Solomon polynomial G(x) of degree \(<N\). So from Theorems 2 and 3, we immediately derive the linear complexity of N-periodic Legendre sequences studied in [13, 22].
References
Aly, H., Winterhof, A.: On the \(k\)-error linear complexity over \({\mathbb{F}}_p\) of Legendre and Sidel’nikov sequences. Des. Codes Cryptogr. 40(3), 369–374 (2006)
Blahut, R.E.: Transform techniques for error control codes. IBM J. Res. Dev. 23(3), 299–315 (1979)
Cusick, T.W., Ding, C., Renvall, A.: Stream Ciphers and Number Theory. Elsevier, Amsterdam (1998)
Damgård, I.B.: On the randomness of Legendre and Jacobi sequences. In: Advances in Cryptology CRYPTO 88, LNCS 403, pp. 163–172. Springer, New York (1988)
Dai, Z., Gong, G., Song, H., Ye, D.: Trace representation and linear complexity of binary \(e\)-th power residue sequences of period \(p\). IEEE Trans. Inf. Theory 57(3), 1530–1547 (2011)
Ding, C.: Pattern distributions of Legendre sequences. IEEE Trans. Inf. Theory 44(4), 1693–1698 (1998)
Ding, C.: Cyclic codes from the two-prime sequences. IEEE Trans. Inf. Theory 58(6), 3881–3891 (2012)
Ding, C.: Cyclic codes from cyclotomic sequences of order four. Finite Fields Appl. 23, 8–34 (2013)
Ding, C., Helleseth, T., Shan, W.: On the linear complexity of Legendre sequences. IEEE Trans. Inf. Theory 44(3), 1276–1278 (1998)
Edemskiy, V.: On the linear complexity of interleaved binary sequences of period 4p obtained from Hall sequences or Legendre and Hall sequences. Electron. Lett. 50(8), 604–605 (2014)
Edemskiy, V., Sokolovskiy, N.: On the linear complexity of Halls sextic residue sequences over GF(q). J. Appl. Math. Comput. 54(1–2), 297–305 (2017)
Golomb, S.W., Gong, G.: Signal Design for Good Correlation. Cambridge University Press, Cambridge (2005)
He, X.: On the \(GF(p)\) linear complexity of Legendre sequence. J. Commun. 29(3), 16–22 (2008). (in Chinese)
Hofer, R., Winterhof, A.: On the arithmetic autocorrelation of the Legendre sequence. Adv. Math. Commun. 11(1), 237–244 (2017)
Kim, J.H., Song, H.Y.: Trace representation of Legendre sequences. Des. Codes Cryptogr. 24(3), 343–348 (2001)
Massey, J.L.: Codes and ciphers: Fourier and Blahut. Kluwer International Series in Engineering and Computer Science, 105–120 (1998)
Mattson, H.F., Solomon, G.: A new treatment of Bose–Chaudhuri codes. J. Soc. Ind. Appl. Math. 9(4), 654–699 (1961)
Mauduit, C., Sárközy, A.: On finite pseudorandom binary sequences I: measures of pseudorandomness, the Legendre symbol. Acta Arith. 82, 365–377 (1997)
No, J.S., Lee, H.K., Chung, H., Song, H.Y., Yang, K.: Trace representation of Legendre sequences of Mersenne prime period. IEEE Trans. Inf. Theory 42(6), 2254–2255 (1996)
Qi, M., Xiong, S., Yuan, J., Zhong, L.: A simpler trace representation of Legendre sequences. IEICE Trans. 98–A(4), 1026–1031 (2015)
Wang, Q.: Linear complexity of binary cyclotomic sequences of order 6. J. Appl. Math. Comput. 49(1), 119–125 (2015)
Wang, Q., Lin, D., Guang, X.: On the linear complexity of Legendre sequences over \(F_q\). IEICE Trans. Fundam. 97(7), 1627–1630 (2014)
Xiong, H., Qu, L., Li, C.: A new method to compute the 2-adic complexity of binary sequences. IEEE Trans. Inf. Theory 60(4), 2399–2406 (2014)
Acknowledgements
The work was partially supported by the National Natural Science Foundation of China under Grant Nos. 61772292, 61373140, the National Key R&D Program of China No. 2017YFB0802000, the Natural Science Foundation of Fujian Province under Grant No. 2018J01425 and 2016 Development Program for Distinguished Young Scientific Research Talent of Universities in Fujian Province.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Wu, C., Xu, C. Trace representation of Legendre sequences over non-binary fields. J. Appl. Math. Comput. 59, 741–751 (2019). https://doi.org/10.1007/s12190-018-1200-1
Received:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s12190-018-1200-1