[go: up one dir, main page]

login
A157964
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
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, 13, 30, 30, 35, 35, 34, 35, 34, 35, 35, 38, 38, 30, 30, 13, 13, 10, 10, 16, 16, 6, 6, 17, 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
OFFSET
1,3
COMMENTS
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.
EXAMPLE
a(7)=7 ->seven: five<four<one<[seven]<six<three<two;
a(8)=1 ->one: eight<five<four<[one]<seven<six<three<two;
a(9)=1 ->one: eight<five<four<nine<[one]<seven<six<three<two.
CROSSREFS
KEYWORD
nonn,word,look
AUTHOR
Reinhard Zumkeller, Mar 10 2009
STATUS
approved