Next Article in Journal
Canonical F-Planar Mappings of Spaces with Affine Connection onto m-Symmetric Spaces
Previous Article in Journal
Rock Thin Section Image Identification Based on Convolutional Neural Networks of Adaptive and Second-Order Pooling Methods
Previous Article in Special Issue
Admissible Classes of Multivalent Meromorphic Functions Defined by a Linear Operator
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On Horadam Sequences with Dense Orbits and Pseudo-Random Number Generators

1
School of Computing and Engineering, University of Derby, Derby DE22 1GB, UK
2
Department of Mathematics, Faculty of Exact Sciences, “1 Decembrie 1918” University of Alba Iulia, 510009 Alba Iulia, Romania
3
Department of Computer Science, University of Huddersfield, Huddersfield HD1 3DH, UK
4
“Simion Stoilow” Institute of Mathematics, Romanian Academy, P.O. Box 1-764, 014700 Bucharest, Romania
5
Academy of the Romanian Scientists, Str. Ilfov, Nr. 3, 50044 Bucharest, Romania
6
Faculty of Economics and Business Administration, Sofia University “St. Kliment Ohridski”, 125 Tzarigradsko Chaussee Blvd., Bl. 3, 1113 Sofia, Bulgaria
7
Faculty of Mathematics and Computer Science, Transilvania University of Braşov, Iuliu Maniu Street 50, 500091 Braşov, Romania
*
Author to whom correspondence should be addressed.
Mathematics 2023, 11(5), 1244; https://doi.org/10.3390/math11051244
Submission received: 11 October 2022 / Revised: 25 February 2023 / Accepted: 2 March 2023 / Published: 4 March 2023
(This article belongs to the Special Issue Advances on Complex Analysis)

Abstract

:
Horadam sequence is a general recurrence of second order in the complex plane, depending on four complex parameters (two initial values and two recurrence coefficients). These sequences have been investigated over more than 60 years, but new properties and applications are still being discovered. Small parameter variations may dramatically impact the sequence orbits, generating numerous patterns: periodic, convergent, divergent, or dense within one dimensional curves. Here we explore Horadam sequences whose orbit is dense within a 2D region of the complex plane, while the complex argument is uniformly distributed in an interval. This enables the design of a pseudo-random number generator (PRNG) for the uniform distribution, for which we test periodicity, correlation, Monte Carlo estimation of π , and the NIST battery of tests. We then calculate the probability distribution of the radii of the sequence terms of Horadam sequences. Finally, we propose extensions of these results for generalized Horadam sequences of third order.

1. Introduction

Let a , b , p , q be arbitrary complex numbers. The sequence defined by the relation
w n = p w n 1 + q w n 2 ( n 2 ) , w 0 = a , w 1 = b ,
is often called a Horadam sequence ( w n ) n 0 , after Alwyn F. Horadam who initiated the detailed investigations regarding this sequence in the 1960s [1,2,3], establishing a great number of identities, properties, and generalizations.
At the time when it was formulated in this way by Horadam, this sequence had a significant impact, bridging the gap between the classical sequences studied by Édouard Lucas, and the application of many techniques from the special functions of mathematical physics [4]. Many of the results, new concepts and applications inspired by this research direction over sixty years have been summarised in a number of review papers, such as for example those by Larcombe et al. [5], or the update by Larcombe [6].
Numerous generalizations of the Horadam sequences have been investigated by many authors, as for example the k-Horadam introduced in 2012 by Yazlik [7] was recently applied to coding theory by Srividhya and Rani [8], or the bi-periodic Horadam sequence studied by Anđelić et al. [9], in relation to perturbed Toeplitz matrices (themselves used to enumerate the P-vertices of graphs [10]). Other related results and further properties can be found in classical or more recent papers [11,12,13,14,15,16].
Many classical integer sequences are obtained as particular cases: Fibonacci numbers for ( a , b ) = ( 0 , 1 ) and ( p , q ) = ( 1 , 1 ) , Lucas numbers for ( a , b ) = ( 2 , 1 ) and ( p , q ) = ( 1 , 1 ) , while Pell numbers for ( a , b ) = ( 0 , 1 ) and ( p , q ) = ( 2 , 1 ) . These sequences (and over 350,000 others) are included in the On-Line Encyclopedia of Integer Sequences (OEIS) [17], together with numerous properties and applications [18]. As opposed to such classical integer sequences which are traditionally investigated via their algebraic or combinatorial properties, the orbits of complex Horadam sequences can be plotted in the complex plane, to produce a multitude of interesting geometric patterns.
The Horadam sequence terms defined by the recurrence (1) can be written explicitly using the zeros z 1 , z 2 of the quadratic characteristic polynomial P ( x ) = x 2 p x q , called generators. These are linked to p and q by Vieta’s relations p = z 1 + z 2 and q = z 1 z 2 , and when z 1 z 2 one has
w n = A z 1 n + B z 2 n ,
where A and B calculated from the initial conditions are given by
A = a z 2 b z 2 z 1 , B = b a z 1 z 2 z 1 .
This formulation allowed elegant characterization [19] (and enumeration) of periodic Horadam orbits, obtained when z 1 = e 2 π i p 1 / k 1 and z 2 = e 2 π i p 2 / k 2 are distinct roots of unity, with p 1 , p 2 , k 1 , k 2 natural numbers. These have been enumerated in [20], while the dual symmetry was studied in [21]. Non-periodic Horadam patterns were presented in ([22], Chapter 5), with numerous examples of orbits dense within one-dimensional curves, or bi-dimensional regions of the complex plane, along with the sequence of ratios [23].
A natural but less commonly studied generalization is represented by the third-order Horadam sequences, defined by the relation
w n = p w n 1 + q w n 2 + r w n 3 , ( n 3 ) w 0 = a , w 1 = b , w 2 = c ,
where a , b , c and p , q , r are arbitrary complex numbers. Explicit formulae, properties, and geometric patterns for these sequences are given in ([22], Chapter 6.4) and [24,25].
Certain particular non-periodic dense Horadam patterns ( | A | = | B | ) were used by Bagdasar and Chen in the design of a novel pseudo-random number generator (PNRG) which performed well against other algorithms [26]. A proof of the uniformity of the complex argument of classical Horadam sequences was provided in ([22], Chapter 5.7).
Random number generators play an important role in many practical algorithms for statistical sampling or simulation. An illustrative application is the numerical solution of complicated integrals via Monte Carlo methods. As the convergence rate of a numerical algorithm is dependent on the characteristics of a distribution, one would ideally draw samples from a probability distribution resembling the underlying processes. Some of the common PRNG implementations involve Linear Congruences or Lagged Fibonacci Sequences (see, e.g., [27,28]). Other modern approaches employ ratios of integers [29], while the performance of PNRGs is usually tested against including period, uniformity and correlation [30], Monte Carlo simulations, or by statistical tests, such as NIST published by the National Institute of Standards and Technology [31], detailed in [32].
In this paper we study certain Horadam sequences of second and third order whose orbits is dense within a two-dimensional region of the complex plane, representing an annulus between two circles centred in the origin, of radii
| | A | | B | | = R 1 < R 2 = | A | + | B | ,
with A, B given by (3). The sequence of complex arguments in these cases located the interval [ π , π ] is scaled to the interval [ 0 , 1 ] and tested as a PRNG for the uniform distribution over this interval.
For this PRNG we will explore the period, uniformity, correlation, and approximate the value of π using Monte Carlo simulations (contrasting the performance of this algorithms against that of some classical pseudo-random number generators), and also evaluate the results from NIST. We extend the results from [26] (where apart from some simulations, proofs were only provided for the particular case | A | = | B | ) and ([22], Chapter 5.7) (where the theory for the arguments when | A | | B | was formulated). Additionally, we investigate for the first time the probability density for the sequence of radii of Horadam sequence terms, proving that generalized Horadam sequences of third-order and higher are also densely distributed within a circle of known radius.
The structure of the paper is as follows. Section 2 is dedicated to methodology, where we present basic properties of the (generalized) Horadam sequences, linear independence results, dense Horadam orbits, and PNRG testing. The performance of two PNRGs based on complex arguments of Horadam sequences is evaluated in Section 3 ( | A | = | B | ) and Section 4 ( | A | | B | ). A similar study is carried out for third-order Horadam sequences in Section 5, while the probability density of the radii is discussed in Section 6. We end with some suggestions for further research.

