login
A157900
a(n) is the smallest number whose name in UK English contains n consonants.
0
1, 2, 3, 12, 13, 22, 23, 300, 101, 102, 103, 112, 113, 122, 123, 223, 323, 1112, 1113, 1122, 1123, 1223, 1323, 2323, 3323, 12323, 13323, 22323, 23323, 101223, 101323, 102323, 103323, 112323, 113323, 122323, 123323, 223323, 323323, 1113323, 1122323, 1123323, 1223323, 1323323
OFFSET
1,2
COMMENTS
In UK English, "101" is written as "one hundred and one".
oNe has 1 consonant, TWo has 2, THRee has 3, TWeLVe has 4, THiRTeeN has 5, TWeNTyTWo has 6, TWeNTyTHRee has 7, THRee HuNDReD has 8, oNe HuNDReD aND oNe has 9, oNe HuNDReD aND TWo has 10, oNe HuNDReD aND THRee has 11, oNe HuNDReD aND TWeLVe has 12.
LINKS
PROG
(Python)
from num2words import num2words
from itertools import count, islice
def c(n): return sum(1 for c in num2words(n) if c in "bcdfghjklmnpqrstvwxz")
def agen():
n, adict = 1, dict()
for k in count(1):
v = c(k)
if v not in adict: adict[v] = k
while n in adict: yield adict[n]; n += 1
print(list(islice(agen(), 39))) # Michael S. Branicky, Aug 09 2022
CROSSREFS
Sequence in context: A032805 A239017 A157899 * A157902 A102660 A081347
KEYWORD
nonn,word
AUTHOR
Rodolfo Kurchan, Mar 08 2009
EXTENSIONS
Edited by Jon E. Schoenfield, Oct 06 2018
a(18) and beyond from Michael S. Branicky, Aug 09 2022
STATUS
approved