login
Consider the English number names for numbers from 1 to n, sorted in lexicographic order: the number name for a(n) gives the median in this list.
1

%I #5 Jan 28 2014 00:51:56

%S 1,1,3,1,1,1,7,1,1,1,1,1,7,1,1,1,7,1,1,1,7,7,17,17,6,6,16,16,10,10,13,

%T 13,30,30,35,35,34,35,34,35,35,38,38,30,30,13,13,10,10,16,16,6,6,17,

%U 17,7,7,1,1,1,7,7,17,17,6,6,16,16,60,16,16,6,6,72,72,73,73,76,76,77,77,71

%N Consider the English number names for numbers from 1 to n, sorted in lexicographic order: the number name for a(n) gives the median in this list.

%C 0 <= #{i: 1<=i<=n and ENW(i)<=ENW(a(n))} - #{i: 1<=i<=n and ENW(i)>ENW(a(n))} <= 1, where ENW(n) = number word for n in English.

%H R. Zumkeller, <a href="/A157964/b157964.txt">Table of n, a(n) for n = 1..1000</a>

%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Median">Median</a>

%H Robert G. Wilson v, <a href="/A000027/a000027.txt">English names for the numbers from 0 to 11159 without spaces or hyphens</a>

%e a(7)=7 ->seven: five<four<one<[seven]<six<three<two;

%e a(8)=1 ->one: eight<five<four<[one]<seven<six<three<two;

%e a(9)=1 ->one: eight<five<four<nine<[one]<seven<six<three<two.

%Y A000027, A157943.

%K nonn,word,look

%O 1,3

%A _Reinhard Zumkeller_, Mar 10 2009