Pell Coding and Pell Decoding Methods with Some Applications
Nihal Ta\c{s}, S\"umeyra U\c{c}ar, Nihal Y{\i}lmaz \"Ozg\"ur

TL;DR
This paper introduces new coding and decoding methods based on generalized Pell numbers, establishing relations for error detection and correction, and proposing two blocking algorithms utilizing Pell and generalized Pell numbers.
Contribution
It presents novel Pell-based coding and decoding techniques, along with new algorithms for data blocking, expanding the applications of Pell numbers in coding theory.
Findings
New Pell coding and decoding methods developed.
Relations among code matrix elements for error detection and correction established.
Two new blocking algorithms using Pell numbers introduced.
Abstract
We obtain a new coding and decoding method using the generalized Pell -numbers. The relations among the code matrix elements, error detection and correction have been established for this coding theory. We give two new blocking algorithms using Pell numbers and generalized Pell -numbers.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Coding theory and cryptography · Fractal and DNA sequence analysis
Pell Coding and Pell Decoding
Methods with Some Applications
NİHAL TAŞ
Balıkesir University
Department of Mathematics
10145 Balıkesir, TURKEY
,
SÜMEYRA UÇAR
Balıkesir University
Department of Mathematics
10145 Balıkesir, TURKEY
and
NİHAL YILMAZ ÖZGÜR
Balıkesir University
Department of Mathematics
10145 Balıkesir, TURKEY
Abstract.
We obtain a new coding and decoding method using the generalized Pell -numbers. The relations among the code matrix elements, error detection and correction have been established for this coding theory. We give two new blocking algorithms using Pell numbers and generalized Pell -numbers.
Key words and phrases:
Coding/decoding method, Pell number, generalized Pell -number, blocking algorithm.
2010 Mathematics Subject Classification:
68P30, 14G50, 11T71, 11B39.
*Corresponding author: N. TAŞ
Balıkesir University, Department of Mathematics, 10145 Balıkesir, TURKEY
e-mail: [email protected]
1. Introduction
Recently, in [2], the generalized Pell -numbers have been defined by the following recurrence relations
[TABLE]
with the initial terms
[TABLE]
For , the generalized Pell -number corresponds to the -th classical Pell number defined as
[TABLE]
with the initial terms
[TABLE]
For the basic properties of these numbers, one can see [2] and [3].
It is known that and are the roots of the characteristic equation of the Pell recurrence relation . Using these roots it can be given the Binet formula for the Pell number by
[TABLE]
with
[TABLE]
The Pell -matrix of order is given by the following form:
[TABLE]
The -th power of the -matrix and its determinant are given by
[TABLE]
and
[TABLE]
In [2], it was introduced the matrix in the following form
[TABLE]
and computed
[TABLE]
Using the matrices given in the equations (1.3) and (1.4), we get
[TABLE]
for .
Recently, Fibonacci coding theory has been introduced and studied in many aspects (see [1], [4], [6], [7], [8] and [11] for more details). For example, in [7], A. P. Stakhov presented a new coding theory using the generalization of the Cassini formula for Fibonacci -numbers and -matrices. Later B. Prasad developed a new coding and decoding method followed from Lucas matrix [5]. More recently it has been obtained a new coding/decoding algorithm using Fibonacci -matrices called as “Fibonacci Blocking Algorithm” [9]. In [10], using -matrices and Lucas numbers, it has been given “Lucas Blocking Algorithm” and the “Minesweeper Model” related to Fibonacci -matrices and -matrices.
Motivated by the above studies, the main purpose of this paper is to develop a new coding and decoding method using the generalized Pell -numbers. The relations among the code matrix elements, error detection and correction have been established for this coding theory with . As an application, we give two new blocking algorithms using Pell and generalized Pell -numbers.
2. Pell Coding and Decoding Method
In this section, we present a new coding and decoding method using the generalized Pell -numbers. In our method, the nonsingular square matrix with order , where corresponds to our message matrix. We consider the matrix of order as coding matrix and its inverse matrix as a decoding matrix. We introduce Pell coding and Pell decoding with transformations
[TABLE]
and
[TABLE]
respectively, where is a code matrix.
Now we give an example of Pell coding and decoding method. Let be a message matrix of the following form:
[TABLE]
where are positive integers.
Let and in order to construct the coding matrix :
[TABLE]
Then we find inverse of :
[TABLE]
Now, we calculate the code matrix .
[TABLE]
where , , and .
Finally, the code matrix is sent to a channel, the message matrix can be obtained by decoding as the following way
[TABLE]
Notice that the relation between the code matrix and the message matrix is
[TABLE]
3. The Relationships between the Code Matrix Elements for
We write and as follows:
[TABLE]
and
[TABLE]
for . Because are positive integers, we get
[TABLE]
[TABLE]
[TABLE]
[TABLE]
Using (3.3) and (3.4), we find
[TABLE]
[TABLE]
From the inequalities (3.7) and (3.8), we obtain
[TABLE]
For , we obtain the similar relations given in (3.9).
4. Error Detection/Correction for Pell Coding and Decoding Method
Because of the reasons arising in the channel, some errors may be occur in the code matrix So we try to determine and correct these errors using the properties of determinant in this process. Let and the message matrix is given by
[TABLE]
We know that the code matrix and From the relationship between determinants of and if is an odd number, we have
[TABLE]
and if is an even number, we have
[TABLE]
The new method of the error detection is an application of the matrix. The basic idea of this method depends on calculating the determinants of and . Comparing the determinants obtained from the channel, the receiver can decide whether the code message is true or not.
Actually, we cannot determine which element of the code message is damaged. In order to find damaged element, we suppose different cases such as single error, two errors etc. Now, we consider the first case with a single error in the code matrix . We can easily obtain that there are four places where single error appear in
[TABLE]
where is the damaged element. To check the above four different cases, we can use the following relations
[TABLE]
[TABLE]
[TABLE]
[TABLE]
where a possible single error is the element given in the relation 4.5
Using the above relations, we have
[TABLE]
[TABLE]
[TABLE]
[TABLE]
Since the elements of message matrix are positive integers, we should find integer solutions of the equations from 4.9 to 4.12. If there are not integer solutions of these equations, we find that our cases related to a single error is incorrect or an error can be occurred in the checking element “”. If is incorrect, we use the relations given in 3.9 to check a correctness of the code matrix .
Similarly, we can check the cases with double errors in the code matrix . Let us consider the following case with double error in
[TABLE]
where are the damaged elements of Using the relation
[TABLE]
we can write following equation for the matrix given in 4.13
[TABLE]
Also, we know the following relation between and
[TABLE]
It is clear that the equation 4.14 is a Diophantine equation. Because there are many solutions of Diophantine equations, we should choose the solutions satisfying the above checking relation 4.15 Using the similar approach, we can correct the triple errors in the code matrix such that
[TABLE]
where and are damaged elements of .
Consequently, our method depends on confirmation of various cases about damaged elements of using the checking element and checking relation Our correctness method permits us to correct cases among the cases, because our method is inadequate for the case with four errors. So we can say that correction ability of our method is
5. Blocking Methods As an Application of Pell Numbers and Generalized
Pell -Numbers
In this section we introduce new coding/decoding algorithms using Pell and generalized Pell -numbers. We put our message in a matrix of even size adding zero between two words and end of the message until we obtain the size of the message matrix is even. Dividing the message square matrix of size into the block matrices, named (), of size , from left to right, we can construct a new coding method.
Now we explain the symbols of our coding method. Assume that matrices and are of the following forms:
[TABLE]
We use the matrix given in (1.2) and rewrite the elements of this matrix as P^{n}=\left[\begin{array}[]{cc}p_{1}&p_{2}\\ p_{3}&p_{4}\end{array}\right]. The number of the block matrices is denoted by . According to , we choose the number as follows:
[TABLE]
Using the chosen , we write the following character table according to (this table can be extended according to the used characters in the message matrix). We begin the “” for the last character.
[TABLE]
Now we explain the following new coding and decoding algorithms.
Pell Blocking Algorithm
Coding Algorithm
Step 1. Divide the matrix into blocks .
Step 2. Choose .
**Step 3. **Determine .
Step 4. Compute .
Step 5. Construct .
**Step 6. **End of algorithm.
**Decoding Algorithm **
Step 1. Compute .
Step 2. Determine .
**Step 3. **Compute .
Step 4. Compute .
Step 5. Solve .
**Step 6. **Substitute for .
Step 7. Construct .
Step 8. Construct .
Step 9. End of algorithm.
In the following example we give an application of the above algorithm for .
Example 5.1**.**
Let us consider the message matrix for the following message text
[TABLE]
Using the message text, we get the following message matrix
[TABLE]
Coding Algorithm:
Step 1. We can divide the message text of size into the matrices, named , from left to right, each of size is
[TABLE]
Step 2. Since , we calculate . For , we use the following “letter table” for the message matrix
[TABLE]
Step 3. We have the elements of the blocks as follows:
[TABLE]
Step 4. Now we calculate the determinants of the blocks
[TABLE]
Step 5. Using Step 3 and Step 4 we obtain the following matrix
[TABLE]
**Step 6. End of algorithm.
Decoding algorithm:**
Step 1. By 1.2 we know that
[TABLE]
Step 2. The elements of are denoted by
[TABLE]
Step 3. We compute the elements to construct the matrix
[TABLE]
Step 4. We compute the elements to construct the matrix
[TABLE]
Step 5. We calculate the elements
[TABLE]
[TABLE]
[TABLE]
[TABLE]
Step 6. We rename as follows
[TABLE]
Step 7. We construct the block matrices
[TABLE]
Step 8. We obtain the message matrix
[TABLE]
Step 9. End of algorithm.
Now we give an application of generalized Pell -numbers using blocking method. Assume that matrices and are of the following forms:
[TABLE]
We use the matrix defined in (1.4) and rewrite the elements of this matrix as G_{n}=\left[\begin{array}[]{cc}g_{1}&g_{2}\\ g_{3}&g_{4}\end{array}\right]. The number of the block matrices is denoted by . According to , we choose the number as follows:
[TABLE]
Generalized Pell Blocking Algorithm
Coding Algorithm
We consider coding algorithm like as the Pell Blocking coding algorithm.
**Decoding Algorithm **
Step 1. Compute .
Step 2. Determine .
**Step 3. **Compute .
Step 4. Compute .
Step 5. Solve .
**Step 6. **Substitute for .
Step 7. Construct .
Step 8. Construct .
Step 9. End of algorithm.
We choose in the following example.
Example 5.2**.**
Let us consider the message matrix for the following message text
[TABLE]
Using the message text, we get the following message matrix
[TABLE]
Coding Algorithm:
Step 1. We can divide the message text of size into the matrices, named , from left to right, each of size is
[TABLE]
Step 2. Since , we calculate . For , we use the following “letter table” for the message matrix
[TABLE]
Step 3. We have the elements of the blocks as follows:
[TABLE]
Step 4. Now we calculate the determinants of the blocks
[TABLE]
Step 5. Using Step 3 and Step 4 we obtain the following matrix
[TABLE]
**Step 6. End of algorithm.
Decoding algorithm:**
Step 1. Using the equation 1.4 we have
[TABLE]
and
[TABLE]
Step 2. The elements of are denoted by
[TABLE]
Step 3. We compute the elements to construct the matrix
[TABLE]
Step 4. We compute the elements to construct the matrix
[TABLE]
Step 5. We calculate the elements
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
Step 6. We rename as follows
[TABLE]
Step 10. We construct the block matrices
[TABLE]
Step 11. We obtain the following message matrix
[TABLE]
Step 9. End of algorithm.
6. Conclusion
We have presented two new coding and decoding algorithms using the generalized Pell -numbers. Combining these algorithms together, we can generate a new mixed algorithm such as “Minesweeper model” introduced in [10]. Furthermore it is possible to develop new mixed models using Fibonacci and Lucas blocking algorithms given in [9] and [10].
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] M. Basu, B. Prasad, The generalized relations among the code elements for Fibonacci coding theory, Chaos, Solitons Fractals 41 (2009), no. 5, 2517–2525.
- 2[2] E. Kılıç, The generalized Pell ( p , i ) 𝑝 𝑖 (p,i) -numbers and their Binet formulas, combinatorial representations, sums, Chaos, Solitons Fractals 40 (2009), 2047–2063.
- 3[3] T. Koshy, Pell and Pell-Lucas numbers with applications , Springer, Berlin (2014).
- 4[4] S. Prajapat, A. Jain, R. S. Thakur, A Novel Approach For Information Security With Automatic Variable Key Using Fibonacci Q -Matrix, IJCCT 3 (2012), no. 3, 54–57.
- 5[5] B. Prasad, Coding Theory on Lucas p 𝑝 p Numbers, Discrete Mathematics , Algorithms and Applications 8 (2016), no.4, 17 pages.
- 6[6] A. Stakhov, V. Massingue, A. Sluchenkov, Introduction into Fibonacci Coding and Cryptography, Osnova, Kharkov (1999).
- 7[7] A. P. Stakhov, Fibonacci matrices, a generalization of the Cassini formula and a new coding theory, Chaos, Solitons Fractals 30 (2006), no. 1, 56–66.
- 8[8] B. S. Tarle, G. L. Prajapati, On the information security using Fibonacci series, International Conference and Workshop on Emerging Trends in Technology (ICWET 2011)-TCET, Mumbai, India.