2. Methodology

In this section we first discuss some basic notations, and establish the geometric bounds of periodic and stable orbits of Horadam sequences. We then present some density and uniformity results, and finally we give basic information about the testing of pseudo-random number generators. The graphs in this paper have been generated in Matlab®, with the PRNG testing implemented in Python.

2.1. Geometric Properties of Horadam Sequences

For convenience we will use the notations
S = S ( 0 ; 1 ) = { z C | z | = 1 } , S ( z 0 ; r ) = { z C | z z 0 | = r } U = U ( 0 ; 1 ) = { z C | z | < 1 } , U ( z 0 ; r ) = { z C | z z 0 | < r } U ( 0 ; r 1 , r 2 ) = { z C r 1 < | z | < r 2 } .
for the unit circle, the unit disc, and for the annulus of radii r 1 < r 2 centered in the origin. For z 1 z 2 , the orbit of the Horadam sequence ( w n ) n 0 given by (2) will:
  • Converge when max { | z 1 | , | z 2 | } < 1 ,
  • Diverge when max { | z 1 | , | z 2 | } > 1 ,
  • Be stable when max { | z 1 | , | z 2 | } = 1 .
When | z 1 | = | z 2 | = 1 , the resulting Horadam orbit (including periodic) satisfies
U ( 0 ; | | A | | B | | , | A | + | B | ) = { z C | | A | | B | | | z | | A | + | B | } .
These boundaries represent an important feature of the Horadam orbits and are closely related to the probability density functions.

2.2. Linear Independence, Density and Uniform Distributions

We here present results on linear independence over Q , density of sequences, and PRNG testing. Denote by x = max { m Z m x } and { x } = x x the floor and fractional parts of x (this is periodic, satisfying { x + 1 } = { x } , x R ), respectively.
Definition 1. 
For k 1 , it is said that the numbers x 1 , , x k R are linearly dependent over Q (or Z ) if there are p 1 , , p k Q , satisfying
a 1 x 1 + a 2 x 2 + + a k x k = 0 , and ( a 1 , , a k ) ( 0 , , 0 ) .
If (6) only holds for ( a 1 , , a k ) = ( 0 , , 0 ) , then x 1 , , x k are called linearly independent.
Example 1. 
For k = 2 , when 1 and x 1 are linear independent, x 1 R Q . For k = 3 , if p is prime, then ( 1 , p 3 , p 2 3 ) is linearly independent over Z . Clearly, x 1 , , x k are linearly dependent over Q , if and only if they are linearly dependent over Z .
We now recall some well-known density results by Kronecker and Weyl.
Theorem 1 
(Theorem 339, [33]). If x is irrational, then ( { n x } ) n 0 is dense in [ 0 , 1 ] .
This result was further generalized by Weyl (see also ([33], Theorem 445)).
Theorem 2 
(Weyl, [34]). If x is irrational, then the sequence ( { n x } ) n 0 , n N is uniformly distributed in [ 0 , 1 ] .
Kronecker’s lemma has the following extension to higher dimensions.
Theorem 3 
(Theorem 443, [33]). If k 2 and 1 , x 1 , x 2 , x k are linearly independent, then the sequence ( { n x 1 } , { n x 2 } , , { n x k } ) n 0 is dense in the unit hypercube [ 0 , 1 ] k .
In particular, when k = 2 and k = 3 the following results are obtained.
Proposition 1. 
Let x 1 , x 2 R . If ( 1 , x 1 , x 2 ) are linearly independent over Q , then the sequence { n x 1 } , { n x 2 } n 0 is dense within the unit square [ 0 , 1 ] × [ 0 , 1 ] .
Proposition 2. 
Let x 1 , x 2 , x 3 R . If ( 1 , x 1 , x 2 , x 3 ) are linearly independent over Q , then the sequence { n x 1 } , { n x 2 } , { n x 3 } n 0 is dense within the unit cube [ 0 , 1 ] × [ 0 , 1 ] × [ 0 , 1 ] .

2.3. Dense Horadam Orbits

