I'm curious about a number series

  • Context: Undergrad 
  • Thread starter Thread starter BenchTop
  • Start date Start date
  • Tags Tags
    Curious Series
Click For Summary
SUMMARY

This discussion centers on the exploration of number series, particularly focusing on the generation of compressed sequences that yield all possible pairs, triplets, and n-tuples of binary digits. The simplest example presented is the series 0,1,1,0, which produces all possible pairs through a wrapping mechanism. The conversation also delves into De Bruijn sequences, which are arrangements of binary digits in a circular format that ensure all consecutive strings of a specified length are distinct. The mathematical formulation for the number of such sequences is given as 2^(2^(n-1) - n), with references to the OEIS sequence A016031 for further details.

PREREQUISITES
  • Understanding of binary sequences and their properties
  • Familiarity with combinatorial mathematics
  • Knowledge of De Bruijn sequences and their applications
  • Basic grasp of wrapping mechanisms in sequences
NEXT STEPS
  • Research the properties and applications of De Bruijn sequences
  • Explore the mathematical implications of compressed binary sequences
  • Learn about the construction and significance of Ouroboros rings
  • Investigate the OEIS sequence A016031 for deeper insights into combinatorial arrangements
USEFUL FOR

Mathematicians, computer scientists, and enthusiasts in combinatorial theory, particularly those interested in binary sequences and their applications in coding and data compression.

BenchTop
Messages
40
Reaction score
0
This is an interesting type of number series I found. I have no idea if it's good for anything, but somehow it's captured my interest.

the first example, the simplest is 0,1,1,0

the rules of operation are that you start at each position and take a pair of numbers. At the end, you wrap to get the last member of the last pair.

In the simple series, you get 01,11,10,00. This is every possible pair of numbers.
They are 'compressed' in a series that only requires n elements but produces all n possible pairs.


The next exampe is 0,0,0,1,1,1,0,1

When taken in triplets, you get 000,001,011,111,110,101,010,100 (wrapping as needed)
This is every possible triple of numbers. They are represented by a string of only 8 numbers. So the 'compressed' string of n numbers yields all n * 3 triples.

There should be a string, then, which is 256 characters long which produces all 256 8 character words, I think.

It's not quite a gray code, because 2 bits can change at each step, but I haven't figured out a formula to generate these strings.

There is something interesting about exponents becoming geometric that fascinates me and I wondered does anybody know anything about this or have thoughts on it?
 
Physics news on Phys.org
--arranging 2^n bits in circle so all 2^n consecutive strings of length n are distinct.
Those are called De Bruijn's sequence. (also Ouroboros Snake, Ouroborean ring)

How many De Bruijn's sequence for n-strings of 0-1?
This is sequence A016031 in OEIS http://oeis.org/A016031
De Bruijn's sequence: 2^(2^(n-1) - n): ways of arranging 2^n bits in circle so all 2^n consecutive strings of length n are distinct.
(n=1..9): 1, 1, 2, 16, 2048, 67108864, 144115188075855872, 1329227995784915872903807060280344576, 226156424291633194186662080095093570025917938800079226639565593765455331328

See also: http://en.wikipedia.org/wiki/De_Bruijn_sequence

One possible ouroborean ring for quadruplets is
1111000010100110
There are others.
Ouroborean rings exists for all m-tuples of n digits: for example, in this one
000111222121102202101201002
each triple of the three digits 0, 1, 2 occurs exactly once.
There are also 2D ourotorus.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K