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-8 of 8 results.

A174990 Partial sums of A005606.

Original entry on oeis.org

26, 41, 61, 81, 87, 93, 112, 131, 136, 150, 170, 175, 195, 215, 221, 227, 246, 265, 270, 284, 304, 324, 344, 364, 384, 404, 424, 444, 464, 484, 504, 524, 544, 564, 584, 604, 624, 644, 664, 684, 690, 696, 702, 708, 714, 720, 726, 732, 738, 744, 750, 756, 762
Offset: 0

Views

Author

Jonathan Vos Post, Apr 03 2010

Keywords

Comments

Partial sums of position of first letter of n (in English) in alphabet. The subsequence of primes in this partial sum begins: 41, 61, 131, 227, 823, 937, 1013, 1051. The subsequence of squares in this partial sum begins: 81, 324, 484, 1089.

Examples

			a(10) = 26 + 15 + 20 + 20 + 6 + 6 + 19 + 19 + 5 + 14 = 150 because "zero" starts with the 26th letter, "one" starts with the 15th letter, "two" starts with the 20th letter and so forth.
		

Crossrefs

Cf. A005606.

Formula

a(n) = SUM[i=0..n] A005606(i).

A174991 A005606 applied to itself.

Original entry on oeis.org

20, 6, 20, 20, 19, 19, 14, 14, 6, 6, 20, 6, 20, 20, 19, 19, 14, 14, 6, 6, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14
Offset: 0

Views

Author

Jonathan Vos Post, Apr 03 2010

Keywords

Comments

Position in the alphabet of the first letter of the position of the alphabet of the first letter of n (in English).

Examples

			a(0) = 20 because "zero" begins with 'Z' and 'Z' is the twentieth letter hence A005606(0)=26; "twentysix" begins with "T" which is the twentieth letter in the alphabet. a(1) = 6 because "one" begins with 'O' and 'O' is the fifteenth letter hence A005606(1)=15; "fifteen" begins with "F" which is the sixth letter in the alphabet.
		

Crossrefs

Formula

a(n) = A005606(A005606(n)).

A161377 Position of first letter of n in alphabet (in Spanish).

Original entry on oeis.org

3, 22, 4, 21, 3, 3, 20, 20, 16, 14, 4, 16, 4, 21, 3, 18, 4, 4, 4, 4, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 16
Offset: 0

Views

Author

Claudio Meller, Jun 08 2009

Keywords

Comments

The 15th letter in the Spanish alphabet is ñ. - J. Lowell, Feb 02 2021
The 27 letters in the Spanish alphabet are ABCDEFGHIJKLMNÑOPQRSTUVWXYZ, abcdefghijklmnñopqrstuvwxyz. - Omar E. Pol, Feb 03 2021

Examples

			0 = Cero begins with 'C' and 'C' is the third letter, hence a(0) = 3.
1 = Uno begins with 'U' and 'U' is the 22nd letter in the Spanish alphabet, hence a(1) = 22.
2 = Dos begins with 'D' and 'D' is the fourth letter, hence a(2) = 4.
		

Crossrefs

Cf. A005606.

Extensions

Offset corrected by Álvar Ibeas, Sep 18 2020

A114332 English spelling of n ends with a(n)-th letter of the alphabet.

Original entry on oeis.org

15, 5, 15, 5, 18, 5, 24, 14, 20, 5, 14, 14, 5, 14, 14, 14, 14, 14, 14, 14, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5
Offset: 0

Views

Author

Blaine J. Deal, Feb 06 2006

Keywords

Examples

			'One' ends with 'e', which is the 5th letter of the alphabet, hence a(1)=5.
'Two' ends with 'o', which is the 15th letter of the alphabet, hence a(2)=15.
		

Crossrefs

Programs

  • Python
    def a(n):
        if n == 0: return 15 # zerO
        if n%1000000 == 0: return 14 # millioN, billioN, ...
        r = n%100
        if r == 0: return 4 # hundreD, thousanD
        if r == 12: return 5 # twelvE
        if 10 <= r < 20: return 14 # teN, eleveN, thirteeN, ..., nineteeN
        return [25, 5, 15, 5, 18, 5, 24, 14, 20, 5][n%10] # *Y, *onE, ..., *ninE
    print([a(n) for n in range(101)]) # Michael S. Branicky, Jan 19 2022

Extensions

a(0)=15 prepended by Tanar Ulric, Jan 20 2022

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

A331481 Position of the first letter of n-th (in English) in the alphabet.

Original entry on oeis.org

26, 6, 19, 20, 6, 6, 19, 19, 5, 14, 20, 5, 20, 20, 6, 6, 19, 19, 5, 14, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19
Offset: 0

Views

Author

J. Marcel Feenstra, Jan 18 2020

Keywords

Examples

			'First' begins with 'F', the sixth letter, hence a(1)=6.
		

Crossrefs

Cf. A005606 (analog for cardinal numbers).

Programs

  • Mathematica
    a[n_] := LetterNumber @ Characters[IntegerName[n, {"English","Ordinal"}]][[1]]; Array[a, 100, 0] (* Amiram Eldar, Jan 18 2020 *)
  • Python
    from num2words import num2words
    import unidecode
    def A331481(n):
        return ord(unidecode.unidecode(num2words(n, to='ordinal')).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

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
Showing 1-8 of 8 results.