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”).

A031457
Numbers whose base-3 representation has one fewer 0 than 2's.
0
2, 5, 7, 14, 16, 20, 22, 24, 35, 41, 43, 47, 49, 51, 59, 61, 65, 67, 69, 73, 75, 98, 104, 106, 116, 122, 124, 128, 130, 132, 140, 142, 146, 148, 150, 154, 156, 170, 176, 178, 182, 184, 186, 194, 196, 200, 202, 204, 208, 210, 218, 220
OFFSET
1,1
MATHEMATICA
Select[Range[250], DigitCount[#, 3, 0]==DigitCount[#, 3, 2]-1&] (* Harvey P. Dale, Jun 29 2017 *)
CROSSREFS
Cf. A007089.
Sequence in context: A007438 A338205 A230301 * A044990 A266259 A133146
KEYWORD
nonn,base
STATUS
approved