login
Position of first letter of n (in Portuguese) in alphabet.
2

%I #25 Feb 27 2020 22:50:05

%S 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,

%T 22,22,22,22,22,20,20,20,20,20,20,20,20,20,20,17,17,17,17,17,17,17,17,

%U 17,17,3,3,3,3,3,3,3,3,3,3,19,19,19,19,19,19

%N Position of first letter of n (in Portuguese) in alphabet.

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

%H João M. de Medeiros, <a href="/A277685/b277685.txt">Table of n, a(n) for n = 0..999</a>

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

%o (Python)

%o from num2words import num2words

%o import unidecode

%o def A277685(n): # output differs from sequence at n=14 due to multiple spellings.

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

%Y Cf. A005606, A161377.

%K word,nonn

%O 0,1

%A _João M. de Medeiros_, Oct 26 2016