This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A331481 #18 Jul 27 2024 22:06:03 %S A331481 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 A331481 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 A331481 6,6,6,6,6,6,6,6,19,19,19,19,19,19,19,19,19,19,19,19 %N A331481 Position of the first letter of n-th (in English) in the alphabet. %e A331481 'First' begins with 'F', the sixth letter, hence a(1)=6. %t A331481 a[n_] := LetterNumber @ Characters[IntegerName[n, {"English","Ordinal"}]][[1]]; Array[a, 100, 0] (* _Amiram Eldar_, Jan 18 2020 *) %o A331481 (Python) %o A331481 from num2words import num2words %o A331481 import unidecode %o A331481 def A331481(n): %o A331481 return ord(unidecode.unidecode(num2words(n, to='ordinal')).lower()[0]) - 96 # _Chai Wah Wu_, Feb 27 2020 %Y A331481 Cf. A005606 (analog for cardinal numbers). %K A331481 nonn,word %O A331481 0,1 %A A331481 _J. Marcel Feenstra_, Jan 18 2020