Finding Cyclic Patterns in Random Constants: A Probability Puzzle

  • Context: Graduate 
  • Thread starter Thread starter CRGreathouse
  • Start date Start date
  • Tags Tags
    Fun
Click For Summary
SUMMARY

The discussion revolves around the probability of finding cyclic patterns in sequences derived from random constants, specifically using the example of the mathematical constant pi. Participants explore the mechanics of generating a sequence based on the first occurrence of decimal digits and the implications of randomness in determining whether such sequences become cyclic. The consensus leans towards the belief that while sequences may appear to become cyclic, the probability of this occurring in a truly random constant is low, potentially approaching zero as the sequence length increases.

PREREQUISITES
  • Understanding of probability theory, particularly in relation to sequences.
  • Familiarity with mathematical constants, specifically pi.
  • Knowledge of base-b numeral systems and their properties.
  • Basic concepts of infinite sequences and their convergence.
NEXT STEPS
  • Research the properties of random sequences in probability theory.
  • Explore the concept of cyclic sequences in number theory.
  • Study the implications of the Borel-Cantelli lemma in relation to infinite sequences.
  • Investigate the distribution of digits in mathematical constants like pi and e.
USEFUL FOR

Mathematicians, statisticians, and computer scientists interested in probability theory, sequence analysis, and the behavior of random constants in mathematical contexts.

CRGreathouse
Science Advisor
Homework Helper
Messages
2,832
Reaction score
0
Fun question/"brainteaser"

I don't think this problem really counts as a brainteaser, because I don't know the answer.

Consider a sequence like http://www.research.att.com/~njas/sequences/A097614 which works as follows:
Given a constant (pi in this case), find the first position in the constant with a decimal "0". This is a1. Then find the first position in the constant with a decimal a1; this is a2, and so on.

If the constant were 0.11777777770... instead, the sequence would be cyclic:
0, 11, 1, 1, 1, 1, ...

What is the probability that such a base-b sequence is eventually cyclic on a random constant? Here, "random constant" means that each decimal place to the right of the decimal point has a 1/b chance of taking each value in 0, 1, ..., b-1.
 
Last edited by a moderator:
Physics news on Phys.org


My wild guess would be that the probability for the sequence to be infinitely long is 0. That it will either terminate abruptly (due to some string not existing in the decimals of pi), or that at some point a string will be found at one of the positions 4, 41, 415, 4159, 41592, ..., bringing you back to position 2.

Edit:
On second thought, I'm not so sure. The list of positions I mentioned is countable, while the set of all possible search strings could, for all we know, be close to the set of all possible finite strings of digits, which is awfully close to the power set of N, thus way bigger. No? Maybe?
 
Last edited:


If the chance of finding a given n-digit sequence at any position in the random constant is b^-n, you'd expect to find n somewhere around position n. But it's much easier to slip up a digit then down one, and that quickly moves you many places forward.

I'm not sure of my intuition on this one either. It seems so likely that eventually you'd become cyclic, and yet the chance drops every time the number of digits increases; I'm not sure which would outpace the other.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 66 ·
3
Replies
66
Views
8K