login
Number of letters in the British English name of n, excluding spaces and hyphens.
4

%I #17 Nov 15 2023 13:13:49

%S 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,

%T 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,

%U 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

%N Number of letters in the British English name of n, excluding spaces and hyphens.

%H Michael S. Branicky, <a href="/A362123/b362123.txt">Table of n, a(n) for n = 0..10000</a>

%o (Python)

%o from num2words import num2words

%o def a(n): return sum(1 for c in num2words(n, lang='en_GB') if c.isalpha())

%o print([a(n) for n in range(121)]) # _Michael S. Branicky_, Apr 21 2023

%Y Cf. A005589.

%K nonn,word

%O 0,1

%A _N. J. A. Sloane_, Apr 20 2023

%E More than the usual number of terms are shown in the DATA field to avoid confusion with A005589.