login
A031454
Numbers whose base-3 representation has 2 more 0's than 2's.
0
9, 28, 30, 36, 54, 83, 85, 87, 91, 93, 99, 109, 111, 117, 135, 163, 165, 171, 189, 248, 250, 254, 256, 258, 262, 264, 272, 274, 276, 280, 282, 288, 298, 300, 306, 326, 328, 330, 334, 336, 342, 352, 354, 360, 378, 406, 408, 414
OFFSET
1,1
MATHEMATICA
Select[Range@500, (s=#; Differences[Count[IntegerDigits[s, 3], #]&/@{0, 2}]=={-2})&] (* Giorgos Kalogeropoulos, Jul 04 2021 *)
CROSSREFS
Cf. A007089.
Sequence in context: A033479 A254139 A034116 * A044999 A155473 A127629
KEYWORD
nonn,base
STATUS
approved