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.

Showing 1-2 of 2 results.

A277685 Position of first letter of n (in Portuguese) in alphabet.

Original entry on oeis.org

26, 21, 4, 20, 17, 3, 19, 19, 15, 14, 4, 15, 4, 20, 17, 17, 4, 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
Offset: 0

Views

Author

João M. de Medeiros, Oct 26 2016

Keywords

Comments

Fourteen has two spellings in Portuguese: "quatorze" and "catorze". I chose the first one because it's the most used.

Examples

			"Um" -- Portuguese for one -- begins with U, which is the 21st letter in the alphabet, so a(1)=21.
		

Crossrefs

Programs

  • Python
    from num2words import num2words
    import unidecode
    def A277685(n): # output differs from sequence at n=14 due to multiple spellings.
        return ord(unidecode.unidecode(num2words(n, lang='pt')).lower()[0]) - 96 # Chai Wah Wu, Feb 27 2020

A331482 Position of the first letter of n (in Dutch) in the alphabet.

Original entry on oeis.org

14, 5, 20, 4, 22, 22, 26, 26, 1, 14, 20, 5, 20, 4, 22, 22, 26, 26, 1, 14, 20, 5, 20, 4, 22, 22, 26, 26, 1, 14, 4, 5, 20, 4, 22, 22, 26, 26, 1, 14, 22, 5, 20, 4, 22, 22, 26, 26, 1, 14, 22, 5, 20, 4, 22, 22, 26, 26, 1, 14, 26, 5, 20, 4, 22, 22, 26, 26, 1, 14, 26
Offset: 0

Views

Author

J. Marcel Feenstra, Jan 18 2020

Keywords

Examples

			'Een' (Dutch for 'one') begins with 'E', the fifth letter of the alphabet, hence a(1)=5.
		

Crossrefs

Cf. A005606 (English), A161377 (Spanish), A277685 (Portuguese).
Cf. other Dutch sequences: A090589, A247802.

Programs

  • Mathematica
    a[n_] := LetterNumber @ Characters[IntegerName[n, {"Dutch","Ordinal"}]][[1]]; Array[a, 100, 0] (* Amiram Eldar, Jan 18 2020 *)
  • Python
    from num2words import num2words
    import unidecode
    def A331482(n):
        return ord(unidecode.unidecode(num2words(n, lang='nl')).lower()[0]) - 96 # Chai Wah Wu, Feb 27 2020
Showing 1-2 of 2 results.