Let be an alphabet over letters. A word of length over alphabet is an element of and is also called -ary word of length . We say that contains a peak, if exists such that . We say that contains a symmetric peak, if exists such that , and contains a non-symmetric peak, otherwise. In this paper, we find an explicit formula for the generating functions for the number of -ary words of length according to the number of symmetric peaks and non-symmetric peaks in terms of Chebyshev polynomials of the second kind. Moreover, we find the number of symmetric and non-symmetric peaks in -ary word of length in two ways by using generating functions techniques, and by applying probabilistic methods.
Keywords: Word, symmetric peak, non-symmetric peak, Chebyshev polynomial of the second kind.