OFFSET
1,2
COMMENTS
Indices of records in A005589 (which only counts letters, but not spaces and punctuation, in the English name of numbers).
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..597 (terms < 10^54)
Eric Weisstein's World of Mathematics, Number
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
Sequence A052362 uses A052360 which also counts spaces and dashes, therefore "twenty-one" is in that sequence but not in this one: it uses one more character ('-') but has the same number of letters than "seventeen". - M. F. Hasler, Aug 12 2020
PROG
(PARI) m=0; for(n=0, 2e6, if(m<A005589(n), m=A005589(n); print1(n", "))) \\ M. F. Hasler, Aug 12 2020
(Python)
from itertools import count, islice
from num2words import num2words as n2w
def f(n): return sum(1 for c in n2w(n).replace(" and", "") if c.isalpha())
def agen():
record = 0
for n in count(0):
value = f(n)
if value > record: yield n; record = value
n += 1
print(list(islice(agen(), 40))) # Michael S. Branicky, Jul 12 2022
CROSSREFS
KEYWORD
nonn,word
AUTHOR
Allan C. Wechsler, Mar 07 2000
EXTENSIONS
Edited by R. J. Mathar and T. D. Noe, Apr 09 2009
Minor edits by Ray Chandler, Jul 22 2009
a(41) and beyond from Michael S. Branicky, Jul 12 2022
STATUS
approved