Next Article in Journal
A New Machine Learning Algorithm Based on Optimization Method for Regression and Classification Problems
Next Article in Special Issue
An Adaptive Embedding Strength Watermarking Algorithm Based on Shearlets’ Capture Directional Features
Previous Article in Journal
Kuelbs–Steadman Spaces for Banach Space-Valued Measures
Previous Article in Special Issue
A Group Law on the Projective Plane with Applications in Public Key Cryptography
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Representations of Generalized Self-Shrunken Sequences

by
Sara D. Cardell
1,
Joan-Josep Climent
2,
Amparo Fúster-Sabater
3,* and
Verónica Requena
2
1
Instituto de Matemática, Estatística e Computação Científica, UNICAMP, 13083-859 Campinas-SP, Brazil
2
Departament de Matemàtiques, Universitat d’Alacant, E-03690 Alacant, Spain
3
Instituto de Tecnologías Físicas y de la Información, C.S.I.C., E-28006 Madrid, Spain
*
Author to whom correspondence should be addressed.
Mathematics 2020, 8(6), 1006; https://doi.org/10.3390/math8061006
Submission received: 26 May 2020 / Revised: 12 June 2020 / Accepted: 15 June 2020 / Published: 19 June 2020
(This article belongs to the Special Issue Mathematics Cryptography and Information Security)

Abstract

:
Output sequences of the cryptographic pseudo-random number generator, known as the generalized self-shrinking generator, are obtained self-decimating Pseudo-Noise (PN)-sequences with shifted versions of themselves. In this paper, we present three different representations of this family of sequences. Two of them, the p and G-representations, are based on the parameters p and G corresponding to shifts and binary vectors, respectively, used to compute the shifted versions of the original PN-sequence. In addition, such sequences can be also computed as the binary sum of diagonals of the Sierpinski’s triangle. This is called the B-representation. Characteristics and generalities of the three representations are analyzed in detail. Under such representations, we determine some properties of these cryptographic sequences. Furthermore, these sequences form a family that has a group structure with the bit-wise XOR operation.

1. Introduction

Most of the devices that form part of the Internet-of-Things (IoT) require cryptographic security features to prevent users from data losses and the risks related to an improper use of passwords. Putting into effect cryptographic security is complicated. Most of the security systems are based on true random numbers, but their generation is really a difficult task [1,2]. Many popular random “noise” algorithms, for example, algorithms that are part of IoT devices, end up to be imperfect, showing glitches that make them predictable and vulnerable. Some weaknesses are never (publicly) found out, creating a false sense of security. The devices in which flaws are detected are those with the most flagrant errors and those most popular, for example, algorithms A5 in GSM communications cryptanalyzed in [3,4], the generator RC4 for encrypting Internet traffic cryptanalyzed in [5] or the J3Gen generator for low-cost passive RFID tags cryptanalyzed in [6]. To sum up, it is hard to build a true random number generator that can provide a strong cryptographic foundation for system security, especially for IoT devices (see [7,8]).
Pseudo-Random Number Generators (PRNGs) are reproducible and deterministic algorithms [9,10] used to generate random number sequences for cryptographic applications, such as key and nonces generation, digital signatures, and IoT security. These applications require various statistical properties, such as low autocorrelation, large period and linear complexity, rich dimensional distribution of the output sequence, and uniformity of distribution for large quantities of generated numbers (see ([11], Chapter 2) for more details).
Binary sequences produced by maximal-length Linear Feedback Shift Registers (LFSRs), called Pseudo-Noise (PN)-sequences [12], have been widely used in many diverse applications such as digital broadcasting, mobile wireless communications, e-commerce or cryptography (stream ciphers) [13,14]. In order to ensure practical cryptographic stability, it is necessary to destroy the linearity inherent to PN-sequences via different non-linear procedures.
LFSRs play an important role in the design of cryptographic PRNGs [15,16]. Among the most popular families of cryptographic sequence generators based on PN-sequences we can enumerate: non-linear filters with only one LFSR, combination generators that involve several LFSRs, clock-controlled registers where one LFSR controls the clock of the others or irregular decimation-based generators [11]. We focus our attention on this latter family.
Generally speaking, the regular decimation [17] of a sequence { a i } i 0 by distance d is a new sequence obtained by taking every d-th term of { a i } i 0 , that is, { a d · i } i 0 . Nevertheless, it is the irregular decimation of PN-sequences [18], which can be considered as a powerful PRNG, producing sequences with good cryptographic properties, such as long periods, good distribution of zeros and ones along the sequence, large linear complexity, and two-valued autocorrelation properties.
In the literature, there are three well-known irregularly decimated generators: the shrinking generator [19], made up of two LFSRs with different lengths, the self-shrinking generator [20], based on the self-decimation of one single PN-sequence, and the generalized self-shrinking generator (GSSG) [21], which produces a family of sequences that includes the sequence produced by the self-shrinking generator [22]. Moreover, the modified self-shrinking generator [23] and the t-modified self-shrinking generator [24] are also members of such a family. These generators are fast, easy to implement and they generate good cryptographic sequences. Therefore, they seem adequate for lightweight cryptography and, in general, low-cost applications. In [25], the authors studied the randomness of the family of sequences generated by the GSSG by means of several complete and powerful batteries of statistical tests and graphical tools. In fact, they provided a useful vision of the behavior of such sequences and proved their suitability for cryptographic applications. In [24], the relationship among the generalized self-shrinking generator and the t-modified self-shrinking generator is deeply analyzed. Furthermore, in [26], the authors studied the relationship between that generator and the modified self-shrinking generator. In [27], other authors presented an extension of the self-shrinking generator to the Galois field of p n elements with p a prime integer, that is, the p-ary Generalized Self-Shrinking Generator (p-GSSG). Furthermore, they proved that the sequences generated by this new generator have large periods and good statistical properties.
At any rate, there exist other ways to built irregularly decimated generators, for example, irregularly decimated generators based on Feedback with Carry Shift Registers (FCSRs) instead of the traditional LFSRs [28,29]. These variants of the previous generators unify in a unique structure the non-linearity inherent to the FCSRs with the irregular decimation technique. An FCSR is the arithmetic or with carry analog of an LFSR. The main difference is the fact that the elementary additions are not modulo 2 additions but with the propagation of carries. FCSRs have been used in the design of stream ciphers [30], generating pseudo-random numbers [31], and can be efficiently implemented in parallel architectures [32].
In modern algebra, group theory is the study of groups, which are sets of elements with an operation that satisfies certain axioms. The basic structure of groups can be found in many mathematical phenomena such as symmetry and certain types of transformations. Group theory has applications in robotics, computer vision/graphics and medical image analysis, physics, chemistry, computer science, and even puzzles like Rubik’s cube can be represented using group theory [33,34,35,36,37]. As we show in this paper, group theory also has applications in cryptography, since the set of output sequences of the generalized self-shrinking generator has the structure of an additive group and some of the properties of this family of sequences can be deduced as a consequence of this fact.
In this work, we study in detail three different representations of the sequences produced by the GSSG: the G-representation (introduced in [21]), the new p-representation and the B-representation (introduced in [38]). As far as we know, there are no other known representations for this kind of generators in the literature. In addition, we introduce a new way to compute the B-representation. Such a representation relates the output sequences of our generator with shifted versions of the diagonals of the binary Sierpinski’s triangle, named binomial sequences. In terms of this representation, the structural properties of some binary sequences are easily analyzed. In brief, we give a binomial expression of these sequences, providing a relation among binomial coefficients, binary sequences and group theory.

2. Fundamentals and Basic Notation

In this section, we introduce some of the main concepts related to our work: the generalized self-shrinking generator and the binomial sequences.

2.1. PN-Sequences and GSSG

Traditionally, LFSRs implement linear recurring sequences [12]. LFSRs are electronic devices in which the information units are elements of binary field F 2 . They are made up of r interconnected memory cells (stages) that shift their contents to their next stages and a linear feedback to the empty stage. The register is shown in Figure 1.
Generates the linear recurring sequence { u n } n 0 (or denoted by { u n } ) given by
u n + r = d r 1 u n + r 1 + d r 2 u n + r 2 + d r 3 u n + r 3 + + d 1 u n + 1 + d 0 u n , n 0 .
If the monic polynomial
p ( x ) = x r + d r 1 x r 1 + d r 2 x r 2 + d r 3 x r 3 + + d 1 x + d 0 F 2 [ x ]
is a primitive polynomial, then the LFSR is called a maximal-length LFSR [12] and generates a PN-sequence (Pseudo Noise sequence) with maximum period T = 2 r 1 with 2 r 1 ones and 2 r 1 1 zeros. This polynomial is known as the characteristic polynomial of the recurring sequence.
A common metric of the security of a sequence for its possible cryptographic application is the linear complexity [39,40,41], denoted by L C . Roughly speaking, the parameter L C determines the portion of sequence we need in order to recover the whole sequence. In fact, L C is the length of the shortest LFSR that generates such a sequence ([42], Chapter 5). Making use of the concept of recurrence, we can say that the L C of a sequence is the lowest order of its linear recurrence relationship. In cryptography, linear complexity clearly must take a large value, for example, half of the period: L C T / 2 . Nowadays, values of T in the range T 2 128 seem to be enough for cryptographic purposes (see specifications of the candidates in the call of NIST for lightweight cryptography primitives [43]).
Consider a PN-sequence { u i } i 0 obtained from a maximal-length LFSR with L stages, an L-dimensional binary vector G = [ g 0 , g 1 , g 2 , . . . , g L 1 ] F 2 L and let { v i } i 0 be the sequence defined as:
v i = g 0 u i + g 1 u i 1 + g 2 u i 2 + + g L 1 u i L + 1 for i 0 .
Next, we define a decimation rule to generate a new sequence { s j } j 0 as follows:
If u i = 1 , then s j = v i , If u i = 0 , then v i is discarded .
The sequence { s j } i 0 , denoted by S ( G ) , is called the generalized self-shrunken sequence, GSS-sequence or simply generalized sequence associated with G , see [21]; and the sequence generator is called the generalized self-shrinking generator (GSSG).
Notice that when G runs over F 2 L { 0 } we obtain all the shifted versions of { u i } i 0 (see Theorem 2). The set of sequences S = S ( G ) | G F 2 L is called the family of generalized sequences based on the PN-sequence { u i } i 0 . This family S with the addition modulo 2, that is, with the bit-wise XOR operation, is an additive group [21]. In particular, the neutral element is the sequence S ( [ 0 , 0 , , 0 ] ) = { 0 0 0 0 0 } and the opposite of any sequence S ( G ) is the sequence itself. Moreover, the period of every generalized sequence is a divisor of 2 L 1 (the number of ones in the PN-sequence) and every sequence of this family is balanced except for the sequence identically of 1 and the null sequence ([21], Theorem 1).
Example 1.
Consider the primitive polynomial p ( x ) = x 3 + x 2 + 1 and the PN-sequence { u i } i 0 = { 1 1 1 0 1 0 0 } generated by p ( x ) with initial state { 1 1 1 } . As illustration of the decimation rule given in (2) consider, for instance, G = [ 0 , 0 , 1 ] and the corresponding sequence { v i } i 0 = { 0 0 1 1 1 0 1 } . We apply the decimation rule as follows:Mathematics 08 01006 g003The corresponding generalized sequence is S ( [ 0 , 0 , 1 ] ) = { 0 0 1 1 } .
In Table 1, we can see the family of all generalized sequences generated by the PN-sequence { u i } i 0 . Notice that the { v i } i 0 sequences are shifted versions of the PN-sequence { u i } (which appears at the bottom of the table), a fact that we will prove later in Theorem 2. The bits in bold of each sequence { v i } i 0 are the bits of the corresponding generalized sequence.
Notice that, since the number of ones in a PN-sequence of period 2 L 1 is 2 L 1 (see [12]), the period of the generalized sequences is a divisor of 2 L 1 . We will see that there are always two sequences of period 1 (the identically 1 and 0 sequences), two sequences of period 2, { 0 1 0 1 0 1 0 1 } and { 1 0 1 0 1 0 1 0 1 } , and the remaining sequences have the maximum period 2 L 1 (although there is no mathematical proof for this last statement).
Relating to the linear complexity, in [39] Blackburn introduced an upper bound for the linear complexity of the self-shrinking generator. A generalization of this bound was introduced in [40] for the linear complexity of generalized sequences, that is, L C 2 L 1 ( L 2 ) . Furthermore, we know that for all generalized sequences, except for those with period 1 and 2, we have 2 L 2 L C (although there is no proof for this statement either).

