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.

A169639 Write n in French (cf. A167507) and sum the letters using a=1, ..., z=26.

Original entry on oeis.org

64, 35, 54, 81, 82, 43, 52, 60, 58, 46, 37, 60, 71, 83, 123, 92, 64, 97, 95, 83, 72, 132, 126, 153, 154, 115, 124, 132, 130, 118, 82, 142, 136, 163, 164, 125, 134, 142, 140, 128, 97, 157, 151, 178, 179, 140, 149, 157, 155, 143, 104, 164, 158, 185, 186, 147, 156, 164
Offset: 0

Views

Author

Jacques ALARDET, Apr 04 2010

Keywords

Comments

Accents are ignored. - Chai Wah Wu, Jun 11 2021

Examples

			From _Omar E. Pol_, Jun 15 2021: (Start)
-----------------------------------------------------
   n      Name      Calculation                  a(n)
-----------------------------------------------------
   0      Zero      26 +  5 + 18 + 15           = 64
   1      Un        21 + 14                     = 35
   2      Deux       4 +  5 + 21 + 24           = 54
   3      Trois     20 + 18 + 15 +  9 + 19      = 81
   4      Quatre    17 + 21 +  1 + 20 + 18 +  5 = 82
   5      Cinq       3 +  9 + 14 + 17           = 43
   6      Six       19 +  9 + 24                = 52
   7      Sept      19 +  5 + 16 + 20           = 60
   8      Huit       8 + 21 +  9 + 20           = 58
   9      Neuf      14 +  5 + 21 +  6           = 46
  10      Dix        4 +  9 + 24                = 37
  11      Onze      15 + 14 + 26 +  5           = 60
  12      Douze      4 + 15 + 21 + 26 +  5      = 71
... (End)
		

Crossrefs

Cf. A167507, A169641 ("limit points").
For other languages see A073327 (U.S. English), A119945 (German), A161406 (Spanish).

Programs

  • PARI
    A169639(n)=vecsum([t%32|t<-Vecsmall(French(n)),t>64]) \\ Cf. A167507 for French(). - M. F. Hasler, Apr 08 2023
  • Python
    from num2words import num2words
    from unidecode import unidecode
    def A169639(n): return sum(ord(s)-96 for s in unidecode(num2words(n,lang='fr')) if s.isalpha()) # Chai Wah Wu, Jun 11 2021
    

Extensions

Edited by N. J. A. Sloane, Apr 05 2010
Offset corrected by Mohammed Yaseen, Jun 11 2021