English

A Generating Function for the Distribution of Runs in Binary Words

Combinatorics 2017-07-17 v1

Abstract

Let N(n,r,k)N(n,r,k) denote the number of binary words of length nn that begin with 00 and contain exactly kk runs (i.e., maximal subwords of identical consecutive symbols) of length rr. We show that the generating function for the sequence N(n,r,0)N(n,r,0), n=0,1,n=0,1,\ldots, is (1x)(12x+xrxr+1)1(1-x)(1-2x + x^r-x^{r+1})^{-1} and that the generating function for {N(n,r,k)}\{N(n,r,k)\} is xkrx^{kr} time the k+1k+1 power of this. We extend to counts of words containing exactly kk runs of 11s by using symmetries on the set of binary words.

Keywords

Cite

@article{arxiv.1707.04351,
  title  = {A Generating Function for the Distribution of Runs in Binary Words},
  author = {James J. Madden},
  journal= {arXiv preprint arXiv:1707.04351},
  year   = {2017}
}

Comments

5 pages, 1 figure

R2 v1 2026-06-22T20:46:44.575Z