The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A331481 Position of the first letter of n-th (in English) in the alphabet. 0

%I #15 Feb 27 2020 22:50:10

%S 26,6,19,20,6,6,19,19,5,14,20,5,20,20,6,6,19,19,5,14,20,20,20,20,20,

%T 20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,6,6,6,6,6,6,6,6,6,6,6,6,

%U 6,6,6,6,6,6,6,6,19,19,19,19,19,19,19,19,19,19,19,19

%N Position of the first letter of n-th (in English) in the alphabet.

%e 'First' begins with 'F', the sixth letter, hence a(1)=6.

%t a[n_] := LetterNumber @ Characters[IntegerName[n, {"English","Ordinal"}]][[1]]; Array[a, 100, 0] (* _Amiram Eldar_, Jan 18 2020 *)

%o (Python)

%o from num2words import num2words

%o import unidecode

%o def A311481(n):

%o return ord(unidecode.unidecode(num2words(n, to='ordinal')).lower()[0]) - 96 # _Chai Wah Wu_, Feb 27 2020

%Y Cf. A005606 (analog for cardinal numbers).

%K nonn,word

%O 0,1

%A _J. Marcel Feenstra_, Jan 18 2020

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 June 6 16:10 EDT 2024. Contains 373133 sequences. (Running on oeis4.)