OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1)=1 from oNe & zErO, a(2)=2 from TWo & One, a(3)=4 from tHREE & Two, a(8)=4 from eIGHT & sEven, etc.
a(20)=3 from tWenTY & nineTEeN.
PROG
(Python)
from collections import Counter
from num2words import num2words
def n2w(n): return "".join(c for c in num2words(n).replace(" and", "") if c.isalpha())
def a(n): return (Counter(n2w(n)) - Counter(n2w(n-1))).total()
print([a(n) for n in range(1, 103)]) # Michael S. Branicky, Jan 13 2026
CROSSREFS
KEYWORD
nonn,word
AUTHOR
Rodolfo Kurchan, Apr 18 2006
EXTENSIONS
Offset, a(1) and a(20) corrected and a(24) onward from Michael S. Branicky, Jan 13 2026
STATUS
approved