The dimension of the closure of Horadam orbits can be zero (for periodic, convergent, or divergent orbits), one (orbits dense within closed curves), or two (in which case the orbits are dense in the region between two circles centered in the origin).
Based on Section 2.1, the orbits are stable (neither convergent, nor divergent), so one has | z 1 | = | z 2 | = 1 . For convenience, the generators z 1 , z 2 and the coefficients A and B given by (3) will be parametrised as
z 1 = e 2 π i x 1 , z 2 = e 2 π i x 2 , A = R 1 e i ϕ 1 , B = R 2 e i ϕ 2 .
The terms w n of the Horadam sequence are given in polar form by
w n = r n e i θ n = A z 1 n + B z 2 n = R 1 e i ( ϕ 1 + 2 π n x 1 ) + R 2 e i ( ϕ 2 + 2 π n x 2 ) ,
where x 1 , x 2 , ϕ 1 , ϕ 2 , R 1 , R 2 and θ n , r n ( n 0 ) are real numbers, with R 1 , R 2 , r n 0 .
The condition below ensures that the orbits are dense within a 2D region.
Theorem 4. 
Let a , b C and x 1 , x 2 R . If 1 , x 1 , x 2 are linearly independent over Q , then the Horadam sequence with generators z 1 = e 2 π i x 1 z 2 = e 2 π i x 2 and seeds w 0 = a and w 1 = b is dense in the set U ( 0 ; | | A | | B | | , | A | + | B | ) , with A and B computed by Formula (3).
Proof. 
We show that Horadam sequence terms can become arbitrarily close to an arbitrary point w * = r e i θ in the interior of the annulus U ( 0 ; | R 1 R 2 | , R 1 + R 2 ) . First, notice that there exist real numbers θ 1 and θ 2 satisfying
w * = r e i θ = R 1 e i ( ϕ 1 + 2 π φ 1 ) + R 2 e i ( ϕ 2 + 2 π φ 2 ) .
Indeed, this can be proved by the identity
U ( 0 ; R 1 ) U ( 0 ; R 2 ) = U ( 0 ; | R 1 R 2 | , R 1 + R 2 ) ,
where ⊕ is the Minkovski sum of two sets.
We now prove that there is w n sufficiently close to w * , i.e., for ε > 0 there is a natural number n such that | w n w * | < ε . By the continuity of the functions involved, this holds if one can find n such that | n x 1 φ 1 | < δ and | n x 2 φ 2 | < δ , for a small δ > 0 .
Since ( 1 , x 1 , x 2 ) are linearly independent over Q , by Proposition 1 the sequence { n x 1 } , { n x 2 } n 0 is dense within [ 0 , 1 ] × [ 0 , 1 ] , so there are terms w n arbitrarily close to w * , i.e., the sequence ( w n ) n 0 is dense in the annulus U ( 0 , | | A | | B | | , | A | + | B | ) . □

2.4. Complex Arguments of Horadam Sequences

For some dense Horadam sequences, the sequence of complex arguments ( θ n ) n 0 of the Horadam sequence ( w n ) n 0 in (8) is uniformly distributed in the interval [ π , π ] . The normalised version of this sequence defined by
θ ˜ n = θ n + π 2 π , n = 0 , 1 , ,
will be uniformly distributed in the interval [ 0 , 1 ] , in this case. This inspires the definition of a PNRG based on dense Horadam sequences.

2.5. Testing Pseudo-Random Number Generators

We will use some tests to evaluate randomness of the PNRG defined by (10).
(1)
Periodicity. Many PNRGs, such as Lagged Fibonacci Sequences, are in fact using periodic sequences with a long period (see, e.g., [27,28]) Since our sequences will actually be non-periodic, this feature does not require testing.
(2)
Autocorrelation. This property is tested by plotting by the sequence ( x k , x k + 1 ) k 0 , within the unit square [ 0 , 1 ] × [ 0 , 1 ] . Good PRNGs would provide a good cover.
(3)
Monte Carlo simulation of π . For two finite sequences x n , y n [ 0 , 1 ] , n = 1 , , N given by the algorithm, we count the number m N of points ( x n , y n ) , n = 1 , , N , falling within the unit circle U, i.e., they satisfy the inequality x n 2 + y n 2 1 . Based on simple area calculations, the number 4 m N N is used as an approximation for π .
(4)
NIST tests. These are used to detect the deviations of a binary sequence from randomness. We first generate a finite Horadam sequence ( w n ) n = 1 N , then the normalised complex arguments ( a n ) n = 1 N (type double) are written as a sequence of binary numbers. We apply the NIST tests which consider the null hypothesis ( H 0 ) that the sequence is randomly generated, and the alternative hypothesis ( H a ). Using the p-value, each test estimates whether the sequence is random (when we say the PNRG passes the test) or non-random. For more technical information one can consult the NIST documentation [31], or the detailed analysis in [32].

3. Testing Complex Arguments of Horadam Sequences: The Case |A| = |B|

In the particular case when | A | = | B | , the orbit is dense within the disk centred in the origin having radius 2 | A | , as shown in Figure 1 depicting the sequence obtained for the parameter values r 1 = r 2 = 1 , x 1 = π 5 , x 2 = e 2 4 and a = 1 + 1 3 i , b = 1.5 a e π ( x 1 + x 2 ) .
Using the notations (7), When | A | = | B | = R > 0 , the relation (8) reduces to
w n = r n e i θ n = R e i ( ϕ 1 + 2 π n x 1 ) + e i ( ϕ 2 + 2 π n x 2 ) ,
hence the sequence of arguments for ( w n ) n 0 is given by
θ n = ϕ 1 + ϕ 2 2 + 2 π n ( x 1 + x 2 ) .
For 1, x 1 , x 2 linearly independent over Z , the sequence of arguments θ n is uniformly distributed in the interval [ π , π ] , and in particular, it is aperiodic.

3.1. Uniform Distribution and Autocorrelation of Arguments

The sequence of normalised arguments θ ˜ n defined by (10) is uniformly distributed in the interval [ 0 , 1 ] , as illustrated in Figure 2a. For good PNRGs generators, the 2D diagrams of normalised arguments ( θ ˜ n , θ ˜ n + 1 ) would uniformly cover the unit square. However, Figure 2b suggests that consecutive arguments are highly correlated.

3.2. Mixing Arguments and Monte Carlo Based Methods

