login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073029 Names for numbers in American English, with each letter transformed into its index in the alphabet. 8

%I #39 Apr 23 2023 02:20:45

%S 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,

%T 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,

%U 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

%N Names for numbers in American English, with each letter transformed into its index in the alphabet.

%C Irregular triangle read by rows, in which row n lists the successive indices of the letters in the American English name for n. For example, row one is 15, 14, 5. - _N. J. A. Sloane_, Apr 22 2023

%C Find smallest n's for which a(n)=1,2,3,4,...,26.

%C A: The numbers 10 and 11 never occur. The rows in which the others occur first (assuming use of the "short scale") are 1000 (thousAnd), 10^9 (Billion), 10^27 (oCtillion), 100 (hunDred), 0 (zEro), 4 (Four), 8 (eiGht), 3 (tHree), 5 (fIve), --, -- (j & k don't occur in English names of numbers), 11 (eLeven), 10^6 (Million), 1 (oNe), 0 (zerO), 10^24 (sePtillion), 10^15 (Quadrillion), 0 (zeRo), 6 (Six), 2 (Two), 4 (foUr), 5 (fiVe), 2 (tWo), 6 (siX), 20 (twentY), 0 (Zero). Converting the position in the row plus the preceding row lengths to a linear index n this yields (after subtracting 1 to match offset 0 of the sequence): 18452, ?, ?, 864, 1, 15, 33, 11, 20, -, -, 44, ?, 5, 3, ?, ?, 2, 23, 7, 17, 21, 8, 25, 115, 0. The graph nicely shows the position & frequency of the individual letters. - _M. F. Hasler_, Feb 06 2016

%H M. F. Hasler, <a href="/A073029/b073029.txt">Table of n, a(n) for n = 0..18454</a> (rows 0..1000 "flattened"), Feb 06 2016

%H M. F. Hasler, <a href="/A073029/a073029.txt">rows 0 - 1000</a>, Feb 06 2016

%H Robert G. Wilson v, <a href="/A001477/a001477.txt">American English names for the numbers from 0 to 100999 without spaces or hyphens</a>, Jun 08 2010

%e 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.

%t alef=Characters["abcdefghijklmnopqrstuvwxyz"]; numb="zeroonetwothreefourfivesixseveneightnineteneleven[...]"; ch=Characters[numb]; seq[n_] := Position[alef, ch[[n]]][[1, 1]]. (* _Franklin T. Adams-Watters_, Jun 02 2006 *)

%t (* 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 *)

%t str = "zeroonetwothreefourfivesixseveneightnineteneleventwelvethirteenfourteenfifteensixteen";

%t Characters@ str /. Flatten[ Table[ {FromCharacterCode[96 + n] -> n}, {n, 26}]] (* _Robert G. Wilson v_, Jun 08 2010 *)

%o (PARI) A073029_row(n)=select(t->t>64,Vec(Vecsmall(English(n))))%32 \\ See A052360 for English(). - _M. F. Hasler_, Feb 06 2016

%o (Python)

%o from num2words import num2words

%o def row(n): return [ord(c)-96 for c in num2words(n).replace(" and", "") if c.isalpha()]

%o print([e for n in range(17) for e in row(n)]) # _Michael S. Branicky_, Apr 22 2023

%Y Cf. A005589 (row lengths).

%Y Cf. A073327 (row sums).

%Y Cf. A072922.

%K word,nonn,easy,tabf,look

%O 0,1

%A _Zak Seidov_, Aug 22 2002

%E Corrected and extended by _Franklin T. Adams-Watters_, Jun 02 2006, Oct 24 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 16:58 EDT 2024. Contains 371254 sequences. (Running on oeis4.)