login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A354523 Number of distinct letters in the English word for n that can also be found in the English word for n+1. 0

%I #24 Oct 01 2022 19:45:30

%S 2,1,1,1,1,1,1,1,2,2,2,3,2,4,4,4,4,3,4,3,5,6,5,6,6,6,6,5,6,3,5,6,5,5,

%T 6,5,6,6,6,3,5,5,5,5,5,6,6,6,7,4,4,5,4,5,4,4,5,5,5,3,5,6,5,6,6,5,5,6,

%U 6,5,6,7,6,7,7,7,6,6,7,4,6,7,6,7,7,6,7,6,6,5,5,6,5,6,6,5,6,5,5,2,7

%N Number of distinct letters in the English word for n that can also be found in the English word for n+1.

%C US English is assumed (i.e., 101 = 'one hundred one' instead of 'one hundred and one').

%C There are no zero values since min{a(k) | 0 <= k < 1000} = 1 and "nine" and "one" share common letters whenever the initial power name changes. - _Michael S. Branicky_, Aug 19 2022

%e a(0) = 2 since the letters 'e' and 'o' in 'zero' can also be found in 'one'.

%e a(11)= 3 since the letters 'e', 'l' and 'v' in 'eleven' can also be found in 'twelve'.

%t a[n_]:= Length[Intersection[Characters[IntegerName[n]], Characters[IntegerName[n+1]], CharacterRange["a","z"]]]; Array[a,101,0] (* _Stefano Spezia_, Aug 19 2022 *)

%o (Python)

%o from num2words import num2words as n2w

%o def b(n): return set(c for c in n2w(n).replace(" and", "") if c.isalpha())

%o def a(n): return len(b(n) & b(n+1))

%o print([a(n) for n in range(101)]) # _Michael S. Branicky_, Aug 19 2022

%K nonn,easy,word

%O 0,1

%A _Ray G. Opao_, Aug 16 2022

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 17 19:13 EDT 2024. Contains 374377 sequences. (Running on oeis4.)