login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A031453
Numbers whose base-3 representation has one more 0 than 2's.
0
3, 10, 12, 18, 29, 31, 33, 37, 39, 45, 55, 57, 63, 86, 88, 92, 94, 96, 100, 102, 110, 112, 114, 118, 120, 126, 136, 138, 144, 164, 166, 168, 172, 174, 180, 190, 192, 198, 216, 251, 257, 259, 263, 265, 267, 275, 277, 281, 283, 285
OFFSET
1,1
MATHEMATICA
Select[Range@300, (s=#; Differences[Count[IntegerDigits[s, 3], #]&/@{0, 2}]=={-1})&] (* Giorgos Kalogeropoulos, Jul 04 2021 *)
CROSSREFS
Cf. A007089.
Sequence in context: A358892 A358893 A317671 * A345961 A179203 A371476
KEYWORD
nonn,base
STATUS
approved