IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i2p313-d1570436.html
   My bibliography  Save this article

An Upper Bound for Locating Strings with High Probability Within Consecutive Bits of Pi

Author

Listed:
  • 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
    Escuela Superior de Ingeniería Mecánica y Eléctrica Unidad Zacatenco, 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)

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.

Suggested Citation

  • Víctor Manuel Silva-García & Manuel Alejandro Cardona-López & Rolando Flores-Carapia, 2025. "An Upper Bound for Locating Strings with High Probability Within Consecutive Bits of Pi," Mathematics, MDPI, vol. 13(2), pages 1-16, January.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:2:p:313-:d:1570436
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/2/313/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/2/313/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:2:p:313-:d:1570436. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.