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

A043497
Numbers having one 2 in base 10.
11
2, 12, 20, 21, 23, 24, 25, 26, 27, 28, 29, 32, 42, 52, 62, 72, 82, 92, 102, 112, 120, 121, 123, 124, 125, 126, 127, 128, 129, 132, 142, 152, 162, 172, 182, 192, 200, 201, 203, 204, 205, 206, 207, 208, 209, 210, 211, 213, 214, 215
OFFSET
1,1
MATHEMATICA
Select[Range[9000], DigitCount[#, 10, 2]==1&] (* Enrique Pérez Herrero, Nov 29 2013 *)
KEYWORD
nonn,base,easy
STATUS
approved