Longest alternating subsequences in Pattern-Restricted k-ary Words

Toufik Mansour 1
1Department of Mathematics, University of Haifa, Haifa 31905, Israel

Abstract

We study the generating functions for pattern-restricted \(k\)-ary words of length \(n\) corresponding to the longest alternating subsequence statistic in which the pattern is any one of the six permutations of length three.