A366208 Numbers whose median of the digits is equal to 2.
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
Examples
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.
Crossrefs
Programs
-
Mathematica
Select[Range[0,251], Median[IntegerDigits[#]]==2&]