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

A378560
Numbers with the median of the digits equal to one of the digits.
0
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140
OFFSET
1,3
EXAMPLE
10 is not in the list because the median of its digits is not integer.
13 is not in the list because the median of its digits is 2 which is not a digit of 13.
113 is in the list because the median of its digits is 1 which is a digit of 113.
MATHEMATICA
Select[Range[0, 140], MemberQ[digits=IntegerDigits[#], Median[digits]] &]
KEYWORD
nonn,base,easy,new
AUTHOR
Stefano Spezia, Nov 30 2024
STATUS
approved