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

A023699
Numbers with a single 2 in their ternary expansion.
4
2, 5, 6, 7, 11, 14, 15, 16, 18, 19, 21, 22, 29, 32, 33, 34, 38, 41, 42, 43, 45, 46, 48, 49, 54, 55, 57, 58, 63, 64, 66, 67, 83, 86, 87, 88, 92, 95, 96, 97, 99, 100, 102, 103, 110, 113, 114, 115, 119, 122, 123, 124, 126, 127, 129, 130, 135, 136, 138, 139, 144, 145
OFFSET
1,1
LINKS
MATHEMATICA
Select[ Range[ 162 ], (Count[ IntegerDigits[ #, 3 ], 2 ]==1)& ]
Select[Range[200], DigitCount[#, 3, 2]==1&] (* Harvey P. Dale, Jul 26 2023 *)
CROSSREFS
KEYWORD
nonn,base,easy
STATUS
approved