Elsevier

Discrete Applied Mathematics

Volume 157, Issue 4, 28 February 2009, Pages 602-616
Discrete Applied Mathematics

Restricted k-ary words and functional equations

https://doi.org/10.1016/j.dam.2008.08.029Get rights and content
Under an Elsevier user license
open archive

Abstract

We present an algorithm for finding a system of recurrence relations for the number of k-ary words of length n that satisfy a certain set of conditions. A rewriting of these relations automatically gives a system of functional equations satisfied by the multivariate generating function that counts k-ary words by their length and the indices of the corresponding recurrence relations. We propose an approach to describing such equations. In several interesting cases the algorithm recovers and refines results on τ-avoiding k-ary words and k-ary words containing τ exactly once, where τ is either a classical, a generalized, or a distanced pattern of length three.

Keywords

Generating functions
Functional equations
Pattern-avoiding k-ary words

Cited by (0)