2.2. Binomial Sequences

The binomial number n i represents the coefficient corresponding to x i in the expansion of the polynomial ( 1 + x ) n . For every integer n 0 , we know that n 0 = 1 while n i = 0 for i > n . Now, binomial sequences are introduced as follows.
Definition 1.
Given a fixed integer k 0 , the sequence b n ( k ) n 0 given by
b n ( k ) = 0 , if n < k , n k mod 2 , if n k ,
is named the k -th binomial sequence.
In the sequel, the sequence b n ( k ) n 0 will be simply denoted by n k . Table 2 shows the first eight binomial coefficients as well as the first eight binomial sequences with their corresponding periods and linear complexities. To check the form of the first 32 binomial sequences, see reference [38]. Moreover, recall that binomial sequences are just shifted versions of the successive diagonals of the Sierpinski’s triangle depicted in Figure 2.
Theorem 1
([38], Proposition 3, Theorem 13). The binomial sequence n 2 r + l with 0 l < 2 r and r being a positive integer has period of value T = 2 r + 1 and linear complexity of value L C = 2 r + l + 1 .
Check [38] for more properties of binomial sequences.

3. Representation of Generalized Sequences

In this section, we present three different representations of the generalized self-shrunken sequences. From these representations we can obtain important information about the sequences. For instance, the binomial representation or B-representation of the generalized sequences allows us to examine the cryptographic parameters of these sequences and obtain their linear complexity; the p-representation and G-representation provide information about the shifted PN-sequences used in the decimation and allow us to define a partition of the family of generalized sequences.
It is worth saying that there exist certain advantages and disadvantages among these representations. On the one hand, the B-representation is more general and can be used for any binary sequence with a period of a power of two. On the other hand, the p-representation and the G-representation are specific representations for generalized sequences and, therefore, do not exist for other generators. However, both representations are related, being possible to get one from the other. In this section, we present some relations between the different representations.

3.1. The G-Representation of a Generalized Self-Shrunken Sequence

It is well known [12] that a PN-sequence { u i } i 0 generated by an LFSR with primitive polynomial p ( x ) of degree L can be represented by the trace map as follows
u i = Tr ( A α i ) = A α i + A 2 α 2 i + A 4 α 4 i + + A 2 L 1 α 2 L 1 i , i 0 ,
where A F 2 L with A 0 and α is a root of p ( x ) , that is, a primitive element of F 2 L .
From now on, we consider { u i } i 0 a PN-sequence obtained from a maximal-length LFSR with characteristic polynomial p ( x ) of degree L.
Next theorem proves that the sequence { v i } i 0 given in (1) is a shifted version of the PN-sequence { u i } i 0 .
Theorem 2.
Assume that { u i } i 0 is a PN-sequence obtained from a maximal-length LFSR with characteristic polynomial p ( x ) of degree L. If G = [ g 0 , g 1 , , g L 1 ] F 2 L is a nonzero vector, then the sequence { v i } i 0 obtained from Expression (1) is a shifted version of { u i } i 0 . In fact, { v i } i 0 = u i L + 1 + τ ( G ) i 0 , where τ ( G ) 0 , 1 , , 2 L 2 such that
α τ ( G ) = g 0 α L 1 + g 1 α L 2 + + g L 2 α + g L 1 F 2 L
with α F 2 L being a root of p ( x ) .
Proof. 
From Expressions (1) and (3), it follows that
v i = g 0 A α i + A 2 α 2 i + A 4 α 4 i + + A 2 L 1 α 2 L 1 i a a + g 1 A α i 1 + A 2 α 2 ( i 1 ) + A 4 α 4 ( i 1 ) + + A 2 L 1 α 2 L 1 ( i 1 ) a a + a a + g L 2 A α i L + 2 + A 2 α 2 ( i L + 2 ) + A 4 α 4 ( i L + 2 ) + + A 2 L 1 α 2 L 1 ( i L + 2 ) a a + g L 1 A α i L + 1 + A 2 α 2 ( i L + 1 ) + A 4 α 4 ( i L + 1 ) + + A 2 L 1 α 2 L 1 ( i L + 1 ) = A α i L + 1 g 0 α L 1 + g 1 α i 2 + + g L 2 α + g L 1 a a + A 2 α i L + 1 g 0 α L 1 + g 1 α i 2 + + g L 2 α + g L 1 2 a a + A 4 α i L + 1 g 0 α L 1 + g 1 α i 2 + + g L 2 α + g L 1 4 a a + a a + A 2 L 1 α i L + 1 g 0 α L 1 + g 1 α i 2 + + g L 2 α + g L 1 2 L 1 = A α i L + 1 α τ ( G ) + A 2 α i L + 1 α τ ( G ) 2 + A 4 α i L + 1 α τ ( G ) 4 + + A 2 L 1 α i L + 1 α τ ( G ) 2 L 1 = A α i L + 1 + τ ( G ) + A 2 α i L + 1 + τ ( G ) 2 + A 4 α i L + 1 + τ ( G ) 4 + + A 2 L 1 α i L + 1 + τ ( G ) 2 L 1 = u i L + 1 + τ ( G ) .
Note that if in Expression (1) we consider G = [ 0 , 0 , 0 , , 0 ] , then { v i } i 0 is the null sequence.
From now on, we denote by G the decimal representation of the vector G = [ g 0 , g 1 , g 2 , . . . , g L 2 , g L 1 ] F 2 L , i.e.
G = g 0 · 2 L 1 + g 1 · 2 L 2 + + g L 2 · 2 + g L 1 .
Moreover, we will use indistinctly G and G . For example S ( G ) = S ( G ) and τ ( G ) = τ ( G ) .
Remark 1.
Since G = 3 is the decimal representation of the binary number [ 0 , 0 , 0 , , 0 , 1 , 1 ] , we have that
α τ ( 3 ) = α + 1 ,
that is, τ ( 3 ) = Z α ( 1 ) , where Z α ( 1 ) denotes the Zech logarithm of 1 with basis α.
Recall that the Zech logarithm of t with a basis of the primitive element α is such that α Z α ( t ) = α t + 1 . Check [44] for more properties of this discrete logarithm.
Example 2.
Consider the LFSR in which the characteristic polynomial is p ( x ) = x 5 + x 2 + 1 . For the initial state { 1 1 1 1 1 } , we obtain the PN-sequence
{ 1 1 1 1 1 0 0 0 1 1 0 1 1 1 0 1 0 1 0 0 0 0 1 0 0 1 0 1 1 0 0 }
which generates the family of generalized sequences shown in Table 3. The bits in bold in each sequence { v i } i 0 correspond to the positions of the ones of the PN-sequence { u i } i 0 , which appears at the bottom of the table. Furthermore, these bits are the digits of the corresponding S ( G ) sequence. Thus, in Table 3, the sequence S ( G ) = S ( [ 0 , 0 , 0 , 0 , 1 ] ) corresponds to S ( 1 ) = { 1 1 0 0 1 1 0 0 1 1 1 1 0 0 0 0 } .
Next, we consider some properties of this representation (G-representation) of the generalized sequences.
Theorem 3.
If G = 2 L 1 then S ( G ) is the identically 1 sequence.
Proof. 
Since G = 2 L 1 corresponds to the vector G = [ 1 , 0 , 0 , , 0 ] , from Expression (1) we have that v i = u i , for i 0 , and according to the decimation rule defined in (2), the output sequence { s j } j 0 is the identically 1 sequence. □
Theorem 4.
For G = 0 , 1 , , 2 L 1 1 , the sequences S ( G ) and S G + 2 L 1 are complementary sequences, in the sense that S ( G ) + S G + 2 L 1 is the identically 1 sequence.
Proof. 
Since the L-dimensional vector representations of G and 2 L 1 + G are
G = [ 0 , g 1 , g 2 , , g L 1 ] and G = [ 1 , g 1 , g 2 , , g L 1 ] ,
v i i 0 and v i i 0 , defined by G and G respectively, satisfy v i = u i + v i , for i 0 . Now, from the decimation rule defined in (2), in order to obtain the generalized sequences S ( G ) and S G + 2 L 1 we only consider the case when u i = 1 . Therefore, s j = 1 + s j , which means that the sequences S ( G ) and S G + 2 L 1 are complementary. □
One can easily verify that the first 16 generalized sequences in Table 3 are the complementary sequences of the last 16 sequences. This means that if we generate the first 2 L 1 generalized sequences using the above method, then the remaining sequences are just the complementary sequences of the previous ones. In this way, the computation of generalized sequences is half-reduced.

3.2. The B-Representation of a Generalized Self-Shrunken Sequence

