A Generating Function for the Distribution of Runs in Binary Words

Abstract

Let N(n,r,k) denote the number of binary words of length n that begin with 0 and contain exactly k runs (i.e., maximal subwords of identical consecutive symbols) of length r. We show that the generating function for the sequence N(n,r,0), n=0,1,…, is (1-x)(1-2x + xr-xr+1)-1 and that the generating function for \N(n,r,k)\ is xkr time the k+1 power of this. We extend to counts of words containing exactly k runs of 1s by using symmetries on the set of binary words.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…