Contents

-

Ternary Strings and the Pell Numbers

Ralph P. Grimaldi1
1Mathematics Department Rose-Hulman Institute of Technology Terre Haute, Indiana 47803 US.A.

Abstract

For n1, let an count the number of strings s1s2s3sn, where
(i) s1=0;
(ii) si{0,1,2} for 2in;
(iii) |sisi1|1 for 2in.

Then a1=1, a2=2, a3=5, a4=12, and a5=29.

In general, for n3, an=2an1+an2, and an equals Pn, the nth \emph{Pell} number.

For these Pn strings of length n, we count
(i) The number of occurrences of each symbol 0,1,2;
(ii) The number of times each symbol 0,1,2 occurs in an even or odd position;
(iii) The number of levels, rises, and descents within the strings;
(iv) The number of runs that occur within the strings;
(v) The sum of all strings considered as base 3 integers;
(vi) The number of inversions and coinversions within the strings; and
(vii) The sum of the major indices for the strings.