To address the autocorrelation issue, we approximate π using complex arguments of two Horadam sequences ( w n 1 ) n 0 and ( w n 2 ) n 0 for which | A | = | B | in Formula (8). The parameters ( x 1 , x 2 , a , b ) generating the sequences in (7) are
w n 1 : x 1 = e 2 , x 2 = e 2 4 , a = 1 + 1 3 i , b = 1.5 a e π ( x 1 + x 2 )
w n 2 : x 1 = 3 5 , x 2 = π 4 , a = 1 + 2 3 i , b = 1.5 a e π ( x 1 + x 2 ) ,
where the orbit of ( w n 1 ) n 0 was plotted in Figure 1. We denote the normalised arguments ( θ n 1 ) n 0 , ( θ n 2 ) n 0 of sequences ( w n 1 ) n 0 , ( w n 2 ) n 0 by x n : = θ n 1 , y n : = θ n 2 , n = 0 , 1 , .
We now calculate points ( x n , y n ) , n = 1 , , N in the unit square [ 0 , 1 ] × [ 0 , 1 ] , and denote by m ( N ) how many points fall inside the unit circle, i.e., x n 2 + y n 2 1 . The formula 4 m ( N ) N approximates π , with values expected to improve for larger N. For example, in the simulation shown in Figure 3a, the sample size is N = 1000 and there are m N = 794 points satisfying x n 2 + y n 2 1 , n = 1 , , N . One obtains
m ( N ) N = 794 1000 = 0.794 and π 4 m ( N ) N = 3.1760 .
The value significantly improves with the increase in the number of sequence terms, to 3.1412 for N = 10 4 (depicted in Figure 3b) and to 3.1416 for N = 10 6 .
In Table 1, we estimate the error 4 m ( N ) N π , N = 10 k , k = 1 , , 7 terms, for points ( x n , y n ) , n = 1 , , N computed by Multiplicative Lagged Fibonacci with period 2 32 (MTF), Mersenne Twister (MT), and Horadam sequences with | A | = | B | and | A | | B | .
One may notice that the convergence is not monotonic, but the Horadam based PRNG results are comparable, or sometimes exceeds the other simulations, for | A | = | B | .
A more detailed evaluation of the PNRG in this particular test was provided in [26], where it was tested against approximations of π obtained from Multiplicative Lagged Fibonacci and the Mersenne Twister pseudo-random number generators implemented in Matlab (the latter is the default random number generator).

4. Testing Complex Arguments of Horadam Sequences: The Case |A| ≠ |B|

The focus of this section is the case | A | | B | . By Theorem 4, when the real numbers 1 , x 1 , x 2 are linearly independent over Q , the orbit of the Horadam sequence ( w n ) n 0 given by Formula (8) is dense within the region between two concentric circles centred in the origin, having radii | | A | | B | | and | A | + | B | . An example is shown in Figure 4, where r 1 = r 2 = 1 , x 1 = 2 3 , x 2 = e 15 and a = 2 + 2 3 i , b = 3 + i .
As the sequence ( w n ) n 0 is aperiodic, for the normalised arguments θ ˜ n defined by (10) we will discuss the autocorrelation, approximations of π , and also the randomness of the sequence θ ˜ n evaluated as a PRNG by the NIST tests.

4.1. Autocorrelation of Arguments

The autocorrelation ( θ ˜ n , θ ˜ n + 1 ) for | A | | B | is depicted in Figure 5. One can notice that the arguments look uniformly distributed, with better covering than in Figure 2.

4.2. Evaluation of the PNRG by the NIST Tests

To evaluate the suitability of our proposed method as a PRNG, we carried out randomness tests specified by the National Institute of Standards and Technology (NIST) on the sequence of normalised complex arguments θ ˜ n given by (10), for two examples.
These tests were performed on two second order Horadam sequences generated by Formula (1). The proposed PRNG was implemented in C++ on an x64 processor architecture. IEEE 754 Double precision floating point format were used to represent the real and imaginary part of complex numbers. The storage complexity for our PRNG is O ( N ) , where N denotes the order of the Horadam sequence used by the generator.
The two sequences are generated by the configurations ( x 1 , x 2 , a , b ) below:
w n 1 : x 1 = 2 3 , x 2 = e 15 , a = 2 + 2 3 i , b = 3 + i
w n 2 : x 1 = 2 3 , x 2 = 5 15 , a = 2 + 2 3 i , b = 3 + i .
Calculations use the recurrence Formula (1), where w 0 = a , w 1 = b , p = z 1 + z 2 , and q = z 1 z 2 , with z 1 , z 2 computed from (7). In our implementation, this second order generator used 64 bytes of memory to store two coefficients p and q and two initial seeds w 0 and w 1 . Notice that the sequence ( w n 1 ) n 0 given by (16) was depicted in Figure 4.
For each of these sequences we generate 10,000 terms, converting the floating point values into their corresponding 64-bit binary forms for the randomness tests.
Table 2 and Table 3 indicate that out of the first 14 NIST tests, the proposed PRNG passes
  • 05. Binary Matrix Rank Test.
  • 10. Linear Complexity Test.
  • 11. Serial test (second part).
While these 14 tests agree on these two sequences, it would be expected that the results may slightly differ for other parameter values.
The random excursion tests on both sequences shown promising results as seen in Table 4 and Table 5, where apart from ( w n 2 ) n 0 evaluated at state + 3 which suggested that the sequence was Non-Random, all the other tests concluded that the sequences are Random. We expect that different results may be obtained for other parameter values.

5. The Case of Third-Order Horadam Sequences

We now test the design of a PRNG based on generalized Horadam sequences of third order. Let us first establish some theoretical results. The characteristic equation of the third-order sequence ( w n ) n 0 described by the relation (4) is the cubic
Q ( x ) = x 3 p x 2 q x r = x z 1 x z 2 x z 3 ,
whose roots parametrised as z 1 = r 1 e 2 π i x 1 , z 2 = r 2 e 2 π i x 2 , z 3 = r 3 e 2 π i x 3 will be called generators, linked to the coefficients p, q, and r of the recursion by Vieta’s relations
p = z 1 + z 2 + z 3 , q = z 1 z 2 + z 2 z 3 + z 1 z 3 , r = z 1 z 2 z 3 ,
When the generators z 1 , z 2 , and z 3 are distinct, the general term is given by the formula
w n = r n e i θ n = A z 1 n + B z 2 n + C z 3 n ,
where the constants A, B, and C can be obtained from (19) and the initial conditions
w 0 = A + B + C = a , w 1 = A z 1 + B z 2 + C z 3 = b , w 2 = A z 1 2 + B z 2 2 + C z 3 2 = c ,
where the seeds a, b, and c are given complex numbers. For more details on these calculations and explicit formulae for A, B, and C one can check [24,25].
An atlas of general third-order complex linear recurrences is given in ([22], Chapter 6). Similarly to the classical Horadam sequences the orbits can be dense when the generators are located on the unit circle, i.e., r 1 = r 2 = r 3 = 1 , and when 1 , x 1 , x 2 , x 3 are linearly independent over Q (see Proposition 2).
In Figure 6a we illustrate such an example. The sequence ( w n ) n 0 is computed using the recurrence Formula (4), for the recurrence coefficients p, q, and r given by (18), with generators obtained for x 1 = π 5 , x 2 = 3 / 2 , x 3 = 5 / 6 and the seeds a = 0.2 e 2 π / 7 + π / 3 , b = 0.4 e 6 π / 7 + π / 3 , and c = 0.8 e 10 π / 7 + π / 3 . By Formula (19), since | z 1 | = | z 2 | = | z 3 | = 1 , by the triangle inequality one can easily obtain the inequality | w n | | A | + | B | + | C | , hence the orbit is located within the circle of radius | A | + | B | + | C | , centred in the origin.

