OFFSET
0,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..10000
EXAMPLE
a(0)=2 from OnE and zErO, a(1)=1 from twO and One, a(2)=1 from Three and Two, a(7)=1 from Eight and sEven, etc.
a(101)=11 from ONEHUNDREDtwO and ONEHUNDREDOne.
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(103)]) # Michael S. Branicky, Jan 13 2026
CROSSREFS
KEYWORD
nonn,word
AUTHOR
Rodolfo Kurchan, Mar 26 2006
EXTENSIONS
Corrected and edited by Robert G. Wilson v, Apr 06 2006
STATUS
approved
