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

A366208
Numbers whose median of the digits is equal to 2.
8
2, 13, 22, 31, 40, 122, 123, 124, 125, 126, 127, 128, 129, 132, 142, 152, 162, 172, 182, 192, 202, 203, 204, 205, 206, 207, 208, 209, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 240, 241, 242, 250, 251
OFFSET
1,1
EXAMPLE
13 is a term since the median of the digits 1 and 3 is (1+3)/2 = 2;
122 is a term since the median of the digits 1, 2, and 2 is 2.
MATHEMATICA
Select[Range[0, 251], Median[IntegerDigits[#]]==2&]
CROSSREFS
Cf. A292730 (median = 0), A292739 (median = 9), A366207 (median = 1), A366209 (median = 3), A366210 (median = 4), A366211 (median = 5), A366212 (median = 6), A366213 (median = 7), A366214 (median = 8).
Sequence in context: A085509 A127485 A061385 * A304815 A156179 A090519
KEYWORD
nonn,base,easy
AUTHOR
Stefano Spezia, Oct 04 2023
STATUS
approved