5.1. Autocorrelation of Arguments

For the chosen sequence ( w n ) n 0 displayed in Figure 6a, the sequence ( θ n ) n 0 of complex arguments from Formula (19) is normalised as before through the transformation θ ˜ n = θ n + π 2 π , n = 0 , 1 , . This sequence also seems to be uniformly distributed.
The autocorrelation obtained for normalised arguments ( θ ˜ n , θ ˜ n + 1 ) in Figure 6b indicates that a PNRG based on a third-order Horadam sequence provides a more uniform covering of the unit square [ 0 , 1 ] × [ 0 , 1 ] .

5.2. Evaluation of NIST Tests

As in Section 4.2, we apply the NIST tests on the sequence of normalised complex arguments θ ˜ n , computed for the third order Horadam sequence plotted in Figure 6a. The current implementation requires 96 bytes.
Table 6 suggests that from the first 14 NIST tests, the proposed PRNG passes the Binary Matrix Rank (05), the Linear Complexity (10), and the Serial tests (11, part 2). The results are very similar to those for classical Horadam sequences in Table 2 and Table 3.
Table 7 suggests that all random excursion tests conclude that the proposed sequence is Random, similar to the results shown in Table 4. More research is required to establish whether the results hold for other parameter values.

6. Radii of Horadam Sequence Terms

We here investigate the distribution of radii of Horadam sequences. By Formula (7) we have | A | = R 1 > 0 , | B | = R 2 > 0 , while the notations in Formula (8) can by simplified by taking θ 1 = ϕ 1 + n x 2 , θ 2 = ϕ 2 + n x 2 , to obtain
r e i θ = R 1 e i θ 1 + R 2 e i θ 2 ,
therefore one has
r 2 = R 1 2 + R 2 2 + 2 R 1 R 2 cos ( θ 1 θ 2 ) .

6.1. The Distribution of Radii for | A | = | B |

The case R = R 1 = R 2 is easier to examine. Indeed, the Formula (21) reduces to
r = 2 R cos 1 2 ( θ 1 θ 2 ) .
The angle θ 1 θ 2 is uniformly distributed in ( π 2 , π 2 ) , and by denoting α = θ 1 θ 2 and | r | = 2 R cos ( α ) , one may write
P ( | r / ( 2 R ) | x ) = P ( α arccos ( x ) ) = 2 π arccos ( x ) ,
for every value x in the interval ( 0 , 1 ) . Thus, the density of r is given by the formula
f r ( x ) = 1 | x | < 2 R π 4 R 2 x 2 ,
where 1 | x | < 2 R represents the indicator function for the disk U ( 0 ; 2 R ) . The histogram of | w n | for ( w n ) n = 0 1000 is shown in Figure 7a, against the density given by (22). The Horadam sequence used in this case is the one from Section 3, plotted in Figure 1b.

6.2. The Distribution of Radii for | A | | B |

If | A | | B | , from the example depicted in Figure 4, the orbits in this case are bounded by two circles. As Figure 7b suggests, these inner and outer bounds are singularities for the radius distribution. We now find the distribution of the radius r, using the notation r 2 = r 1 2 + r 2 2 + 2 r 1 r 2 cos ( α ) where α is uniformly distributed in ( 0 , π ) .
As 1 ( θ 1 θ 2 ) 1 one has ( r 1 r 2 ) 2 r 2 ( r 1 + r 2 ) 2 , therefore
P [ r x ] = 0 , x | r 1 r 2 | 1 , x r 1 + r 2 .
For | r 1 r 2 | < x < r 1 + r 2 we have
P [ r x ] = P [ r 2 x 2 ] = P [ r 1 2 + r 2 2 + 2 r 1 r 2 cos ( α ) x 2 ] = P cos α x 2 r 1 2 r 2 2 2 r 1 r 2 = P α arccos x 2 r 1 2 r 2 2 2 r 1 r 2 = 1 π arccos x 2 r 1 2 r 2 2 2 r 1 r 2 .
By differentiating, one obtains the density function
f r ( x ) = 1 C x ( r 1 + r 2 ) 2 x 2 x 2 ( r 1 r 2 ) 2 , | r 1 r 2 | < x < r 1 + r 2 .
This has singularities at the boundaries x = | r 1 r 2 | , and x = r 1 + r 2 , and a critical point at x = | r 1 r 2 | r 1 + r 2 . Moreover, we have
f r ( x ) = 1 C x 4 ( r 1 r 2 ) 2 ( r 1 + r 2 ) 2 ( r 1 + r 2 ) 2 x 2 3 / 2 x 2 ( r 1 r 2 ) 2 3 / 2 ,
while the constant C = π / 2 ensures that the density f r given by (23) satisfies
| r 1 r 2 | r 1 + r 2 f r ( x ) = 1 .

7. Conclusions

We have first discussed the key properties of complex Horadam sequences of second and third order, including exact formulae for the general term. For sequences whose orbits were dense within a 2D region, we analysed the sequence ( θ ˜ n ) n 0 of complex arguments normalised to the interval [ 0 , 1 ] by the Formula (10).
In Section 3, we showed that the normalised arguments θ ˜ n are uniformly distributed in the interval [ 0 , 1 ] when A, B given by (3) satisfy | A | = | B | , which inspired a PNRG. We showed that the autocorrelation of a single sequence was linear, but Monte Carlo simulations for the value of π using two distinct sequences showed good convergence properties against established generators (Lagged Fibonacci and Mersenne Twister).
In Section 4 we explored the case | A | | B | . The autocorrelation was better, but surprisingly, the errors in the approximation of π obtained for pairs of Horadam sequences was sometimes worse than for | A | = | B | , as shown in Table 1. The PRNG generated for two sequences (16) and (17) passed 3 out of 14 NIST tests (8, 10, and 11) (see Table 2 and Table 3). The performance was better in the random excursion tests (see Table 4 and Table 5).
Section 5 presents results for third-order generalized Horadam sequences, where we also explore the properties of a similarly defined PNRG. Results are much improved in terms of autocorrelation, but similar in terms of the NIST tests.
In Section 6 we derived the probability density of the radii of Horadam sequences in the scenarios | A | = | B | and | A | | B | , validated against numerical simulations.
Further investigations are required for understanding the relationship between the initial parameters and the results in the NIST tests, or autocorrelation.

