How Many Squares Must a Binary Sequence Contain?

Aviezri S. Fraenkel, R. J. Simpson

The Electronic Journal of Combinatorics · 1994 · 65 citations · 11 references

DOIFull text

Open access

Concepts

Abstract

Let $g(n)$ be the length of a longest binary string containing at most $n$ distinct squares (two identical adjacent substrings). Then $g(0)=3$ (010 is such a string), $g(1)=7$ (0001000) and $g(2)=18$ (010011000111001101). How does the sequence $\{g(n)\}$ behave? We give a complete answer.

References

11