A073029 Names for numbers in American English, with each letter transformed into its index in the alphabet.
26, 5, 18, 15, 15, 14, 5, 20, 23, 15, 20, 8, 18, 5, 5, 6, 15, 21, 18, 6, 9, 22, 5, 19, 9, 24, 19, 5, 22, 5, 14, 5, 9, 7, 8, 20, 14, 9, 14, 5, 20, 5, 14, 5, 12, 5, 22, 5, 14, 20, 23, 5, 12, 22, 5, 20, 8, 9, 18, 20, 5, 5, 14, 6, 15, 21, 18, 20, 5, 5, 14, 6, 9, 6, 20, 5, 5, 14, 19, 9, 24, 20, 5
Offset: 0
Examples
Top row is for "zero"; "z" is the 26th letter in the alphabet, "e" the fifth, "r" the 18th and "o" the 15th, so the first row is 26,5,18,15.
Links
- M. F. Hasler, Table of n, a(n) for n = 0..18454 (rows 0..1000 "flattened"), Feb 06 2016
- M. F. Hasler, rows 0 - 1000, Feb 06 2016
- Robert G. Wilson v, American English names for the numbers from 0 to 100999 without spaces or hyphens, Jun 08 2010
Programs
-
Mathematica
alef=Characters["abcdefghijklmnopqrstuvwxyz"]; numb="zeroonetwothreefourfivesixseveneightnineteneleven[...]"; ch=Characters[numb]; seq[n_] := Position[alef, ch[[n]]][[1, 1]] (* Franklin T. Adams-Watters, Jun 02 2006 *) (* see the link to a001477.txt, copy the first 17 lines and then paste and assign to the variable 'str' as a string as follows *) str = "zeroonetwothreefourfivesixseveneightnineteneleventwelvethirteenfourteenfifteensixteen"; Characters@ str /. Flatten[ Table[ {FromCharacterCode[96 + n] -> n}, {n, 26}]] (* Robert G. Wilson v, Jun 08 2010 *)
-
PARI
A073029_row(n)=select(t->t>64,Vec(Vecsmall(English(n))))%32 \\ See A052360 for English(). - M. F. Hasler, Feb 06 2016
-
Python
from num2words import num2words def row(n): return [ord(c)-96 for c in num2words(n).replace(" and", "") if c.isalpha()] print([e for n in range(17) for e in row(n)]) # Michael S. Branicky, Apr 22 2023
Extensions
Corrected and extended by Franklin T. Adams-Watters, Jun 02 2006, Oct 24 2006
Comments