Let $\tau$ be a fixed lattice path (called in this context string) on the integer plane, consisting of two kinds of steps. The Dyck path statistic "number of occurrences of $\tau$" has been studied by many authors, for particular strings only. In this paper, arbitrary strings are considered. The associated generating function is evaluated when $\tau$ is a Dyck prefix (or a Dyck suffix). Furthermore, the case when $\tau$ is neither a Dyck prefix nor a Dyck suffix is considered, giving some partial results. Finally, the statistic "number of occurrences of $\tau$ at height at least $j$" is considered, evaluating the corresponding generating function when $\tau$ is either a Dyck prefix or a Dyck suffix.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.