cp's OEIS Frontend

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.

A331498 Position of the first letter of n (in French) in the alphabet.

This page as a plain text file.
%I A331498 #16 Jul 27 2024 22:06:21
%S A331498 26,21,4,20,17,3,19,19,8,14,4,15,4,20,17,17,19,4,4,4,22,22,22,22,22,
%T A331498 22,22,22,22,22,20,20,20,20,20,20,20,20,20,20,17,17,17,17,17,17,17,17,
%U A331498 17,17,3,3,3,3,3,3,3,3,3,3,19,19,19,19,19,19,19,19,19,19
%N A331498 Position of the first letter of n (in French) in the alphabet.
%H A331498 Le conjugueur, <a href="https://leconjugueur.lefigaro.fr/uklesnombresecrits.php">Most used numbers (from Le Figaro)</a>
%e A331498 'Un' (French for 'one') begins with 'U', the twenty-first letter of the alphabet, hence a(1)=21.
%t A331498 a[n_] := LetterNumber @ Characters[IntegerName[n, "French"]][[1]]; Array[a, 100, 0]  (* _Amiram Eldar_, Jan 18 2020 *)
%o A331498 (Python)
%o A331498 from num2words import num2words
%o A331498 import unidecode
%o A331498 def A331498(n):
%o A331498     return ord(unidecode.unidecode(num2words(n, lang='fr')).lower()[0]) - 96 # _Chai Wah Wu_, Feb 27 2020
%Y A331498 Cf. A005606.
%K A331498 nonn,word
%O A331498 0,1
%A A331498 _J. Marcel Feenstra_, Jan 18 2020