OFFSET
1,1
LINKS
John Tyler Rascoe, Table of n, a(n) for n = 1..10000
EXAMPLE
The ternary representation of 17 is 122, for which c(0)=0 < c(1)=1 < c(2)=2.
MATHEMATICA
Select[Range[1000], DigitCount[#, 3, 0] < DigitCount[#, 3, 1] < DigitCount[#, 3, 2] &]
PROG
(PARI)
check(m) = {my(c0=0, c1=0, c2=0, s=Vec(digits(m, 3)));
for(i=1, length(s), if(s[i]==0, c0+=1, if(s[i]==1, c1+=1, if(s[i]==2, c2+=1, ))));
c0<c1 && c1<c2; } \\ John Tyler Rascoe, Mar 11 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Mar 03 2024
STATUS
approved