%N Ternary numbers with equal numbers of 0s, 1s and 2s and such that read left-to-right at all times the number of 2s >= number of 1s >= number of 0s.
%C A005789(n) counts the terms here with 3n ternary digits.
%Y Cf. A005789, A063171, A000108.
%A _Rick L. Shepherd_, Oct 14 2007