|
|
A158354
|
|
a(n) is the smallest number whose name in UK English contains n vowels.
|
|
3
|
|
|
2, 1, 11, 14, 71, 102, 101, 111, 114, 171, 1071, 1101, 1111, 1114, 1171, 11171, 14171, 71171, 101114, 101171, 111171, 114171, 171171, 1101114, 1101171, 1111171, 1114171, 1171171, 11171171, 14171171, 71171171, 101114171, 101171171, 111171171, 114171171, 171171171
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
In UK English, "102" is written as "one hundred and two".
twO has 1 vowel, OnE has 2, ElEvEn has 3, fOUrtEEn has 4, sEvEntY OnE has 5, OnE hUndrEd And twO has 6, OnE hUndrEd And OnE has 7, OnE hUndrEd And ElEvEn has 8.
|
|
LINKS
|
|
|
PROG
|
(Python)
from num2words import num2words
from itertools import count, islice
def vowels(n): return sum(1 for c in num2words(n) if c in "aeiouy")
def agen():
n, adict = 1, dict()
for k in count(1):
v = vowels(k)
if v not in adict: adict[v] = k
while n in adict: yield adict[n]; n += 1
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,word
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|