login
A370855
Numbers m such that c(0) < c(1) <= c(2), where c(k) = number of k's in the ternary representation of m.
3
5, 7, 17, 23, 25, 44, 50, 52, 53, 68, 70, 71, 76, 77, 79, 98, 104, 106, 116, 128, 132, 134, 140, 142, 146, 150, 152, 154, 156, 158, 160, 161, 176, 178, 184, 194, 196, 200, 204, 206, 208, 210, 212, 214, 215, 220, 226, 228, 230, 232, 233, 238, 239, 241, 296
OFFSET
1,1
EXAMPLE
The ternary representation of 7 is 21, for which c(0)=0 < c(1)=1 <= c(2)=1. So 7 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