Author Contributions

All authors claim to have contributed significantly to this work. Specifically, Conceptualization, O.B., M.C., V.D., I.G.I. and I.-L.P.; methodology, O.B., M.C., V.D., I.G.I. and I.-L.P.; software, O.B. and M.C.; validation, O.B., M.C., V.D., I.G.I. and I.-L.P.; investigation, O.B., M.C., V.D., I.G.I. and I.-L.P.; resources, O.B., M.C., V.D., I.G.I. and I.-L.P.; writing—original draft preparation, O.B., M.C., V.D., I.G.I. and I.-L.P.; writing—review and editing, O.B., M.C., V.D., I.G.I. and I.-L.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data can be fully generated from the parameters provided.

Acknowledgments

The authors thank the referees for reading the manuscript carefully and providing valuable feedback and constructive comments, which improved the quality of the manuscript.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Horadam, A.F. Basic properties of a certain generalized sequence of numbers. Fibonacci Quart. 1965, 3, 161–176. [Google Scholar]
  2. Horadam, A.F. Generating functions for powers of a certain generalised sequence of numbers. Duke Math. J. 1965, 32, 437–446. [Google Scholar] [CrossRef]
  3. Horadam, A.F. Special properties of the sequence wn(a,b;p,q). Fibonacci Quart. 1967, 5, 424–434. [Google Scholar]
  4. Shannon, A.G. Alwyn Horadam: The man and his mathematics. Notes Number Theory Discret. Math. 2016, 22, 1–4. [Google Scholar]
  5. Larcombe, P.J.; Bagdasar, O.; Fennessey, E.J. Horadam sequences: A survey. Bull. Inst. Combin. Appl. 2013, 67, 49–72. [Google Scholar]
  6. Larcombe, P.J. Horadam sequences: A survey update and extension. Bull. Inst. Combin. Appl. 2017, 67, 99–118. [Google Scholar]
  7. Yazlik, Y.; Taskara, N. A note on generalized k-Horadam sequence. Comp. Math. Appl. 2012, 63, 36–41. [Google Scholar] [CrossRef] [Green Version]
  8. Srividhya, G.; Rani, E.K. A new application of generalized k-Horadam sequence in coding theory. J. Algebr. Stat. 2022, 13, 93–98. [Google Scholar]
  9. Anđelić, M.; da Fonseca, C.M.; Yılmaz, F. The bi-periodic Horadam sequence and some perturbed tridiagonal 2-Toeplitz matrices: A unified approach. Heliyon 2022, 8, e08863. [Google Scholar] [CrossRef]
  10. Anđelić, M.; da Fonseca, C.M.; Mamede, R. On the number of P-vertices of some graphs. Linear Algebra Appl. 2011, 434, 514–525. [Google Scholar] [CrossRef] [Green Version]
  11. Haukkanen, P. A note on Horadam’s sequence. Fibonacci Quart. 2002, 44, 358–361. [Google Scholar]
  12. Mansour, T. A formula for the generating functions of powers of Horadam’s sequence. Australas. J. Comb. 2004, 30, 207–212. [Google Scholar]
  13. Chen, K.-W. Horadam Sequences and Tridiagonal Determinants. Symmetry 2020, 12, 1968. [Google Scholar] [CrossRef]
  14. Chen, K.-W.; Pan, Y.-R. Greatest common divisors of shifted Horadam Sequences. J. Integer Seq. 2020, 23, 20.5.8. [Google Scholar]
  15. Yilmaz, N.; Taştan, M.; Özcan, E. A new family of Horadam numbers. Electron. J. Math. Anal. Appl. 2022, 10, 64–70. [Google Scholar]
  16. Taştan, M.; Yilmaz, N.; Özcan, E. A formula for the generating functions of powers of Horadam’s sequence. Asian-Eur. J. Math. 2022, 15, 2250225. [Google Scholar] [CrossRef]
  17. Sloane, N.J.A. The On-Line Encyclopedia of Integer Sequences. 2020. Available online: https://oeis.org (accessed on 1 October 2022).
  18. Koshy, T. Fibonacci and Lucas Numbers with Applications; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2001. [Google Scholar]
  19. Bagdasar, O.; Larcombe, P.J. On the characterization of periodic complex Horadam sequences. Fibonacci Quart. 2013, 51, 28–37. [Google Scholar]
  20. Bagdasar, O.; Larcombe, P.J. On the number of complex periodic complex Horadam sequences. Fibonacci Quart. 2013, 51, 339–347. [Google Scholar]
  21. Bagdasar, O.; Larcombe, P.J.; Anjum, A. On the structure of periodic complex Horadam sequences. Carpathian J. Math. 2016, 32, 29–36. [Google Scholar] [CrossRef]
  22. Andrica, D.; Bagdasar, O. Recurrent Sequences: Key Results, Applications and Problems; Springer: Berlin/Heidelberg, Germany, 2020. [Google Scholar]
  23. Bagdasar, O.; Hedderwick, E.; Popa, I.-L. On the ratios and geometric boundaries of complex Horadam sequences. Electron. Notes Discrete Math. 2018, 68, 63–70. [Google Scholar] [CrossRef]
  24. Bagdasar, O.; Larcombe, P.J. On the characterization of periodic generalized Horadam sequences. J. Differ. Equ. Appl. 2014, 20, 1069–1090. [Google Scholar] [CrossRef] [Green Version]
  25. Bagdasar, O.; Larcombe, P.J. On the masked periodicity of Horadam sequences: A generator-based approach. Fibonacci Quart. 2017, 55, 332–339. [Google Scholar]
  26. Bagdasar, O.; Chen, M. A Horadam-based pseudo-random number generator. In Proceedings of the 16th UKSim, Cambridge, UK, 26–28 March 2014; pp. 226–230. [Google Scholar]
  27. Oohama, Y. Performance analysis of the internal algorithm for random number generation based on number systems. IEEE Trans. Inform. Theory 2011, 57, 1177–1185. [Google Scholar] [CrossRef]
  28. Panneton, F.; L’Ecuyer, P.; Matsumoto, M. Improved long-period generators based on linear reccurences modulo 2. ACM Trans. Math. Soft. 2006, 32, 1–16. [Google Scholar] [CrossRef] [Green Version]
  29. Goualard, F. Generating Random Floating-Point Numbers by Dividing Integers: A Case Study. In Proceedings of the 20th International Conference, Amsterdam, The Netherlands, 3–5 June 2020; Krzhizhanovskaya, V.V., Závodszky, G., Lees, M.H., Dongarra, J.J., Sloot, P.M.A., Brissos, S., Teixeira, J., Eds.; Lecture Notes in Computer Science. Springer: Cham, Switzerland; Volume 12138, pp. 15–28. [Google Scholar]
  30. Hellekalek, P. Good random number generators are (not so) easy to find. Math. Comput. Simul. 1998, 46, 485–505. [Google Scholar] [CrossRef]
  31. Bassham, L.; Rukhin, A.; Soto, J.; Nechvatal, J.; Smid, M.; Leigh, S.; Levenson, M.; Vangel, M.; Heckert, N.; Banks, D. A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications; Special Publication (NIST SP), National Institute of Standards and Technology: Gaithersburg, MD, USA, 2010. Available online: https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-22r1a.pdf (accessed on 1 October 2022).
  32. Zaman, J.K.M.S.; Gosh, R. Review on fifteen Statistical Tests proposed by NIST. J. Theor. Phys. Cryptogr. 2012, 1, 18–31. [Google Scholar]
  33. Hardy, G.H.; Wright, E.M. An Introduction to the Theory of Numbers, 5th ed.; Oxford University Press: Oxford, UK, 1979. [Google Scholar]
  34. Weyl, H. Über die gleichverteilung von zahlen mod. eins. Math. Ann. 1916, 77, 313–352. [Google Scholar] [CrossRef] [Green Version]
