A362123 Number of letters in the British English name of n, excluding spaces and hyphens.
4, 3, 3, 5, 4, 4, 3, 5, 5, 4, 3, 6, 6, 8, 8, 7, 7, 9, 8, 8, 6, 9, 9, 11, 10, 10, 9, 11, 11, 10, 6, 9, 9, 11, 10, 10, 9, 11, 11, 10, 5, 8, 8, 10, 9, 9, 8, 10, 10, 9, 5, 8, 8, 10, 9, 9, 8, 10, 10, 9, 5, 8, 8, 10, 9, 9, 8, 10, 10, 9, 7, 10, 10, 12, 11, 11, 10, 12, 12, 11, 6, 9, 9, 11, 10, 10, 9, 11, 11, 10, 6, 9, 9, 11, 10, 10, 9, 11, 11, 10, 10, 16, 16, 18, 17, 17, 16, 18, 18, 17, 16, 19, 19, 21, 21, 20, 20, 22, 21, 21, 19
Offset: 0
Links
- Michael S. Branicky, Table of n, a(n) for n = 0..10000
Crossrefs
Cf. A005589.
Programs
-
Python
from num2words import num2words def a(n): return sum(1 for c in num2words(n, lang='en_GB') if c.isalpha()) print([a(n) for n in range(121)]) # Michael S. Branicky, Apr 21 2023
Extensions
More than the usual number of terms are shown in the DATA field to avoid confusion with A005589.