Let E be the shifting operator that acts on the terms of a sequence { u n } n 0 , that is:
E k u n = u n + k , for all integer k 0 .
Let r be a positive integer. A sequence { s j } j 0 , of which the period is T = 2 r is, in turn, a particular solution of equation:
( E 2 r + 1 ) z n = ( E + 1 ) 2 r z n = 0 ,
where its characteristic polynomial is ( x + 1 ) 2 r . According to [38,45], the solutions of Equation (4) can be written as:
z n = n 0 c 0 + n 1 c 1 + + n T 1 c T 1 for n 0 ,
where the coefficients c i F 2 , 1 is the unique root of the polynomial ( x + 1 ) 2 r with multiplicity 2 r and n i is a binomial coefficient reduced modulo 2. Thus, { z n } n 0 is the bit-wise XOR of T binary sequences n i weighted by T binary coefficients c i . Hence, all the solutions of the difference equation written in (4) are sums of binomial sequences. In particular, every solution { z n } n 0 can be written as:
{ z n } = i = 0 ν c i n i ,
with c i F 2 , i = 0 , 1 , , ν , where ν is the greatest value i for which c ν 0 while c i = 0 for ν < i < T . Expression (5) is the binomial representation (or B-representation) of the sequence { z n } n 0 .
In terms of this representation, the parameters of the sequence { z n } n 0 can be easily analyzed. Indeed, the period of { z n } n 0 is the period of the binomial sequence n ν and the linear complexity of { z n } n 0 is the linear complexity of the binomial sequence n ν , that is L C = ν + 1 (see Theorem 1).
As a consequence we can recall the following result.
Theorem 5
([38], Theorem 2). Given the binary sequence { z n } n 0 with period T = 2 r , where r is a positive integer, and linear complexity L C , such sequence can be written as a linear combination of binomial sequences, that is, i = 0 L C 1 c i n i , c i F 2 .
We will use indistinctly the notation i = 0 L C 1 c i n i or i = 0 L C 1 c i n i to denote the B-representation of the sequence { z n } n 0 . Notice that, in the B-representation, the term with the highest index is n L C 1 . This means that the last term provides the L C of the sequence. We denote by { 0 } the B-representation of the null sequence.
Example 3.
Consider the sequence { z n } = { 1 1 1 0 0 1 0 0 } with period T = 8 . This sequence can be also written as a linear combination of the sequences n 0 + n 3 + n 4 + n 5 :
n 5 : { 0 0 0 0 0 1 0 1 } + n 4 : { 0 0 0 0 1 1 1 1 } n 3 : { 0 0 0 1 0 0 0 1 } n 0 : { 1 1 1 1 1 1 1 1 } { z n } : { 1 1 1 0 0 1 0 0 }
Since the binomial sequence n ν (the term with highest index) is n 5 , then the linear complexity of { z n } will be L C = 6 . In the same way, its period T = 8 coincides with the period of the sequence n 5 .
In [38], the authors proposed an algorithm to compute the B-representation of any sequence with a period of the power of two. Here, our aim is to propose another method to compute the B-representation of a generalized sequence. Next, we give a method to obtain this representation from any binary sequence of period a power of two. For this, we need to define a binary matrix called the binomial matrix, which is similar to the construction of a binary Hadamard matrix. Consider H 0 = [ 1 ] the binomial matrix for t = 0 , that is, a matrix of size 2 0 × 2 0 . We construct the binomial matrix for t = 1 as follows
H 1 = H 0 H 0 0 H 0 = 1 1 0 1 ,
which has size 2 1 × 2 1 . In general, we obtain the binomial matrix for t as
H t = H t 1 H t 1 0 t 1 H t 1
where H t 1 is the binomial matrix of size 2 t 1 × 2 t 1 and 0 t 1 is the null matrix of the same size.
Let { s n } n 0 be a binary sequence of period T = 2 t . Given the binomial matrix H t of size 2 t × 2 t , we construct the binary vector
B = [ s 0 , s 1 , , s 2 t 1 ] · H t mod 2 .
The support of the vector B, denoted by supp ( B ) , is the set of indices of the nonzero entries of B, considering the first position as the 0 position. Then, we define the B-representation of { s n } n 0 , denoted by B ( { s n } ) , as the sequence given by the addition of the binomial sequences n i , for i supp ( B ) , that is
B [ s 0 , s 1 , , s 2 t 1 ] = i supp ( B ) n i .
Notice that, as a consequence of Expression (6), we can only compute the B-representation of binary sequences of period T = 2 t . In particular, we can always obtain the B-representation of any GSS-sequence since the family of generalized sequences consists of 2 L sequences with periods power of two (see [21]).
The following example helps us to understand this construction.
Example 4.
Consider the binary sequence { s n } = { 1 1 1 0 0 1 0 0 } given in Example 3 in which the B-representation is n 0 + n 3 + n 4 + n 5 . We check it using the method defined previously. The period of the sequence is 2 3 , so we must construct the binomial matrix for t = 3 , that is
H 3 = 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 .
From Expression (6), we have that
B = [ s 0 , s 1 , , s 7 ] · H 3 = 1 0 0 1 1 1 0 0
and, therefore, supp ( B ) = { 0 , 3 , 4 , 5 } . So, from Expression (7), we have that B ( [ s 0 , s 1 , , s 7 ] ) = n 0 + n 3 + n 4 + n 5 , as we expected.
Recall that the columns of the binomial matrix (read from right to left) correspond to the successive diagonals of the Sierpinski’s triangle in Figure 2. Thus, the binary vector B in Expression (6) is just the product of [ s 0 , s 1 , , s 2 t 1 ] by the diagonals of such a triangle.
We know that the generalized sequences have periods of the form 2 r , with r < L . Therefore, we can express the generalized sequences as a finite sum of binomial sequences.
The following result is an immediate consequence of Theorems 4 and 3.
Theorem 6.
For G = 0 , 1 , , 2 L 1 1 , the B-representations of S ( G ) and S G + 2 L 1 are equal except for the term n 0 . Furthermore, the B-representation of S 2 L 1 is exactly n 0 .
This means that if we have the B-representations of the first 2 L 1 generalized sequences, then the B-representations of the remaining 2 L 1 sequences are the same ones except for the term n 0 . In this way, the computation of generalized sequences is half-reduced.
Example 5.
Consider again the generalized sequences obtained in Example 2. In Table 4, we can find the B-representation of each one of these generalized sequences. As we saw in Section 3.1, the last 16 generalized sequences in Table 3 are the complementary sequences of the first 16 sequences and then, from Theorem 6, the B-representation of them is the same except for the term n 0 . Furthermore, the B-representation of S ( 16 ) is n 0 , as expected.
Some other properties of the family of generalized sequences can be deduced from the B-representation. We study these properties in detail in Section 4.

3.3. The p-Representation of a Generalized Self-Shrunken Sequence

