OFFSET
0,1
COMMENTS
Accents are ignored. - Chai Wah Wu, Jun 11 2021
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..10000
EXAMPLE
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)
PROG
(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
(PARI) A169639(n)=vecsum([t%32|t<-Vecsmall(French(n)), t>64]) \\ Cf. A167507 for French(). - M. F. Hasler, Apr 08 2023
CROSSREFS
KEYWORD
AUTHOR
Jacques ALARDET, Apr 04 2010
EXTENSIONS
Edited by N. J. A. Sloane, Apr 05 2010
Offset corrected by Mohammed Yaseen, Jun 11 2021
STATUS
approved