[go: up one dir, main page]

login
A370854
Numbers m such that c(0) <= c(1) < c(2), where c(k) = number of k's in the ternary representation of m.
3
2, 8, 17, 23, 25, 26, 35, 47, 51, 53, 59, 61, 65, 69, 71, 73, 75, 77, 79, 80, 107, 134, 143, 152, 155, 158, 159, 160, 161, 179, 185, 187, 197, 206, 209, 212, 213, 214, 215, 221, 223, 227, 230, 231, 232, 233, 235, 237, 238, 239, 241, 242
OFFSET
1,1
EXAMPLE
The ternary representation of 8 is 22, for which c(0)=0 <= c(1)=0 < c(2)=2. So 8 is in the sequence.
MATHEMATICA
Select[Range[1000], DigitCount[#, 3, 0] <= DigitCount[#, 3, 1] < DigitCount[#, 3, 2] &]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Mar 03 2024
STATUS
approved