OFFSET
1,2
EXAMPLE
The ternary representation of 15 is 120, for which c(0)=1 <= c(1)=1 >= c(2)=1.
MATHEMATICA
Select[Range[1000], DigitCount[#, 3, 0] <= DigitCount[#, 3, 1] >= DigitCount[#, 3, 2] &]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Mar 09 2024
STATUS
approved