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.

Original entry on oeis.org

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, 22, 22, 22, 22, 22, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19
Offset: 0

Views

Author

J. Marcel Feenstra, Jan 18 2020

Keywords

Examples

			'Un' (French for 'one') begins with 'U', the twenty-first letter of the alphabet, hence a(1)=21.
		

Crossrefs

Cf. A005606.

Programs

  • Mathematica
    a[n_] := LetterNumber @ Characters[IntegerName[n, "French"]][[1]]; Array[a, 100, 0]  (* Amiram Eldar, Jan 18 2020 *)
  • Python
    from num2words import num2words
    import unidecode
    def A331498(n):
        return ord(unidecode.unidecode(num2words(n, lang='fr')).lower()[0]) - 96 # Chai Wah Wu, Feb 27 2020