Abstract & Overview
Let U n denote the set of integral sequences u 1 • • • u n such that |u i+1 -u i | ≤ 1 for 1 ≤ i ≤ n -1, with u 1 = 1, which are referred to as smooth words.In this paper, we enumerate the members of U n according to the number of occurrences of any subword pattern of length two or three.We consider, more generally, the joint distribution on U n of several pairs (and one trio) of subword patterns, together with the final letter statistic, and compute the generating function of this joint distribution in each case.We make use of the kernel method to solve the functional equation satisfied by the generating function.In some instances, one or more auxiliary generating functions are needed giving rise to a system of functional equations.As particular cases of our results, we obtain the generating function of the univariate distribution on U n for n ≥ 1 for each subword pattern of length two or three.Special attention is paid to the subset V n consisting of those members of U n ending in 1, which are enumerated by the Motzkin number M n-1 for n ≥ 1. Explicit formulas for the total number of occurrences of a pattern on U n or V n can be found by differentiating the respective generating functions.