In this subsection, we define a new representation of generalized sequences which gives us information of the shifted sequences employed in the decimation rule defined in (2).
From Theorem 2, we have that the sequence { v i } i 0 is a shifted version of the PN-sequence { u i } i 0 . Therefore, instead of considering the vector G in Expression (1) to construct { v i } i 0 , we can simply consider the successive shifted versions of { u i } i 0 and apply in each case the decimation rule given in (2).
Let us consider the p-shifted version of the PN-sequence { u i } i 0 with 0 p < 2 L 1 . Applying the decimation rule given in (2), we construct the corresponding generalized sequence, which we denote by S { p } . This new representation of a generalized sequence is called p-representation.
One of the consequences of the group structure of S is that the sum of two generalized sequences is another generalized sequence. The following theorem allows us to obtain the p-representation of the resulting generalized sequence from the p-representations of two generalized sequences given.
Theorem 7.
Consider that { u i } i 0 is the PN-sequence of an LFSR with primitive characteristic polynomial p ( x ) of degree L and α F 2 L is a root of p ( x ) . Then, the sum of two generalized sequences obtained with shifts d 1 and d 2 is another generalized sequence with shift d 1 + Z α ( d 2 d 1 ) , i.e,
S { d 1 } + S { d 2 } = S { d 1 + Z α ( d 2 d 1 ) } ,
where Z α ( · ) is as before the Zech logarithm with basis α.
Proof. 
Assume that S { d 1 } = { s j } and S { d 2 } = { s ˜ j } are two generalized sequences obtained from the PN-sequence { u i } .
According to the decimation rule given in (2), if supp { u i } = i 0 , i 1 , , i 2 L 1 1 , then we have that s j = u d 1 + i j and s ˜ j = u d 2 + i j .
We have seen in Expression (3) that every element of { u i } can be expressed as
u i = A α i + A 2 α 2 i + A 4 α 4 i + + A 2 L 1 α 2 L 1 i ,
where A F 2 L with A 0 . Therefore, we have that:
u d 1 + i j = A α d 1 + i j + A 2 α 2 ( d 1 + i j ) + A 4 α 4 ( d 1 + i j ) + + A 2 L 1 α 2 L 1 ( d 1 + i j ) u d 2 + i j = A α d 2 + i j + A 2 α 2 ( d 2 + i j ) + A 4 α 4 ( d 2 + i j ) + + A 2 L 1 α 2 L 1 ( d 2 + i j ) .
Bit-wise XORing both sequences { s j } + { s ˜ j } = { u d 1 + i j } + { u d 2 + i j } = { u d 1 + i j + u d 2 + i j } we get:
u d 1 + i j + u d 2 + i j = A α i j ( α d 1 + α d 2 ) + A 2 α 2 i j ( α 2 d 1 + α 2 d 2 ) + + A 2 L 1 α 2 L 1 i j ( α 2 L 1 d 1 + α 2 L 1 d 2 ) = A α i j + d 1 + Z α ( d 2 d 1 ) + A 2 α 2 ( i j + d 1 + Z α ( d 2 d 1 ) ) + + A 2 L 1 α 2 L 1 ( i j + d 1 + Z α ( d 2 d 1 ) = u i j + d 1 + Z α ( d 2 d 1 ) .
The sequence { u i j + d 1 + Z α ( d 2 d 1 ) } is the generalized sequence with shift d 1 + Z α ( d 2 d 1 ) , that is,
S { d 1 + Z α ( d 2 d 1 ) } = { u i j + d 1 + Z α ( d 2 d 1 ) } .
Notice that there is not any value p 0 , 1 , , 2 L 2 that represents the null binary sequence { 0 0 0 0 } . So, we denote with S { } the p-representation of this sequence. It is worth noticing that S { } = S ( 0 ) = { 0 } , where S ( 0 ) and { 0 } are the G-representation and the B-representation of the null sequence, respectively.
We have introduced three different notations for generalized sequences: the G-representation, S ( G ) , introduced in Section 3.1; the B-representation, B ( { s i } ) given in Section 3.2 and the p-representation, S { p } , given in this subsection. The next theorem, which is a direct consequence of Theorem 2, provides a relation between the G-representation and the p-representation. We can get a representation from the other as follows.
Theorem 8.
Consider the family of generalized sequences denoted by S = { S ( G ) : G = 0 , 1 , , 2 L 1 } = { S { p } : p = 0 , 1 , , 2 L 2 } S { } , then
S { p } = S ( τ ( G ) L + 1 ) mod ( 2 L 1 )
with τ ( G ) [ 0 , 2 L 2 ] such that α τ ( G ) = g 0 α L 1 + g 1 α L 2 + + g L 1 , where α F 2 L is a root of the primitive polynomial of the corresponding LFSR. Equivalently, p = ( 2 L L + τ ( G ) ) mod ( 2 L 1 ) .
Example 6.
Consider again Example 2. Applying Theorem 8 to the family of generalized sequences given in Table 3, we obtain the relation between G-representation and p-representation as depicted in Table 5. For instance, if G = 10 that is G = [ 0 , 1 , 0 , 1 , 0 ] , we have to compute τ ( 10 ) such that α τ ( 10 ) = α 3 + α . According to the results in Table 5, τ ( 10 ) = 6 , therefore, from Theorem 8, p = τ ( 10 ) L + 1 = 6 5 + 1 = 2 . It is easy to check that S ( 10 ) = S { 2 } = { 1 1 1 0 0 0 1 1 0 1 1 0 0 1 0 0 } .
Consider now another example. For G = 13 , we have G = [ 0 , 1 , 1 , 0 , 1 ] . We need to find τ ( 13 ) such that α τ ( 13 ) = α 3 + α 2 + 1 . According to Table 5, the value we are looking for is τ ( 13 ) = 8 . Therefore p = τ ( 13 ) L + 1 = 8 5 + 1 = 4 , as we expected from Table 5.
Corollary 1.
Consider the family of generalized sequences S = { S ( G ) : G = 0 , 1 , , 2 L 1 } = { S { p } : p = 0 , 1 , , 2 L 2 } S { } generated by the PN-sequence { u i } of period 2 L 1 . If G = 2 t , with t [ 0 , L 1 ] , then τ ( G ) = t and p = ( t L + 1 ) mod ( 2 L 1 ) or equivalently p = ( 2 L L + t ) mod ( 2 L 1 ) .
Example 7.
Consider again Example 2, where L = 5 and T = 31 . We can compute the value of p for each G = 2 t , where t = 0 , 1 , 2 , 3 , 4 :
G τ ( G ) = t p = ( t L + 1 ) mod ( 2 L 1 )
10−4 mod 31 = 27
21−3 mod 31 = 28
42−2 mod 31 = 29
83−1 mod 31 = 30
1640 mod 31 = 0
This result matches with the expected values for p obtained in Table 5.
It is worth mentioning that the self-shrinking generator is another cryptographic sequence generator based on irregular decimation [20]. In this case, a PN-sequence is self-decimated producing a new sequence with good cryptographic properties. In [22], authors proved that the sequence produced by this generator can also be obtained with the generalized self-shrinking generator and the same characteristic polynomial with shift p = 2 L 1 . As a consequence of this fact and the previous theorem, we can introduce the following result.
Corollary 2.
The sequence S ( G ) with τ ( G ) = 2 L 1 + L 1 such that α τ ( G ) = g 0 α L 1 + g 1 α L 2 + + g L 1 is the output sequence generated by the self-shrinking generator with the same LFSR and characteristic polynomial p ( x ) .
Example 8.
Consider again Example 2. According to the previous corollary, the sequence generated by the self-shrinking generator is S ( G ) with G such that α τ ( G ) = g 0 α L 1 + g 1 α L 2 + + g L 1 . In this case, τ ( G ) = 20 and α 20 = α 3 + α 2 . Therefore G = [ 0 , 1 , 1 , 0 , 0 ] and G = 12 which corresponds to the sequence with shift p = 16 , that is, the output sequence of the self-shrinking generator, as expected.
The following lemma proves that there exists an element m { L 1 , L , , 2 L 3 } such that α m + 1 = α m + 1 . Later, we check that the generalized sequences associated to these values, S { m } and S { m + 1 } , are the sequences with period T = 2 .
Lemma 1.
Let α be a primitive element in F 2 L . Then
α m + 1 = α m + 1
if and only if m = 2 L 1 Z α ( 1 ) .
Proof. 
Assume that α m + 1 + α m = 1 . Then
1 = α m + 1 + α m = α m ( α + 1 ) = α m α Z α ( 1 ) = α m + Z α ( 1 ) ,
and therefore, m + Z α ( 1 ) = 2 L 1 .
Conversely, assume that m = 2 L 1 Z α ( 1 ) . Then
α m + 1 + α m = α m ( α + 1 ) = α 2 L 1 Z α ( 1 ) α Z α ( 1 ) = α 2 L 1 = 1 .
Therefore, the lemma holds. □
Let G m the binary representation of the value of G associated to m, and G m its decimal representation. Next, we introduce a theorem whose proof helps us to prove Theorem 10.
Theorem 9.
Let m be the integer defined in Lemma 1. Then | G m G m + 1 | = 2 L 1
Proof. 
According to Theorem 8, we can express m and m + 1 as:
m = τ ( G m ) L + 1 and m + 1 = τ ( G m + 1 ) L + 1 ,
where τ ( G m ) and τ ( G m + 1 ) satisfy
α τ ( G m ) = g 0 α L 1 + g 1 α L 2 + + g L 2 α + g L 1 , α τ ( G m + 1 ) = g 0 α L 1 + g 1 α L 2 + + g L 2 α + g L 1
with
G m = g 0 , g 1 , , g L 2 , g L 1 and G m + 1 = g 0 , g 1 , , g L 2 , g L 1 .
From Lemma 1 and Expression (8) we deduce that:
α τ ( G m + 1 ) α τ ( G m ) = α L 1 .
Therefore,
α τ ( G m + 1 ) = α τ ( G m ) + α L 1 = ( g 0 + 1 ) α L 1 + g 1 α L 2 + + g 1 α + g 0 .
As a consequence, the relation between G m and G m + 1 is
| G m G m + 1 | = 2 L 1 .
Theorem 10.
Consider m { L 1 , L , , 2 L 3 } such that α m + 1 = 1 + α m , where m is the value given in Lemma 1. The generalized sequences S { m } and S { m + 1 } are the sequences of period T = 2 , that is, the sequences with B-representation n 1 and n 0 + n 1 .
Proof. 
Let { u i } be the PN-sequence used in the GSSG. Consider the corresponding shifted versions { v i ( m ) } = { u i + m } and { v i ( m + 1 ) } = { u i + m + 1 } , where m is as in Lemma 1. According to the proof of Theorem 9, we know that:
G m = g 0 , g 1 , , g L 1 and G m + 1 = g 0 + 1 , g 1 , , g L 1 .
Now, from Expression (1):
v i ( m ) = u i + m = g 0 u i + g 1 u i 1 + g 2 u i 2 + + g L 1 u i L + 1 v i ( m + 1 ) = u i + m + 1 = ( g 0 + 1 ) u i + g 1 u i 1 + g 2 u i 2 + + g L 1 u i L + 1 .
As a consequence, v i ( m ) + v i ( m + 1 ) = u i + m + u i + m + 1 = u i .
Let supp ( { u i } ) be the set of indices j such that u j = 1 . Therefore
v j ( m ) = v j ( m + 1 ) , if j supp ( { u i } ) ,
v j ( m ) = v j ( m + 1 ) = 1 , if j supp ( { u i } ) .
Notice that (10) implies that, when j supp ( { u i } ) ,
v j ( m ) = 0 , v j ( m + 1 ) = 1 or v j ( m ) = 1 , v j ( m + 1 ) = 0 .
As a consequence, the resulting generalized sequences, S ( G m ) and S ( G m + 1 ) , are complementary (their sum is the identically 1 sequence).
Assume that supp ( { u i } ) = i 0 , i 1 , , i 2 L 1 1 . Let i k supp ( { u i } ) , according to (9), v j ( m ) = v j ( m + 1 ) for j = i k + 1 , i k + 2 , , i k + 1 1 (i.e., the integers between i k and i k + 1 ). Furthermore, since { v i ( m + 1 ) } is also a shifted version of { v i ( m ) } (shift p = 1 ), we have v j ( m + 1 ) = v j + 1 ( m ) , for j 0 . As a result, we obtain the following chain:
v i k ( m + 1 ) = v i k + 1 ( m ) = v i k + 1 ( m + 1 ) = v i k + 2 ( m ) = v i k + 2 ( m + 1 ) = = v i k + 1 1 ( m + 1 ) = v i k + 1 ( m )
Therefore, v i k ( m + 1 ) = v i k + 1 ( m ) . This means that S ( G m ) is a shifted version of S ( G m + 1 ) , but they are complementary. The only option is that they are the sequences { 1 0 1 0 1 0 1 0 1 } and { 0 1 0 1 0 1 0 1 0 } . □
For example, consider Table 5. The sequences { 1 0 1 0 1 0 1 } and { 0 1 0 1 0 1 0 } correspond to shifts m = 13 and m + 1 = 14 of the PN-sequence { u i } . From the isomorphism defined by (11), we have that the generalized sequence S { 13 } is associated with the element α t = α 17 = α 4 + α + 1 , and the generalized sequence S { 14 } is associated with α 18 = α + 1 . Therefore, we have G 13 = 19 and G 14 = 3 (see Table 5 again), in which the difference is 2 4 as Theorem 9 indicated.
Theorem 11.
Consider a primitive polynomial p ( x ) of degree L and let m be the positive integer defined in 1, i.e., α m + 1 = α m + 1 , with α a root of p ( x ) . Then, given β a root of p * ( x ) , where p * ( x ) is the reciprocal polynomial of p ( x ) , we have that β m * + 1 = β m * + 1 , with m * = 2 L 2 m .
Proof. 
We know that β = α 1 is a root of p * ( x ) . Then
α m + 1 = β m 1 = β 2 L m 2
and α m + 1 = β n + 1 = β 2 L 1 m + 1 . As a consequence, we have that β 2 L 2 m = β 2 L 1 m + 1 and
β 2 L 1 m = β 2 L 2 m + 1 .
In Table 6, we study the values of m, such that α m + 1 = α m + 1 , for every primitive polynomial of degree 5. Consider, for instance, p ( x ) = x 5 + x 2 + 1 . For this polynomial m = 13 . The corresponding value m * for the reciprocal polynomial p ( x ) = x 5 + x 3 + 1 is computed as m * = 2 5 2 13 = 17 .
Remark 2.
Given the value of m for a primitive polynomial p ( x ) , we can find the value of m * for p * ( x ) without computing any logarithm.

4. Partitions of the Family of Generalized Sequences

In this section, we study the family of generalized sequences as a partition of cosets of the quotient set given by S and a subgroup of generalized sequences. This partition will help us in the analysis of the structure of the family of generalized sequences and their cryptographic properties. Their different representations, presented in the previous section, will facilitate us in this study.

4.1. Additive Group Structure

We know that the family S of generalized sequences with the bit-wise XOR operation + is an Abelian additive group of order 2 L . Therefore, we can see it as an F 2 -vector space of dimension L. Furthermore, the additive group structure of ( S , + ) and Theorem 7 allows us to define the following group isomorphism,
ϕ : ( F 2 L , + ) ( S , + ) 0 S { } α p S { p }
where S { p } denotes the p-representation.
Suppose that S comes from an LFSR of L stages and define K the set of the generalized sequences with periods 1 and 2; that is
K = { 0 0 0 0 } , { 1 1 1 1 } , { 0 1 0 1 } , { 1 0 1 0 } = S { } , S { 0 } , S { m } , S { m + 1 } ,
where m is given in Lemma 1. We have that ( K , + ) is a subgroup of S of order 4; therefore, K can be considered as a vector subspace of S of dimension 2.

4.1.1. Subsets of S of Order 2 2

From the groups S and K , we can define the quotient group S / K = s + K | s S , in which the order | S / K | is, by the Lagrange’s Theorem (see ([46], Section 6.8)),
| S / K | = | S | | K | = 2 L 2 .
For each s S , the set s + K is called cosets of S modulo K and s is known as the representative of the coset.
Due to the properties of the cosets of a group ([47], Section 5.2) we know that any two cosets are either disjoint or identical, the union of the cosets is the own group and any subgroup is the coset defined by the neutral element. Although derived from a subgroup, cosets are not usually themselves subgroups of S , only subsets. So, we have a partition of the set of generalized sequences S into 2 L 2 cosets of size 4, denoted by S 4 ( i ) ; that is,
S = i = 1 2 L 2 S 4 ( i ) .
In the following example, we construct the quotient group of a family of generalized sequences and their cosets, using the p-representations.
Example 9.
Consider the set of GSS-sequences S given in Table 5 and the null sequence S { } . We have that K = { S { } , S { 0 } , S { 13 } , S { 14 } } and, as | S | = 32 , the 8 cosets of S are K and
S { 5 } + K = { S { 5 } , S { 2 } , S { 21 } , S { 25 } } , S { 6 } + K = { S { 6 } , S { 27 } , S { 26 } , S { 28 } } , S { 18 } + K = { S { 18 } , S { 1 } , S { 24 } , S { 15 } } , S { 19 } + K = { S { 19 } , S { 11 } , S { 16 } , S { 9 } } , S { 20 } + K = { S { 20 } , S { 8 } , S { 10 } , S { 4 } } , S { 23 } + K = { S { 23 } , S { 12 } , S { 30 } , S { 17 } } , S { 29 } + K = { S { 29 } , S { 3 } , S { 7 } , S { 22 } } .
From the group isomorphism between F 2 L and S given in (11) and by Theorem 10, we know that
K = 0 , 1 , α m , α m + 1 = 0 , 1 , α m , α Z α ( m )
is isomorphic to K ; therefore, the cosets of F 2 L modulo K can be written as α p + K , where ϕ ( α p ) = S { p } = s S is the representative of the coset. Furthermore, each coset will be isomorphic to
α p + K = α p , α p + 1 , α p + α m , α p + α Z α ( m )
Example 10.
Consider Example 9 again. We know that, in this case, m = 13 . Therefore, the cosets of F 2 5 modulo K are
K = 0 , 1 , α 13 , α 14 , α 5 + K = α 5 , α 2 , α 21 , α 25 , α 6 + K = α 6 , α 27 , α 26 , α 28 , α 18 + K = α 18 , α , α 24 , α 15 , α 19 + K = α 19 , α 11 , α 16 , α 9 , α 20 + K = α 20 , α 8 , α 10 , α 4 , α 23 + K = α 23 , α 12 , α 30 , α 17 , α 29 + K = α 29 , α 3 , α 7 , α 22 .
Next, we study the B-representation of the cosets of order 4. We focus our attention in this representation because we can obtain the L C of a generalized sequence directly from it (see Theorem 5).
Recalling that we denote by { 0 } the B-representation of the null sequence, we have that the B-representation of ϕ ( K ) = { S ( ) , S ( 0 ) , S ( m ) , S ( m + 1 ) } is
K = { 0 } , n 0 , n 1 , n 0 + n 1 .
Therefore, the B-representation of the corresponding sequences of each coset will have the following form
Δ s , Δ s + n 0 , Δ s + n 1 , Δ s + n 0 + n 1
where Δ s = i = 2 2 L 1 ( L 2 ) c i n i , with c i F 2 , denotes the B-representation of the sequence associated to the representative of the coset s + K , denoted by s. From Expression (7), we can obtain Δ s taking { s n } = S { p } = s and the binomial matrix H L 1 in Expression (6). Notice that for a sequence with linear complexity equal to L C , we have that c L C 1 = 1 and c i = 0 , for i L C (see Theorem 5). As we know that L C 2 L 1 ( L 2 ) for the generalized sequences [40], then we consider the coefficients c i , for i = 0 , 1 , , 2 L 1 ( L 2 ) , even though the last ones could be zeros.
Example 11.
Consider again the set of generalized sequences S given in Table 5 and the cosets given in Example 9. In Table 7, we have the B-representation of each generalized sequence. Consider the coset α 6 + K = { α 6 , α 27 , α 26 , α 28 } . The B-representation of the set of generalized sequences { S { 6 } , S { 27 } , S { 26 } , S { 28 } } is given by
n 2 + n 10 + n 12 , n 0 + n 2 + n 10 + n 12 , n 1 + n 2 + n 10 + n 12 , n 0 + n 1 + n 2 + n 10 + n 12 ,
where Δ 6 = n 2 + n 10 + n 12 is the common term in the four representations.
We have considered α 6 as the representative of the coset, but we could choose any element of the coset, since that α 6 + K = α 26 + K = α 27 + K = α 28 + K . In this example, we consider α 6 the representative of the coset, and the B-representation of S { 6 } is denoted by Δ α 6 = n 2 + n 10 + n 12 .

4.1.2. Subgroups of S of Order 2 3

In the previous subsection, we give a partition of the family of generalized sequences using the cosets of S modulo K which do not have to be subgroups. In this subsection, we give a partition of S using subgroups of S obtained from these cosets and the subgroup K .
We can construct subgroups of S of order 8, denoted by S 8 ( i ) for i = 1 , 2 , , 2 L 2 1 , from the union of K and the cosets of S , s + K , for any s S .
From the isomorphism given in Expression (11), if we assume that ϕ ( α p ) = s , then these subgroups can be expressed by
K α p + K = 0 , 1 , α m , α m + 1 , α p , α p + 1 , α p + α m , α p + α m + 1 .
The B-representation of the corresponding sequences of each of the subgroups S 8 ( i ) for i = 1 , 2 , , 2 L 2 1 will have the following form
0 , n 0 , n 1 , n 0 + n 1 , Δ s , Δ s + n 0 , Δ s + n 1 , Δ s + n 0 + n 1
where Δ s = i = 2 2 L 1 ( L 2 ) c i n i , with c i F 2 , is the binomial representation of the representative of the coset s + S .
We observe that the subgroups S 8 ( i ) can also be considered as vector subspaces of dimension three and the union of them provides the group S , that is,
S = i = 1 2 L 2 1 S 8 ( i ) .
Notice that the Expression (13) is not a disjoint union, since the sequences represented by 0 , n 0 , n 1 and n 0 + n 1 are included in each subgroup. On the other hand, Expression (12) is a disjoint union of cosets. Therefore, the considered cosets form a partition of S while the subgroups of order 8 do not.
Example 12.
Consider again Example 11 and Table 7. We can take the cosets and the appropriate representatives as we can see in Table 7 indicated with different colors. For instance, all the sequences that share Δ α 18 = n 4 + n 5 + n 9 + n 10 + n 11 , are represented in green or the sequences that share Δ α 29 = n 2 + n 4 + n 5 + n 9 + n 11 + n 12 are represented in purple. From the cosets of order 4 and the corresponding union with the subgroup K we can obtain the subgroups of order 8 with the B-representation as follows
S 8 ( 1 ) = K K + ( n 2 ) + ( n 10 ) + ( n 12 ) S 8 ( 2 ) = K K + ( n 2 ) + ( n 4 ) + ( n 5 ) + ( n 9 ) + ( n 11 ) + ( n 12 ) S 8 ( 3 ) = K K + ( n 3 ) + ( n 4 ) + ( n 6 ) + ( n 7 ) + ( n 8 ) + ( n 9 ) + ( n 10 ) + ( n 11 ) + ( n 12 ) S 8 ( 4 ) = K K + ( n 3 ) + ( n 5 ) + ( n 6 ) + ( n 7 ) + ( n 8 ) + ( n 12 ) S 8 ( 5 ) = K K + ( n 4 ) + ( n 5 ) + ( n 9 ) + ( n 10 ) + ( n 11 ) S 8 ( 6 ) = K K + ( n 2 ) + ( n 3 ) + ( n 4 ) + ( n 6 ) + ( n 7 ) + ( n 8 ) + ( n 9 ) + ( n 11 ) S 8 ( 7 ) = K K + ( n 2 ) + ( n 3 ) + ( n 5 ) + ( n 6 ) + ( n 7 ) + ( n 8 ) + ( n 10 )
In conclusion, from a primitive polynomial of degree L, we can obtain 2 L generalized sequences which can be divided into 2 L 2 disjoint subsets, including the trivial group K = 0 , n 0 , n 1 , n 0 + n 1 and the cosets of size four constructed by bit-wise XORing a given generalized sequence with K ; or into 2 L 2 1 subgroups of order eight, formed by the union of K and the cosets of order four.
At this point, a question that arises in a natural way is whether it would be possible to obtain a generalized sequence from other sequences contained in other groups. Due to the additive group structure, the answer is affirmative.

4.2. Study of L C of Generalized Sequences

Linear complexity is a measure of unpredictability of pseudo-random sequences and it is a very important cryptographic property ([48], Section 2.3.5). Our aim in this section is to study the properties of the linear complexity of the family of generalized sequences, derived from their representations.
Cardell and Fúster-Sabater proved in [38] that we can deduce the linear complexity of any binary sequence with a period of the power of two from its B-representation.
Theorem 12
([38], Corollary 3). Given a sequence with B-representation k = 1 t n i k , where i 1 < i 2 < < i t are integer indexes, then the linear complexity of such a sequence is i t + 1 .
As a consequence, we can introduce the following result.
Theorem 13.
All the generalized sequences corresponding to a coset S 4 ( i ) of order 4 have the same L C .
Proof. 
This result is immediate using the B-representation in the cosets. The L C of any generalized sequence in a given coset can be determined by the B-representation of the representative, denoted by Δ s , since the rest of the sequences only differ from Δ s in the binomial terms n 0 , n 1 , n 0 + n 1 , which will not affect the value of L C . □
From a high number of computational examples and as a consequence of the structure of the additive group, it is possible to observe that for a family of generalized sequences coming from a PN-sequence with a characteristic polynomial of degree L, we get L 2 different linear complexities L C i satisfying
L C 1 > L C 2 > > L C L 3 > L C L 2 ,
with L C i > 2 L 2 , for i = 1 , 2 , , L 2 ; apart from the trivial ones, L C { 0 , 1 , 2 } , obtained in K . There are 2 L ( i + 2 ) cosets, each of them with four sequences and each sequence with linear complexity L C i . The following example shows this fact.
Example 13.
Table 7 shows the family of generalized sequences obtained for the primitive polynomial p ( x ) = x 5 + x 2 + 1 . We distinguish with different colors the 2 5 2 = 8 different cosets of S of order 4. According to Theorem 12, we can determine the L C of a generalized sequence from its B-representation; and, from Theorem 13 we have that the L C for all the generalized sequences in a coset is the same. In this example, we obtain three different linear complexities
L C 1 = 13 , L C 2 = 12 , and L C 3 = 11 ,
which allows us to classify the cosets of S according to their complexities as follows
A i = { coset of sequences with L C = 13 } , for i = 1 , 2 , 3 , 4 , B i = { coset of sequences with L C = 12 } , for i = 1 , 2 , C = { coset of sequences with L C = 11 } ,
and the four trivial sequences of K , the sequences of which have L C = 1 and L C = 2 .
Example 14.
Consider the 64 generalized sequences obtained from the primitive polynomial p ( x ) = x 6 + x 5 + 1 . In Appendix A we show a partition of the group of these generalized sequences S into 2 6 2 = 16 cosets of order 4. Note that we represent in bold the group K and then we add the representative of each coset of S . Binomial numbers, marked with different colors, provide the complexities of the sequences in each coset. Recall that the binomial number with the highest index in the B-representation is n L C 1 .
Next, we give a classification of the cosets of S of order 4 according to the value of theirs complexities
A i = { coset of sequences with L C 1 = 28 } , for i = 1 , 2 , , 8 , B i = { coset of sequences with L C 2 = 27 } , for i = 1 , 2 , 3 , 4 , C i = { coset of sequences with L C 3 = 26 } , for i = 1 , 2 , D = { coset of sequences with L C 4 = 25 } ,
and the four trivial sequences of K .
As we can see in Table 8, each term n L C i 1 , i = 1 , 2 , 3 , 4 appears in the B-representation of eight cosets. Furthermore, for every value of L C i , i = 1 , 2 , 3 , 4 , there exist a coset, the B-representation of which only contains one of the four terms n L C i 1 but not the others. In this example, these cosets are A 7 , B 2 , C 1 and D. Therefore, if we have four sequences, each one of them in one of the cosets above, we can obtain the 64 generalized sequences.
In general, given a primitive polynomial of degree L, we generate 2 L generalized sequences which can be divided into 2 L 2 cosets and with L 2 different linear complexities L C i , i = 1 , 2 , , L 2 . Each term n L C i 1 appears 2 L 3 times in the B-representations of the generalized sequences. As we checked previously, there are L 2 groups that have one element n L C i 1 , i = 1 , 2 , , L 2 , but not the others. Therefore, we only need L 2 sequences to generate the 2 L generalized sequences. We already knew this fact, since that S / K is a vector space of dimension 2 L 2 and thus can be generated by L 2 cosets modulo the subspace K of dimension 2.

5. Conclusions

In this work, we introduce and analyze new ways to represent the generalized sequences, from which we study different properties of the sequences. We introduce the B-representation that allows us to express such sequences by means of binomial sequences, that is, shifted versions of the diagonals of the Sierpinski’s triangle. Furthermore, this representation lets us generate binary sequences with controllable parameters such as the period and the linear complexity. We have also defined the G and p-representation, both related between them. From the p-representation we can obtain the shifted version of the corresponding input PN-sequence of the GSSG and vice versa. Using this p-representation, we can define an isomorphism between the family of generalized sequences produced by a primitive polynomial of degree L and the additive group F 2 L . As a consequence, we can create a partition of the sequences into subsets of cardinal 4, known as the cosets. Moreover, the B-representations of the four generalized sequences in each coset exhibit a well defined pattern and similar characteristics. This fact might be exploited in the cryptanalysis of this generator.
We still have different open problems to solve. In Section 4.2, we have analyzed the linear complexity of generalized sequences, but some results are just conjectures. The partition of generalized sequences into cosets of the quotient group S / K and the study of the linear complexity of the sequences in each coset have brought new questions to be solved. Furthermore, we want to prove that the period of any generalized sequence obtained from a primitive polynomial of degree L, except from the sequences with period 1 and 2, is always 2 L 1 and that 2 L 2 is a lower bound on the linear complexity. Finally, another interesting future line would be to study the generalized shelf-shrinking generator based on FCSRs (or similar structures), analyze their cryptographic properties and adapt all three representations to this new model.

Author Contributions

All authors contributed equally. All authors have read and agreed to the published version of the manuscript.

Funding

This research is partially supported by Ministerio de Economía, Industria y Competitividad (MINECO), Agencia Estatal de Investigación (AEI), and Fondo Europeo de Desarrollo Regional (FEDER, UE) under project COPCIS, reference TIN2017-84844-C2-1-R. It is also supported by Comunidad de Madrid (Spain) under project CYNAMON (P2018/TCS-4566), co-funded by FSE and European Union FEDER funds. The first author is supported by CAPES (Brazil). Finally, the second and fourth author are partially supported by Spanish grant VIGROB-287 of the Universitat d’Alacant.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
LFSRLinear Feedback Shift Register
PN-sequencePseudo-Noise sequence
LCLinear Complexity
GSSGGeneralized Self-Shrinking Generator
GSS-sequenceGeneralized Self-Shrunken Sequence
PRNGPseudo-Random Number Generator
FCSRFeedback with Carry Shift Register

Appendix A

Generalized sequences for p ( x ) = x 6 + x 5 + 1 .
K = 0 , n 0 , n 1 , n 0 + n 1 A 1 = 0 , n 0 , n 1 , n 0 + n 1 + n 5 + n 6 + n 7 + n 9 + n 16 + n 19 + n 20 + n 24 + n 25 + n 26 + n 27 A 2 = 0 , n 0 , n 1 , n 0 + n 1 + n 4 + n 5 + n 6 + n 7 + n 8 + n 11 + n 14 + n 17 + n 18 + n 22 + n 23 + n 24 + n 27 B 1 = 0 , n 0 , n 1 , n 0 + n 1 + n 4 + n 8 + n 9 + n 11 + n 14 + n 16 + n 17 + n 18 + n 19 + n 20 + n 22 + n 23 + n 25 + n 26 A 3 = 0 , n 0 , n 1 , n 0 + n 1 + n 3 + n 5 + n 6 + n 7 + n 8 + n 9 + n 10 + n 13 + n 14 + n 15 + n 16 + n 17 + n 18 + n 19 + n 22 + n 23 + n 24 + n 26 + n 27 C 1 = 0 , n 0 , n 1 , n 0 + n 1 + n 3 + n 8 + n 10 + n 13 + n 14 + n 15 + n 17 + n 18 + n 20 + n 22 + n 23 + n 25 B 2 = 0 , n 0 , n 1 , n 0 + n 1 + n 3 + n 4 + n 9 + n 10 + n 11 + n 13 + n 15 + n 16 + n 19 + n 26 A 4 = 0 , n 0 , n 1 , n 0 + n 1 + n 3 + n 4 + n 5 + n 6 + n 7 + n 10 + n 11 + n 13 + n 15 + n 20 + n 24 + n 25 + n 27 A 5 = 0 , n 0 , n 1 , n 0 + n 1 + n 2 + n 3 + n 4 + n 5 + n 7 + n 10 + n 11 + n 12 + n 13 + n 14 + n 15 + n 16 + n 20 + n 25 + n 27 B 3 = 0 , n 0 , n 1 , n 0 + n 1 + n 2 + n 3 + n 4 + n 6 + n 9 + n 10 + n 11 + n 12 + n 13 + n 14 + n 15 + n 19 + n 24 + n 26 C 2 = 0 , n 0 , n 1 , n 0 + n 1 + n 2 + n 3 + n 6 + n 8 + n 10 + n 12 + n 13 + n 15 + n 16 + n 17 + n 18 + n 20 + n 22 + n 23 + n 24 + n 25 A 6 = 0 , n 0 , n 1 , n 0 + n 1 + n 2 + n 3 + n 5 + n 7 + n 8 + n 9 + n 10 + n 12 + n 13 + n 15 + n 17 + n 18 + n 19 + n 22 + n 23 + n 26 + n 27 B 4 = 0 , n 0 , n 1 , n 0 + n 1 + n 2 + n 4 + n 6 + n 8 + n 9 + n 11 + n 12 + n 17 + n 18 + n 19 + n 20 + n 22 + n 23 + n 24 + n 25 + n 26 A 7 = 0 , n 0 , n 1 , n 0 + n 1 + n 2 + n 4 + n 5 + n 7 + n 8 + n 11 + n 12 + n 16 + n 17 + n 18 + n 22 + n 23 + n 27 A 8 = 0 , n 0 , n 1 , n 0 + n 1 + n 2 + n 5 + n 7 + n 9 + n 12 + n 14 + n 19 + n 20 + n 25 + n 26 + n 27 D = 0 , n 0 , n 1 , n 0 + n 1 + n 2 + n 6 + n 12 + n 14 + n 16 + n 24

References

  1. Fischer, V. A Closer Look at Security in Random Number Generators Design. In Constructive Side-Channel Analysis and Secure Design, COSADE 2012; Schindler, W., Huss, S., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; Volume 7275, Lecture Notes in Computer Science; pp. 167–182. [Google Scholar]
  2. Francillon, A.; Castelluccia, C. TinyRNG: A Cryptographic Random Number Generator for Wireless Sensors Network Nodes. In Proceedings of the 2007 5th International Symposium on Modeling and Optimization in Mobile, Ad Hoc and Wireless Networks and Workshops, Limasso, Cyprus, 16–20 April 2007; pp. 1–7. [Google Scholar]
  3. Biryukov, A.; Shamir, A.; Wagner, D. Real Time Cryptanalysis of A5/1 on a PC. In Proceedings of Fast Software Encryption 2000; Goos, G., Hartmanis, J., Van Leeuwen, J., Schneier, B., Eds.; Springer: Berlin/Heidelberg, Germany, 2001; Volume 1978, Lecture Notes in Computer Science; pp. 1–18. [Google Scholar]
  4. Petrovic, S.; Fúster-Sabater, A. Cryptanalysis of the A5/2 Algorithm. IACR Cryptol. EPrint Arch. 2000, 2000, 52. [Google Scholar]
  5. Paul, G.; Maitra, S. RC4 Stream Cipher and its Variants; CRC Press, Taylor and Francis Group: Boca Raton, FL, USA, 2012. [Google Scholar]
  6. Peinado, A.; Munilla, J.; Fúster-Sabater, A. EPCGen2 Pseudorandom Number Generators: Analysis of J3Gen. Sensors 2014, 14, 6500–6515. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Dutta, I.K.; Ghosh, B.; Bayoumi, M. Lightweight Cryptography for Internet of Insecure Things: A Survey. In Proceedings of the 2019 IEEE 9th Annual Computing and Communication Workshop and Conference (CCWC), Las Vegas, NV, USA, 7–9 January 2019; pp. 0475–0481. [Google Scholar]
  8. Philip, M.A.; Vaithiyanathan. A survey on lightweight ciphers for IoT devices. In Proceedings of the 2017 International Conference on Technological Advancements in Power and Energy ( TAP Energy), Kollam, India, 21–23 December 2017; pp. 1–4. [Google Scholar]
  9. Dubrova, E.; Hell, M. Espresso: A stream cipher for 5G wireless communication systems. Cryptogr. Commun. 2017, 9, 273–289. [Google Scholar] [CrossRef] [Green Version]
  10. Orúe López, A.B.; Hernández Encinas, L.; Montoya Vitini, F. Trifork, a new Pseudorandom Number Generator Based on Lagged Fibonacci Maps. J. Comput. Sci. Eng. 2010, 2, 46–51. [Google Scholar]
  11. Paar, C.; Pelzl, J. Understanding Cryptography; Springer: Berlin, Germany, 2010. [Google Scholar]
  12. Golomb, S.W. Shift Register-Sequences; Aegean Park Press: Laguna Hill, CA, USA, 1982. [Google Scholar]
  13. Biryukov, A.; Perrin, L. State of the Art in Lightweight Symmetric Cryptography. IACR Cryptol. EPrint Arch. 2017, 2017, 511. [Google Scholar]
  14. Orúe López, A.B.; Hernández Encinas, L.; Martín Muñoz, A.; Montoya Vitini, F. A Lightweight Pseudorandom Number Generator for Securing the Internet of Things. IEEE Access 2017, 5, 27800–27806. [Google Scholar] [CrossRef]
  15. Hassan, S.; Bokhari, M.U. Design of Pseudo Random Number Generator using Linear Feedback Shift Register. Int. J. Eng. Adv. Technol. (IJEAT) 2019, 9, 1956–1965. [Google Scholar]
  16. Rahimov, H.; Babaei, M.; Farhadi, M. Cryptographic PRNG based on combination of LFSR and chaotic logistic map. Appl. Math. 2011, 2, 1531–1534. [Google Scholar] [CrossRef] [Green Version]
  17. Duvall, P.F.; Mortick, J.C. Decimation of Periodic Sequences. SIAM J. Appl. Math. 1971, 21, 367–372. [Google Scholar] [CrossRef]
  18. Díaz Cardell, S.; Fúster-Sabater, A. Cryptography with Shrinking Generators: Fundamentals and Applications of Keystream Sequence Generators Based on Irregular Decimation; Springer Briefs in Mathematics; Springer International Publishing: Cham, Switzerland, 2019. [Google Scholar]
  19. Coppersmith, D.; Krawczyk, H.; Mansour, Y. The shrinking generator. In Advances in Cryptology—CRYPTO ’93; Stinson, D., Ed.; Springer: Berlin/Heidelberg, Germany, 1994; Volume 773, Lecture Notes in Computer Science; pp. 22–39. [Google Scholar]
  20. Meier, W.; Staffelbach, O. The Self-Shrinking Generator. In Advances in Cryptology—EUROCRYPT 1994; De Santis, A., Ed.; Springer: Berlin/Heidelberg, Germany, 1995; Volume 950, Lecture Notes in Computer Science; pp. 205–214. [Google Scholar]
  21. Hu, Y.; Xiao, G. Generalized Self-Shrinking Generator. IEEE Trans. Inf. Theory 2004, 50, 714–719. [Google Scholar] [CrossRef]
  22. Zhang, B.; Feng, D. New Guess-and-Determine Attack on the Self-Shrinking Generator. In Advances in Cryptology—ASIACRYPT 2006; Lai, X., Chen, K., Eds.; Springe: Berlin/Heidelberg, Germany, 2006; Volume 4284, Lecture Notes in Computer Science; pp. 54–68. [Google Scholar]
  23. Kanso, A. Modified self-shrinking generator. Comput. Electr. Eng. 2010, 36, 993–1001. [Google Scholar] [CrossRef]
  24. Cardell, S.D.; Fúster-Sabater, A. The t-Modified Self-Shrinking Generator. In Computational Science—ICCS 2018; Shi, Y., Fu, H., Tian, Y., Krzhizhanovskaya, V.V., Lees, M.H., Dongarra, J., Sloot, P.M.A., Eds.; Springer International Publishing: Cham, Switzerland, 2018; Volume 10860, Lecture Notes in Computer Science; pp. 653–663. [Google Scholar]
  25. Cardell, S.D.; Requena, V.; Fúster-Sabater, A.; Orúe, A.B. Randomness Analysis for the Generalized Self-Shrinking Sequences. Symmetry 2020, 2020, 1460. [Google Scholar] [CrossRef] [Green Version]
  26. Cardell, S.D.; Fúster-Sabater, A. Discrete linear models for the generalized self-shrunken sequences. Finite Fields Their Appl. 2017, 47, 222–241. [Google Scholar] [CrossRef]
  27. Tasheva, A.T.; Tasheva, Z.N.; Petrov, A. Generalization of the Self-Shrinking Generator in the Galois Field GF(pn). Adv. Artif. Intell. 2011, 2011, 1–10. [Google Scholar] [CrossRef] [Green Version]
  28. Dong, L.; Zeng, Y.; Hu, Y. F-GSS: A Novel FCSR-Based Keystream Generator. In Proceedings of the 2009 First International Conference on Information Science and Engineering, Nanjing, China, 26–28 December 2009; pp. 1737–1740. [Google Scholar]
  29. Wang, H.; Wen, Q.; Zhang, J. The Properties of the FCSR-Based Self-Shrinking Sequence. IEICE Trans. Fundam. Electron. Commun. Comput. Sci. 2013, E96.A, 626–634. [Google Scholar] [CrossRef]
  30. Ali, A. Feedback with carry shift registers and (in-depth) security of ciphers based on this primitive. In Proceedings of the 2018 15th International Bhurban Conference on Applied Sciences and Technology (IBCAST), Islamabad, Pakistan, 9–13 January 2018; pp. 431–438. [Google Scholar]
  31. Goresky, M.; Klapper, A. Arithmetic crosscorrelations of feedback with carry shift register sequences. IEEE Trans. Inf. Theory 1997, 43, 1342–1345. [Google Scholar] [CrossRef]
  32. Stoyanov, B. Self-shrinking bit generation algorithm based on feedback with carry shift register. Adv. Stud. Theor. Phys. 2014, 8, 1057–1061. [Google Scholar] [CrossRef]
  33. Bandelow, C. Inside Rubik’s Cube and Beyond; Birkhäuser Boston: Cambridge, MA, USA, 1982. [Google Scholar]
  34. Jacobs, P. Group Theory with Applications in Chemical Physics; Cambridge University Press: Cambridge, UK, 2005. [Google Scholar]
  35. Liu, Y.; Hel-Or, H.; Kaplan, C.S.; Van Gool, L. Computational Symmetry in Computer Vision and Computer Graphics. Found. Trends Comput. Graph. Vis. 2009, 5, 1–195. [Google Scholar] [CrossRef]
  36. Lyubarskii, G. The Application of Group Theory in Physics; Elsevier: Pergamon, Turkey, 1960. [Google Scholar]
  37. Zhang, J.; Xiong, F.; Kang, J. The Application of Group Theory in Communication Operation Pipeline System. Math. Probl. Eng. 2018, 2018, 1–10. [Google Scholar] [CrossRef] [Green Version]
  38. Cardell, S.D.; Fúster-Sabater, A. Binomial Representation of Cryptographic Binary Sequences and Its Relation to Cellular Automata. Complexity 2019, 2019, 1–13. [Google Scholar] [CrossRef] [Green Version]
  39. Blackburn, S.R. The linear complexity of the self-shrinking generator. IEEE Trans. Inf. Theory 1999, 45, 2073–2077. [Google Scholar] [CrossRef]
  40. Fúster-Sabater, A.; Cardell, S.D. Linear complexity of generalized sequences by comparison of PN-sequences. RACSAM 2020, 2020. [Google Scholar] [CrossRef]
  41. Key, E.L. An Analysis of the Structure and Complexity of Nonlinear Binary Sequence Generators. IEEE Trans. Inf. Theory 1976, 22, 732–736. [Google Scholar] [CrossRef]
  42. Menezes, A.J.; van Oorschot, P.C.; Vanstone, S.A. Handbook of Applied Cryptography; CRC Press: Boca Raton, FL, USA, 1996. [Google Scholar]
  43. National Institute of Standards and Technology. NIST Lightweight Crypto Standardization Process 2019. Available online: https://csrc.nist.gov/Projects/Lightweight-Cryptography/Round-1-Candidates (accessed on 1 June 2020).
  44. Huber, K. Some comments on Zech’s logarithms. IEEE Trans. Inf. Theory 1990, 36, 946–950. [Google Scholar] [CrossRef]
  45. Fúster-Sabater, A. Generation of Cryptographic Sequences by means of Difference Equations. Appl. Math. Inf. Sci. 2014, 8, 475–484. [Google Scholar] [CrossRef]
  46. Birkhoff, G.; Mac Lane, S. A Survey of Modern Algebra; Macmillan: New York, NY, USA, 1996. [Google Scholar]
  47. Joshi, K.D. Foundations of Discrete Mathematics; Wiley: New York, NY, USA; Wiley Eastern Ltd: New Delhi, India, 1989. [Google Scholar]
  48. Cusick, T.W.; Ding, C.; Renvall, A. Stream Ciphers and Number Theory; North-Holland Mathematical Library: Amsterdam, Netherlands, 2004. [Google Scholar]
Figure 1. Linear Feedback Shift Registers (LFSR) of length r.
Figure 1. Linear Feedback Shift Registers (LFSR) of length r.
Mathematics 08 01006 g001
Figure 2. Sierpinski’s triangle.
Figure 2. Sierpinski’s triangle.
Mathematics 08 01006 g002
Table 1. Generalized sequences for p ( x ) = x 3 + x 2 + 1 .
Table 1. Generalized sequences for p ( x ) = x 3 + x 2 + 1 .
G { v i } Sequence Generalized Sequences
0 0 0 0 0 0 0 0 00 0000
0 0 1 0 0 1 1 1 01 0011
0 1 0 0 1 1 1 0 10 0110
0 1 1 0 1 0 0 1 11 0101
1 0 0 1 1 1 0 1 00 1111
1 0 1 1 1 0 1 0 01 1100
1 1 0 1 0 0 1 1 10 1001
1 1 1 1 0 1 0 0 11 1010
1 1 1 0 1 00
Table 2. The first 8 binomial coefficients, their binomial sequences n k , periods and complexities.
Table 2. The first 8 binomial coefficients, their binomial sequences n k , periods and complexities.
Binomial Coeff. Binomial Sequences
n k
PeriodLC
n 0 1 1 1 1 1 1 1 1 …11
n 1 0 1 0 1 0 1 0 1 …22
n 2 0 0 1 1 0 0 1 1 …43
n 3 0 0 0 1 0 0 0 1 …44
n 4 0 0 0 0 1 1 1 1 …85
n 5 0 0 0 0 0 1 0 1 …86
n 6 0 0 0 0 0 0 1 1 …87
n 7 0 0 0 0 0 0 0 1 …88
Table 3. Generalized sequences for p ( x ) = x 5 + x 2 + 1 .
Table 3. Generalized sequences for p ( x ) = x 5 + x 2 + 1 .
G G { v i } Sequence Generalized Sequence
000000 00000 000 00 0 000 0 0 0 0 0000 0 00 0 0 00 00 0000000000000000
100001 11001 111 10 0 011 0 1 1 1 0101 0 00 0 1 00 10 1100110011110000
200010 10011 111 00 0 110 1 1 1 0 1010 0 00 1 0 01 01 1001100110100101
300011 01010 000 10 0 101 1 0 0 1 1111 0 00 1 1 01 11 0101010101010101
400100 00111 110 00 1 101 1 1 0 1 0100 0 01 0 0 10 11 0011100101110010
500101 11110 001 10 1 110 1 0 1 0 0001 0 01 0 1 10 01 1111010110000010
600110 10100 001 00 1 011 0 0 1 1 1110 0 01 1 0 11 10 1010000011010111
700111 01101 110 10 1 000 0 1 0 0 1011 0 01 1 1 11 00 0110110000100111
801000 01111 100 01 1 011 1 0 1 0 1000 0 10 0 1 01 10 0111101011000001
901001 10110 011 11 1 000 1 1 0 1 1101 0 10 0 0 01 00 1011011000110001
1001010 11100 011 01 1 101 0 1 0 0 0010 0 10 1 1 00 11 1110001101100100
1101011 00101 100 11 1 110 0 0 1 1 0111 0 10 1 0 00 01 0010111110010100
1201100 01000 010 01 0 110 0 1 1 1 1100 0 11 0 1 11 01 0100001110110011
1301101 10001 101 11 0 101 0 0 0 0 1001 0 11 0 0 11 11 1000111101000011
1401110 11011 101 01 0 000 1 0 0 1 0110 0 11 1 1 10 00 1101101000010110
1501111 00010 010 11 0 011 1 1 1 0 0011 0 11 1 0 10 10 0001011011100110
1610000 11111 000 11 0 111 0 1 0 1 0000 1 00 1 0 11 00 1111111111111111
1710001 00110 111 01 0 100 0 0 1 0 0101 1 00 1 1 11 10 0011001100001111
1810010 01100 111 11 0 001 1 0 1 1 1010 1 00 0 0 10 01 0110011001011010
1910011 10101 000 01 0 010 1 1 0 0 1111 1 00 0 1 10 11 1010101010101010
2010100 11000 110 11 1 010 1 0 0 0 0100 1 01 1 0 01 11 1100011010001101
2110101 00001 001 01 1 001 1 1 1 1 0001 1 01 1 1 01 01 0000101001111101
2210110 01011 001 11 1 100 0 1 1 0 1110 1 01 0 0 00 10 0101111100101000
2310111 10010 110 01 1 111 0 0 0 1 1011 1 01 0 1 00 00 1001001111011000
2411000 10000 100 10 1 100 1 1 1 1 1000 1 10 1 1 10 10 1000010100111110
2511001 01001 011 00 1 111 1 0 0 0 1101 1 10 1 0 10 00 0100100111001110
2611010 00011 011 10 1 010 0 0 0 1 0010 1 10 0 1 11 11 0001110010011011
2711011 11010 100 00 1 001 0 1 1 0 0111 1 10 0 0 11 01 1101000001101011
2811100 10111 010 10 0 001 0 0 1 0 1100 1 11 1 1 00 01 1011110001001100
2911101 01110 101 00 0 010 0 1 0 1 1001 1 11 1 0 00 11 0111000010111100
3011110 00100 101 10 0 111 1 1 0 0 0110 1 11 0 1 01 00 0010010111101001
3111111 11101 010 00 0 100 1 0 1 1 0011 1 11 0 0 01 10 1110100100011001
11111 000 11 0 111 0 1 0 1 0000 1 00 1 0 11 00
Table 4. Binomial representation for the generalized sequences of p ( x ) = x 5 + x 2 + 1 .
Table 4. Binomial representation for the generalized sequences of p ( x ) = x 5 + x 2 + 1 .
GGeneralized SequenceB-Representation
00000000000000000{ 0 }
11 1 0 0 1 1 0 0 1 1 1 1 0 0 0 0 n 0 + n 2 + n 10 + n 12
21 0 0 1 1 0 0 1 1 0 1 0 0 1 0 1 n 0 + n 1 + n 2 + n 10 + n 12
30 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 n 1
40 0 1 1 1 0 0 1 0 1 1 1 0 0 1 0 n 2 + n 4 + n 5 + n 9 + n 11 + n 12
51 1 1 1 0 1 0 1 1 0 0 0 0 0 1 0 n 0 + n 4 + n 5 + n 9 + n 10 + n 11
61 0 1 0 0 0 0 0 1 1 0 1 0 1 1 1 n 0 + n 1 + n 4 + n 5 + n 9 + n 10 + n 11
70 1 1 0 1 1 0 0 0 0 1 0 0 1 1 1 n 1 + n 2 + n 4 + n 5 + n 9 + n 11 + n 12
80 1 1 1 1 0 1 0 1 1 0 0 0 0 0 1 n 1 + n 2 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 11
91 0 1 1 0 1 1 0 0 0 1 1 0 0 0 1 n 0 + n 1 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 10 + n 11 + n 12
101 1 1 0 0 0 1 1 0 1 1 0 0 1 0 0 n 0 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 10 + n 11 + n 12
110 0 1 0 1 1 1 1 1 0 0 1 0 1 0 0 n 2 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 11
120 1 0 0 0 0 1 1 1 0 1 1 0 0 1 1 n 1 + n 3 + n 5 + n 6 + n 7 + n 8 + n 12
131 0 0 0 1 1 1 1 0 1 0 0 0 0 1 1 n 0 + n 1 + n 2 + n 3 + n 5 + n 6 + n 7 + n 8 + n 10
141 1 0 1 1 0 1 0 0 0 0 1 0 1 1 0 n 0 + n 2 + n 3 + n 5 + n 6 + n 7 + n 8 + n 10
150 0 0 1 0 1 1 0 1 1 1 0 0 1 1 0 n 3 + n 5 + n 6 + n 7 + n 8 + n 12
161 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 n 0
170 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 n 2 + n 10 + n 12
180 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 n 1 + n 2 + n 10 + n 12
191 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 n 0 + n 1
201 1 0 0 0 1 1 0 1 0 0 0 1 1 0 1 n 0 + n 2 + n 4 + n 5 + n 9 + n 11 + n 12
210 0 0 0 1 0 1 0 0 1 1 1 1 1 0 1 n 4 + n 5 + n 9 + n 10 + n 11
220 1 0 1 1 1 1 1 0 0 1 0 1 0 0 0 n 1 + n 4 + n 5 + n 9 + n 10 + n 11
231 0 0 1 0 0 1 1 1 1 0 1 1 0 0 0 n 0 + n 1 + n 2 + n 4 + n 5 + n 9 + n 11 + n 12
241 0 0 0 0 1 0 1 0 0 1 1 1 1 1 0 n 0 + n 1 + n 2 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 11
250 1 0 0 1 0 0 1 1 1 0 0 1 1 1 0 n 1 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 10 + n 11 + n 12
260 0 0 1 1 1 0 0 1 0 0 1 1 0 1 1 n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 10 + n 11 + n 12
271 1 0 1 0 0 0 0 0 1 1 0 1 0 1 1 n 0 + n 2 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 11
281 0 1 1 1 1 0 0 0 1 0 0 1 1 0 0 n 0 + n 1 + n 3 + n 5 + n 6 + n 7 + n 8 + n 12
290 1 1 1 0 0 0 0 1 0 1 1 1 1 0 0 n 1 + n 2 + n 3 + n 5 + n 6 + n 7 + n 8 + n 10
300 0 1 0 0 1 0 1 1 1 1 0 1 0 0 1 n 2 + n 3 + n 5 + n 6 + n 7 + n 8 + n 10
311 1 1 0 1 0 0 1 0 0 0 1 1 0 0 1 n 0 + n 3 + n 5 + n 6 + n 7 + n 8 + n 12
Table 5. Generalized sequences for p ( x ) = x 5 + x 2 + 1 .
Table 5. Generalized sequences for p ( x ) = x 5 + x 2 + 1 .
p = ( τ ( G ) L + 1 ) mod ( 2 L 1 )
Gp α p τ ( G ) α τ ( G ) S { p }
127 α 3 + α + 1 011 1 0 0 1 1 0 0 1 1 1 1 0 0 0 0
228 α 4 + α 2 + α 1 α 1 0 0 1 1 0 0 1 1 0 1 0 0 1 0 1
314 α 4 + α 3 + α 2 + 1 18 α + 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
429 α 3 + 1 2 α 2 0 0 1 1 1 0 0 1 0 1 1 1 0 0 1 0
51 α 5 α 2 + 1 1 1 1 1 0 1 0 1 1 0 0 0 0 0 1 0
615 α 4 + α 3 + α 2 + α + 1 19 α 2 + α 1 0 1 0 0 0 0 0 1 1 0 1 0 1 1 1
77 α 4 + α 2 11 α 2 + α + 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 1 1
830 α 4 + α 3 α 3 0 1 1 1 1 0 1 0 1 1 0 0 0 0 0 1
925 α 4 + α 3 + 1 29 α 3 + 1 1 0 1 1 0 1 1 0 0 0 1 1 0 0 0 1
102 α 2 6 α 3 + α 1 1 1 0 0 0 1 1 0 1 1 0 0 1 0 0
1123 α 3 + α 2 + α + 1 27 α 3 + α + 1 0 0 1 0 1 1 1 1 1 0 0 1 0 1 0 0
1216 α 4 + α 3 + α + 1 20 α 3 + α 2 0 1 0 0 0 0 1 1 1 0 1 1 0 0 1 1
134 α 4 8 α 3 + α 2 + 1 1 0 0 0 1 1 1 1 0 1 0 0 0 0 1 1
148 α 3 + α 2 + 1 12 α 3 + α 2 + α 1 1 0 1 1 0 1 0 0 0 0 1 0 1 1 0
1519 α 2 + α 23 α 3 + α 2 + α + 1 0 0 0 1 0 1 1 0 1 1 1 0 0 1 1 0
16014 α 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
176 α 3 + α 10 α 4 + 1 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1
1826 α 4 + α 2 + α + 1 30 α 4 + α 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0
1913 α 4 + α 3 + α 2 17 α 4 + α + 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
203 α 3 7 α 4 + α 2 1 1 0 0 0 1 1 0 1 0 0 0 1 1 0 1
2118 α + 1 22 α 4 + α 2 + 1 0 0 0 0 1 0 1 0 0 1 1 1 1 1 0 1
2224 α 4 + α 3 + α 2 + α 28 α 4 + α 2 + α 0 1 0 1 1 1 1 1 0 0 1 0 1 0 0 0
2322 α 4 + α 2 + 1 26 α 4 + α 2 + α + 1 1 0 0 1 0 0 1 1 1 1 0 1 1 0 0 0
2417 α 4 + α + 1 21 α 4 + α 3 1 0 0 0 0 1 0 1 0 0 1 1 1 1 1 0
2521 α 4 + α 3 25 α 4 + α 3 + 1 0 1 0 0 1 0 0 1 1 1 0 0 1 1 1 0
265 α 2 + 1 9 α 4 + α 3 + α 0 0 0 1 1 1 0 0 1 0 0 1 1 0 1 1
2712 α 3 + α 2 + α 16 α 4 + α 3 + α + 1 1 1 0 1 0 0 0 0 0 1 1 0 1 0 1 1
289 α 4 + α 3 + α 13 α 4 + α 3 + α 2 1 0 1 1 1 1 0 0 0 1 0 0 1 1 0 0
2910 α 4 + 1 14 α 4 + α 3 + α 2 + 1 0 1 1 1 0 0 0 0 1 0 1 1 1 1 0 0
3020 α 3 + α 2 24 α 4 + α 3 + α 2 + α 0 0 1 0 0 1 0 1 1 1 1 0 1 0 0 1
3111 α 2 + α + 1 15 α 4 + α 3 + α 2 + α + 1 1 1 1 0 1 0 0 1 0 0 0 1 1 0 0 1
Table 6. Primitive polynomials of degree 5 and m such that 1 + α m = α m + 1 .
Table 6. Primitive polynomials of degree 5 and m such that 1 + α m = α m + 1 .
p(x)m
x 5 + x + 1 13
x 5 + x 3 + 1 17
x 5 + x 4 + x 3 + x + 1 18
x 5 + x 4 + x 2 + x + 1 12
x 5 + x 4 + x 3 + x 2 + 1 11
x 5 + x 3 + x 2 + x + 1 19
Table 7. Binomial representation of the generalized sequences for p ( x ) = x 5 + x 2 + 1 .
Table 7. Binomial representation of the generalized sequences for p ( x ) = x 5 + x 2 + 1 .
pGeneralized SequencesBinomial Representation
01 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 n 0
11 1 1 1 0 1 0 1 1 0 0 0 0 0 1 0 n 0 ( n 4 ) + ( n 5 ) + ( n 9 ) + ( n 10 ) + ( n 11 )
21 1 1 0 0 0 1 1 0 1 1 0 0 1 0 0 n 0 + ( n 3 ) + ( n 4 ) + ( n 6 ) + ( n 7 ) + ( n 8 ) + ( n 9 ) + ( n 10 ) + ( n 11 ) + ( n 12 )
31 1 0 0 0 1 1 0 1 0 0 0 1 1 0 1 n 0 + ( n 2 ) + ( n 4 ) + ( n 5 ) + ( n 9 ) + ( n 11 ) + ( n 12 )
41 0 0 0 1 1 1 1 0 1 0 0 0 0 1 1 n 0 + n 1 + n 2 + n 3 + n 5 + n 6 + n 7 + n 8 + n 10
50 0 0 1 1 1 0 0 1 0 0 1 1 0 1 1 n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 10 + n 11 + n 12
60 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 n 2 + n 10 + n 12
70 1 1 0 1 1 0 0 0 0 1 0 0 1 1 1 n 1 + n 2 + n 4 + n 5 + n 9 + n 11 + n 12
81 1 0 1 1 0 1 0 0 0 0 1 0 1 1 0 n 0 + n 2 + n 3 + n 5 + n 6 + n 7 + n 8 + n 10
91 0 1 1 1 1 0 0 0 1 0 0 1 1 0 0 n 0 + n 1 + n 3 + n 5 + n 6 + n 7 + n 8 + n 12
100 1 1 1 0 0 0 0 1 0 1 1 1 1 0 0 n 1 + n 2 + n 3 + n 5 + n 6 + n 7 + n 8 + n 10
111 1 1 0 1 0 0 1 0 0 0 1 1 0 0 1 n 0 + n 3 + n 5 + n 6 + n 7 + n 8 + n 12
121 1 0 1 0 0 0 0 0 1 1 0 1 0 1 1 n 0 + n 2 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 11
131 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 n 0 + n 1
140 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 n 1
151 0 1 0 0 0 0 0 1 1 0 1 0 1 1 1 1 n 0 + n 1 + n 4 + n 5 + n 9 + n 10 + n 11
160 1 0 0 0 0 1 1 1 0 1 1 0 0 1 1 n 1 + n 3 + n 5 + n 6 + n 7 + n 8 + n 12
171 0 0 0 0 1 0 1 0 0 1 1 1 1 1 0 n 0 + n 1 + n 2 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 11
180 0 0 0 1 0 1 0 0 1 1 1 1 1 0 1 n 4 + n 5 + n 9 + n 10 + n 11
190 0 0 1 0 1 1 0 1 1 1 0 0 1 1 0 n 3 + n 5 + n 6 + n 7 + n 8 + n 12
200 0 1 0 0 1 0 1 1 1 1 0 1 0 0 1 n 2 + n 3 + n 5 + n 6 + n 7 + n 8 + n 10
210 1 0 0 1 0 0 1 1 1 0 0 1 1 1 0 n 1 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 10 + n 11 + n 12
221 0 0 1 0 0 1 1 1 1 0 1 1 0 0 0 n 0 + n 1 + n 2 + n 4 + n 5 + n 9 + n 11 + n 12
230 0 1 0 1 1 1 1 1 0 0 1 0 1 0 0 n 2 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 11
240 1 0 1 1 1 1 1 0 0 1 0 1 0 0 0 n 1 + n 4 + n 5 + n 9 + n 10 + n 11
251 0 1 1 0 1 1 0 0 0 1 1 0 0 0 1 n 0 + n 1 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 10 + n 11 + n 12
260 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 n 1 + n 2 + n 10 + n 12
271 1 0 0 1 1 0 0 1 1 1 1 0 0 0 0 n 0 + n 2 + n 10 + n 12
281 0 0 1 1 0 0 1 1 0 1 0 0 1 0 1 n 0 + n 1 + n 2 + n 10 + n 12
290 0 1 1 1 0 0 1 0 1 1 1 0 0 1 0 n 2 + n 4 + n 5 + n 9 + n 11 + n 12
300 1 1 1 1 0 1 0 1 1 0 0 0 0 0 1 n 1 + n 2 + n 3 + n 4 + n 6 + n 7 + n 8 + n 9 + n 11
Table 8. Binomial coefficients n L C i 1 in the different subgroups.
Table 8. Binomial coefficients n L C i 1 in the different subgroups.
n 27 n 26 n 25 n 24
A 1
A 2
A 3
A 4
A 5
A 6
A 7
A 8
B 1
B 2
B 3
B 4
C 1
C 2
D

Share and Cite

MDPI and ACS Style

Cardell, S.D.; Climent, J.-J.; Fúster-Sabater, A.; Requena, V. Representations of Generalized Self-Shrunken Sequences. Mathematics 2020, 8, 1006. https://doi.org/10.3390/math8061006

AMA Style

Cardell SD, Climent J-J, Fúster-Sabater A, Requena V. Representations of Generalized Self-Shrunken Sequences. Mathematics. 2020; 8(6):1006. https://doi.org/10.3390/math8061006

Chicago/Turabian Style

Cardell, Sara D., Joan-Josep Climent, Amparo Fúster-Sabater, and Verónica Requena. 2020. "Representations of Generalized Self-Shrunken Sequences" Mathematics 8, no. 6: 1006. https://doi.org/10.3390/math8061006

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop