Skip to main navigation Skip to search Skip to main content

Counting k-ary words by number of adjacency differences of a prescribed size

  • Sela Fried
  • , Toufik Mansour
  • , Mark Shattuck

Research output: Contribution to journal › Article › peer-review

Abstract

Recently, the general problem of enumerating permutations π = π1 · · · πn such that πi+r − πi ≠ s for all 1 ≤ i ≤ n − r, where r and s are fixed, was considered by Spahn and Zeilberger. In this paper, we consider an analogous problem on k-ary words involving the distribution of the corresponding statistic. Note that for k-ary words, it suffices to consider only the r = 1 case of the aforementioned problem on permutations. Here, we compute for arbitrary s an explicit formula for the ordinary generating function for n ≥ 0 of the distribution of the statistic on k-ary words ρ = ρ1 · · · ρn recording the number of indices i such that ρi+1 − ρi = s. This result may then be used to find a comparable formula for finite set partitions with a fixed number of blocks, represented sequentially as restricted growth functions. Further, several sequences7cOxreXsgGF3LkfdtM6Bsow6from the OEIS arise as enumerators of certain classes of k-ary words avoiding adjacencies with a prescribed difference. The comparable problem where one tracks indices i such that the absolute difference |ai+1 −ai | is a fixed number is also considered on k-ary words and the corresponding generating function may be expressed in terms of Chebyshev polynomials.

Original languageEnglish
Pages (from-to)145-177
Number of pages33
JournalJournal of Combinatorics
Volume17
Issue number2
DOIs
StatePublished - 1 Jan 2026
Externally publishedYes

Keywords

  • combinatorial statistic
  • generating function
  • k-ary word
  • set partition

ASJC Scopus subject areas

  • Discrete Mathematics and Combinatorics

Fingerprint

Dive into the research topics of 'Counting k-ary words by number of adjacency differences of a prescribed size'. Together they form a unique fingerprint.

Cite this