Suvarna Garge (Editor)

Gijswijt's sequence

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, Gijswijt's sequence (named after D.C. Gijswijt by Neil Sloane) is a self-describing sequence where each term counts the maximal number of repeated blocks in the sequence up to that term.

Contents

The sequence begins with:

1, 1, 2, 1, 1, 2, 2, 2, 3, 1, 1, 2, 1, 1, 2, 2, 2, 3, 2, 1, ... (sequence A090822 in the OEIS)

The sequence is similar in definition to the Kolakoski sequence, but instead of counting the longest run of single terms, the sequence counts the longest run of blocks of terms of any length. Gijswijt's sequence is known for its remarkably slow rate of growth. For example, the first 4 appears at the 220th term, and the first 5 appears near the 10 10 23 rd term.

Definition

The process to generate terms in the sequence can be defined by looking at the sequence as a series of letters in the alphabet of natural numbers:

  1. a ( 1 ) = 1
  2. a ( n + 1 ) = k , where k is the largest natural number such that the word a ( 1 ) a ( 2 ) a ( 3 ) . . . a ( n ) can be written in the form x y k for some words x and y , with y having non-zero length

The sequence is base-agnostic. That is, if a run of 10 repeated blocks is found, the next term in the sequence would be a single number 10, not a 1 followed by a 0.

Properties

Only limited research has focused on Gijswijt's sequence. As such, very little has been proven about the sequence and many open questions remain unsolved.

Rate of growth

Given that 5 does not appear until around 10 10 23 , brute force search techniques would never find the first occurrence of a term greater than 4. It has, however, been proven that the sequence contains every natural number. The exact rate of growth is not known, but is conjectured to grow super-logarithmically, with the first occurrence of any natural n positioned near 2 2 3 4 5 . . . n 1 .

Average value

Though it is known that each natural number occurs at a finite position within the sequence, it has been conjectured that the sequence may have a finite mean. To define this formally on an infinite sequence, where re-ordering of the terms may matter, the conjecture is that:

lim n 1 n i = 1 n a ( i ) <

Likewise, the density of any given natural number within the sequence is not known.

Recursive structure

The sequence can be broken into discrete "block" and "glue" sequences, which can be used to recursively build up the sequence. For example, at the base level, we can define B 1 = 1 and S 1 = 2 as the first block and sequences, respectively. Together, we can see how they form the beginning of the sequence:

B 1 B 1 S 1 = 1 , 1 , 2

The next step is to recursively build up the sequence. Define B 2 = B 1 B 1 S 1 . Noting that the sequence starts with B 1 B 1 , we can define a glue string S 2 = 2 , 2 , 3 which gives:

B 2 B 2 S 2 = 1 , 1 , 2 , 1 , 1 , 2 , 2 , 2 , 3

Notice we assigned S 2 to a particular sequence which gives the property that B 2 B 2 S 2 B 2 B 2 S 2 also occurs at the top of the sequence.

This process can be continued indefinitely with B n + 1 = B n B n S n . It turns out that we can discover a glue string S n by noting that S n will never have a 1, and that it stops once it reaches the first 1 to follow B n B n . It has also been proven that Gijswijt's sequence can be built up in this fashion indefinitely ‒ that is, B n and S n are always finite in length for any n .

Clever manipulation of the glue sequences in this recursive structure can be used to demonstrate that Gijswijt's sequence contains all the natural numbers, among other properties of the sequence.

References

Gijswijt's sequence Wikipedia