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.

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

This page as a plain text file.
%I A277685 #25 Feb 27 2020 22:50:05
%S A277685 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 A277685 22,22,22,22,22,20,20,20,20,20,20,20,20,20,20,17,17,17,17,17,17,17,17,
%U A277685 17,17,3,3,3,3,3,3,3,3,3,3,19,19,19,19,19,19
%N A277685 Position of first letter of n (in Portuguese) in alphabet.
%C A277685 Fourteen has two spellings in Portuguese: "quatorze" and "catorze". I chose the first one because it's the most used.
%H A277685 João M. de Medeiros, <a href="/A277685/b277685.txt">Table of n, a(n) for n = 0..999</a>
%e A277685 "Um" -- Portuguese for one -- begins with U, which is the 21st letter in the alphabet, so a(1)=21.
%o A277685 (Python)
%o A277685 from num2words import num2words
%o A277685 import unidecode
%o A277685 def A277685(n): # output differs from sequence at n=14 due to multiple spellings.
%o A277685     return ord(unidecode.unidecode(num2words(n, lang='pt')).lower()[0]) - 96 # _Chai Wah Wu_, Feb 27 2020
%Y A277685 Cf. A005606, A161377.
%K A277685 word,nonn
%O A277685 0,1
%A A277685 _João M. de Medeiros_, Oct 26 2016