An Upper Bound for Locating Strings with High Probability Within Consecutive Bits of Pi
Víctor Manuel Silva-García,
Manuel Alejandro Cardona-López () and
Rolando Flores-Carapia ()
Additional contact information
Víctor Manuel Silva-García: Centro de Innovación y Desarrollo Tecnológico en Cómputo, Instituto Politécnico Nacional, Mexico City 07738, Mexico
Manuel Alejandro Cardona-López: Centro de Investigación en Computación, Instituto Politécnico Nacional, Mexico City 07738, Mexico
Rolando Flores-Carapia: Centro de Innovación y Desarrollo Tecnológico en Cómputo, Instituto Politécnico Nacional, Mexico City 07738, Mexico
Mathematics, 2025, vol. 13, issue 2, 1-16
Abstract:
Numerous studies on the number pi ( π ) explore its properties, including normality and applicability. This research, grounded in two hypotheses, proposes and proves a theorem that employs a Bernoulli experiment to demonstrate the high probability of encountering any finite bit string within a sequence of consecutive bits in the decimal part of π . This aligns with findings related to its normality. To support the hypotheses, we present experimental evidence about the equiprobable and independent properties of bits of π , analyzing their distribution, and measuring correlations between bit strings. Additionally, from a cryptographic perspective, we evaluate the chaotic properties of two images generated using bits of π . These properties are evaluated similarly to those of encrypted images, using measures of correlation and entropy, along with two hypothesis tests to confirm the uniform distribution of bits and the absence of periodic patterns. Unlike previous works that solely examine the presence of sequences, this study provides, as a corollary, a formula to calculate an upper bound N . This bound represents the length of the sequence from π required to ensure the location of any n -bit string at least once, with an adjustable probability p that can be set arbitrarily close to one. To validate the formula, we identify sequences of up to n = 40 consecutive zeros and ones within the first N bits of π . This work has potential applications in Cryptography that use the number π for random sequence generation, offering insights into the number of bits of π required to ensure good randomness properties.
Keywords: Bernoulli experiment; chaos; entropy; normal numbers; Pi number; upper bound (search for similar items in EconPapers)
JEL-codes: C (search for similar items in EconPapers)
Date: 2025
References: View references in EconPapers View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2227-7390/13/2/313/pdf (application/pdf)
https://www.mdpi.com/2227-7390/13/2/313/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jmathe:v:13:y:2025:i:2:p:313-:d:1570436
Access Statistics for this article
Mathematics is currently edited by Ms. Emma He
More articles in Mathematics from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().