A378560 Numbers with the median of the digits equal to one of the digits.
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
Examples
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.
Links
- Stefano Spezia, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Mathematica
Select[Range[0,140],MemberQ[digits=IntegerDigits[#],Median[digits]] &]