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.

A037196 Number of vowels in the American English name of n.

Original entry on oeis.org

2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 3, 2, 3, 4, 3, 3, 4, 4, 4, 1, 3, 2, 3, 3, 3, 2, 3, 3, 3, 1, 3, 2, 3, 3, 3, 2, 3, 3, 3, 1, 3, 2, 3, 3, 3, 2, 3, 3, 3, 1, 3, 2, 3, 3, 3, 2, 3, 3, 3, 1, 3, 2, 3, 3, 3, 2, 3, 3, 3, 2, 4, 3, 4, 4, 4, 3, 4, 4, 4, 2, 4, 3, 4, 4, 4, 3, 4, 4, 4, 2, 4, 3, 4, 4, 4, 3, 4, 4, 4, 4, 6, 5, 6, 6
Offset: 0

Views

Author

Keywords

Comments

"American English" means that there is no "and" in the names of numbers, cf. example. - M. F. Hasler, Aug 26 2020

Examples

			a(20) = 1 for "twEnty" with 1 vowel: 'y' does not count.
a(101) = 6 for "OnE hUndrEd OnE" with 6 vowels: no "and" as in the "British" variant "one hundred and one" which would have 7 vowels.
		

Crossrefs

Cf. A005589, A052360 (number of letters in English name of numbers with/without spaces and dashes).
Sequences related to vowels: A102869, A158352, A158354 (smallest number with n [distinct] vowels in AE / BE), A158353, A158355 (ditto, increasing), A058179 (all 5 vowels), A058180 (ditto, exactly once), A000852, A000861 (start/end with vowel), A019270, A080518 (self-describing), A059437, A079741, A152592, A174879, A241858, A332068, A332069.

Programs

  • PARI
    vowels=Vec("aeiou"); apply( {A037196(n)=#[c|c<-Vec(English(n)),setsearch(vowels,c)]}, [0..104]) \\ see A052360 for English(). - M. F. Hasler, Aug 26 2020
    
  • Python
    from num2words import num2words
    def a(n): return sum(1 for c in num2words(n).replace(" and", "") if c in "aeiou")
    print([a(n) for n in range(105)]) # Michael S. Branicky, Mar 23 2025

Extensions

More terms from Larry Reeves (larryr(AT)acm.org), Sep 25 2000
Name edited and crossrefs added by M. F. Hasler, Aug 26 2020
a(19)=4 corrected by Sean A. Irvine, Dec 16 2020