SydneySweeneyFan's blog

By SydneySweeneyFan, history, 5 months ago, In English

I am exploring the following combinatorial question about binary strings and would like insights, ideas, or references from the community.

For a binary string S of length N, define its border sequence as the strictly increasing sequence of integers x (1 ≤ x ≤ N) such that the prefix of S of length x equals the suffix of S of length x.

Formally: x is in the sequence if S[1..x] = S[N−x+1..N]

Note that x = N is always included.

Example: S = "01010" (N = 5) Border sequence = (1, 3, 5)

Now define f(N) as the number of distinct border sequences that occur among all binary strings of length N. We count only unique sequences, not strings.

https://oeis.org/A005434

Is there an optimal way to find this for given N rather than brute enumeration?

  • Vote: I like it
  • -2
  • Vote: I do not like it

»
5 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

firstly what is the size of N?