Figure 1. The case when | A | = | B | . Horadam sequence terms ( w n ) n = 0 N computed by (1), for (a) N = 30 and (b) N = 500 . We also plot the seeds a , b (stars), generators z 1 , z 2 (squares), unit circle S (solid line), and the circle U ( 0 , 2 | A | ) (dotted line). In (a), the arrows indicate an increase in index n.
Figure 1. The case when | A | = | B | . Horadam sequence terms ( w n ) n = 0 N computed by (1), for (a) N = 30 and (b) N = 500 . We also plot the seeds a , b (stars), generators z 1 , z 2 (squares), unit circle S (solid line), and the circle U ( 0 , 2 | A | ) (dotted line). In (a), the arrows indicate an increase in index n.
Mathematics 11 01244 g001
Figure 2. (a) Histogram of normalised arguments θ ˜ n , n = 0 , , 500 from (10), against the uniform density (dotted line); (b) Plot of ( θ ˜ n , θ ˜ n + 1 ) (crosses), n = 0 , , 500 , for the sequence in Figure 1.
Figure 2. (a) Histogram of normalised arguments θ ˜ n , n = 0 , , 500 from (10), against the uniform density (dotted line); (b) Plot of ( θ ˜ n , θ ˜ n + 1 ) (crosses), n = 0 , , 500 , for the sequence in Figure 1.
Mathematics 11 01244 g002
Figure 3. First (a) N = 1000 ; (b) N = 10,000 pairs of normalised arguments ( x n , y n ) , n = 1 , , N . Points inside the first quadrant of the unit circle (solid line) are represented by blue circles, while those falling outside the circle by red crosses.
Figure 3. First (a) N = 1000 ; (b) N = 10,000 pairs of normalised arguments ( x n , y n ) , n = 1 , , N . Points inside the first quadrant of the unit circle (solid line) are represented by blue circles, while those falling outside the circle by red crosses.
Mathematics 11 01244 g003
Figure 4. The case | A | | B | . Horadam sequence terms ( w n ) n = 0 N computed from Formula (1), for (a) N = 30 and (b) N = 500 . We also plot the seeds a , b (stars), generators z 1 , z 2 (squares), unit circle S (solid line), and the boundaries of the annulus U ( 0 ; | | A | | B | | , | A | + | B | ) (dotted line). In Figure (a), the arrows indicate the increase in the index n.
Figure 4. The case | A | | B | . Horadam sequence terms ( w n ) n = 0 N computed from Formula (1), for (a) N = 30 and (b) N = 500 . We also plot the seeds a , b (stars), generators z 1 , z 2 (squares), unit circle S (solid line), and the boundaries of the annulus U ( 0 ; | | A | | B | | , | A | + | B | ) (dotted line). In Figure (a), the arrows indicate the increase in the index n.
Mathematics 11 01244 g004
Figure 5. (a) Histogram of normalised arguments θ ˜ n , n = 0 , , 500 by (10), against the uniform density (dotted line); (b) Plot of ( θ ˜ n , θ ˜ n + 1 ) (crosses), n = 0 , , 500 , for the sequence in Figure 4.
Figure 5. (a) Histogram of normalised arguments θ ˜ n , n = 0 , , 500 by (10), against the uniform density (dotted line); (b) Plot of ( θ ˜ n , θ ˜ n + 1 ) (crosses), n = 0 , , 500 , for the sequence in Figure 4.
Mathematics 11 01244 g005
Figure 6. (a) First 1000 terms of the sequence ( w n ) n 0 from (4). The stars show the seeds a, b, c; the squares indicate the generators z 1 , z 2 , z 3 ; the solid line is the unit circle U, while the dotted line is the circle U ( 0 ; | A | + | B | + | C | ) . (b) Plot of the points ( θ ˜ n , θ ˜ n + 1 ) (crosses), n = 0 , , 1000 .
Figure 6. (a) First 1000 terms of the sequence ( w n ) n 0 from (4). The stars show the seeds a, b, c; the squares indicate the generators z 1 , z 2 , z 3 ; the solid line is the unit circle U, while the dotted line is the circle U ( 0 ; | A | + | B | + | C | ) . (b) Plot of the points ( θ ˜ n , θ ˜ n + 1 ) (crosses), n = 0 , , 1000 .
Mathematics 11 01244 g006
Figure 7. Histogram of the radii | w n | of the Horadam sequence the terms ( w n ) n = 0 1000 from (2) for r 1 = r 2 = 1 when (a) x 1 = π 5 , x 2 = e 2 4 and a = 1 + 1 / 3 i , b = 1.5 a exp ( π ( x 1 + x 2 ) ) ( | A | = | B | ); (b) x 1 = 2 3 , x 2 = e 15 and a = 2 + 2 / 3 i , b = 3 + i ( | A | | B | ). The probability densities f r given by Formulae (22) and (23) are shown by a dotted line. Parameters correspond to Figure 1b and Figure 4b.
Figure 7. Histogram of the radii | w n | of the Horadam sequence the terms ( w n ) n = 0 1000 from (2) for r 1 = r 2 = 1 when (a) x 1 = π 5 , x 2 = e 2 4 and a = 1 + 1 / 3 i , b = 1.5 a exp ( π ( x 1 + x 2 ) ) ( | A | = | B | ); (b) x 1 = 2 3 , x 2 = e 15 and a = 2 + 2 / 3 i , b = 3 + i ( | A | | B | ). The probability densities f r given by Formulae (22) and (23) are shown by a dotted line. Parameters correspond to Figure 1b and Figure 4b.
Mathematics 11 01244 g007
Table 1. Absolute errors in the approximation of π .
Table 1. Absolute errors in the approximation of π .
10 N MLFMTHoradam ( | A | = | B | ) Horadam ( | A | | B | )
10.32970.72580.05840.3415
20.06150.02150.02160.0184
30.03040.04560.03440.0575
40.02000.00360.00040.0371
50.00180.00040.00140.0523
60.00100.00260.00000.0452
Table 2. NIST randomness tests for sequence ( w n 1 ) n 0 given by (16).
Table 2. NIST randomness tests for sequence ( w n 1 ) n 0 given by (16).
Type of Testp-ValueConclusion
01. Frequency Test (Monobit)0.0Non-Random
02. Frequency Test within a Block4.4999 × 10−260Non-Random
03. Run Test0.0Non-Random
04. Longest Run of Ones in a Block0.0Non-Random
05. Binary Matrix Rank Test0.1176Random
06. Discrete Fourier Transform (Spectral) Test0.0Non-Random
07. Non-Overlapping Template Matching Test6.3061 × 10−5Non-Random
08. Overlapping Template Matching Test0.0Non-Random
09. Maurer’s Universal Statistical test5.3335 × 10−71Non-Random
10. Linear Complexity Test0.3767Random
11. Serial test (a):0.0Non-Random
11. Serial test (b):0.9972Random
12. Approximate Entropy Test0.0Non-Random
13. Cumulative Sums (Forward) Test0.0Non-Random
14. Cumulative Sums (Reverse) Test0.0Non-Random
Table 3. NIST randomness tests for sequence ( w n 2 ) n 0 given by (17).
Table 3. NIST randomness tests for sequence ( w n 2 ) n 0 given by (17).
Type of Testp-ValueConclusion
01. Frequency Test (Monobit)0.0Non-Random
02. Frequency Test within a Block4.5927 × 10−225Non-Random
03. Run Test0.0Non-Random
04. Longest Run of Ones in a Block0.0Non-Random
05. Binary Matrix Rank Test0.4676Random
06. Discrete Fourier Transform (Spectral) Test0.0Non-Random
07. Non-Overlapping Template Matching Test1.02391 × 10−6Non-Random
08. Overlapping Template Matching Test0.0Non-Random
09. Maurer’s Universal Statistical test3.3838 × 10−44Non-Random
10. Linear Complexity Test0.7255Random
11. Serial test (a):0.0Non-Random
11. Serial test (b):0.9920Random
12. Approximate Entropy Test0.0Non-Random
13. Cumulative Sums (Forward) Test0.0Non-Random
14. Cumulative Sums (Reverse) Test0.0Non-Random
Table 4. NIST random excursion test for sequence ( w n 1 ) n 0 given by (16).
Table 4. NIST random excursion test for sequence ( w n 1 ) n 0 given by (16).
StateChi Squarep-ValueConclusion
−44.34830.5004Random
−33.01190.6982Random
−27.51680.1850Random
−110.57140.0606Random
+17.14290.2102Random
+27.31570.1982Random
+35.56070.3513Random
+49.45780.0921Random
Table 5. NIST random excursion test for sequence ( w n 2 ) n 0 given by (17).
Table 5. NIST random excursion test for sequence ( w n 2 ) n 0 given by (17).
StateChi Squarep-ValueConclusion
−40.28570.9979Random
−30.40.9953Random
−26.66670.2466Random
−13.00.6700Random
+11.00.9626Random
+29.33330.0965Random
+329.70401.6865 × 10−5Non-Random
+45.39530.3696Random
Table 6. NIST randomness tests on a third order Horadam sequence.
Table 6. NIST randomness tests on a third order Horadam sequence.
Type of Testp-ValueConclusion
01. Frequency Test (Monobit)0.0Non-Random
02. Frequency Test within a Block8.3042 × 10−249Non-Random
03. Run Test0.0Non-Random
04. Longest Run of Ones in a Block0.0Non-Random
05. Binary Matrix Rank Test0.1839Random
06. Discrete Fourier Transform (Spectral) Test0.0Non-Random
07. Non-Overlapping Template Matching Test2.8299 × 10−5Non-Random
08. Overlapping Template Matching Test0.0Non-Random
09. Maurer’s Universal Statistical test3.5207 × 10−76Non-Random
10. Linear Complexity Test0.1191Random
11. Serial test (a):0.0Non-Random
11. Serial test (b):0.0145Random
12. Approximate Entropy Test0.0Non-Random
13. Cumulative Sums (Forward) Test0.0Non-Random
14. Cumulative Sums (Reverse) Test0.0Non-Random
Table 7. NIST random excursion test on a third order Horadam sequence.
Table 7. NIST random excursion test on a third order Horadam sequence.
StateChi Squarep-ValueConclusion
−42.57140.7657Random
−33.60000.6083Random
−24.51850.4774Random
−12.77780.7342Random
+13.22220.6658Random
+25.81070.3251Random
+35.73600.3328Random
+413.29790.0207Random
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bagdasar, O.; Chen, M.; Drăgan, V.; Ivanov, I.G.; Popa, I.-L. On Horadam Sequences with Dense Orbits and Pseudo-Random Number Generators. Mathematics 2023, 11, 1244. https://doi.org/10.3390/math11051244

AMA Style

Bagdasar O, Chen M, Drăgan V, Ivanov IG, Popa I-L. On Horadam Sequences with Dense Orbits and Pseudo-Random Number Generators. Mathematics. 2023; 11(5):1244. https://doi.org/10.3390/math11051244

Chicago/Turabian Style

Bagdasar, Ovidiu, Minsi Chen, Vasile Drăgan, Ivan Ganchev Ivanov, and Ioan-Lucian Popa. 2023. "On Horadam Sequences with Dense Orbits and Pseudo-Random Number Generators" Mathematics 11, no. 5: 1244. https://doi.org/10.3390/math11051244

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