OFFSET
1,1
COMMENTS
Alphabetical order is with commas removed, but with spaces included, e.g., 8800 ("eight thousand eight hundred") would precede 8018 ("eight thousand eighteen").
In extending the sequence to large numbers, the "American system" (Weisstein link), also known as the "short scale" (Wikipedia link), is used.
LINKS
Eric Weisstein's World of Mathematics, Large Number
Wikipedia, Names of Large Numbers
Wiktionary, one hundred one (US)
Wiktionary, one hundred and one (UK)
EXAMPLE
a(1) = 2 since "two" is after "one".
a(2) = 200 since "two hundred" is after "two".
a(2202) = 2000000000000 since "two trillion" is after "two thousand two hundred two".
PROG
(Python)
from num2words import num2words
def n2w(n): return num2words(n).replace(" and", "").replace(chr(44), "")
def a(n):
target, t = n2w(n), n+1
while n2w(t) <= target: t += 1
return t
print([a(n) for n in range(1, 64)]) # Michael S. Branicky, Jul 23 2022
CROSSREFS
KEYWORD
nonn,word
AUTHOR
Michael S. Branicky, Jul 23 2022
STATUS
approved