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.

Showing 1-2 of 2 results.

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

A332068 Numbers whose English name has at least two vowels and all the vowels are in alphabetical order.

Original entry on oeis.org

0, 3, 4, 7, 8, 11, 12, 17, 22, 23, 24, 26, 27, 28, 32, 34, 36, 42, 44, 52, 54, 56, 62, 64, 66, 70, 72, 73, 74, 76, 77, 78, 80, 82, 84, 86, 3000000, 3000002, 3000004, 3000040, 3000042, 3000044, 6000000, 6000002, 6000004, 6000040, 6000042, 6000044, 7000000, 7000002, 7000004
Offset: 1

Views

Author

M. F. Hasler, Aug 10 2020

Keywords

Comments

Here (as in most OEIS sequences) vowel means one of the five letters A, E, I, O or U. (One could imagine variants that use Y, too.)
No number with "hUndrEd", "thoUsAnd", or "One / twO / foUr mIllioN" (or "fIvE, nInE"...) in it has the required property.
The vowels are counted with multiplicity: e.g., "thrEE" with two 'E's is listed.
The subsequence of numbers which have at least two distinct vowels in alphabetical order is 0, 4, 8, 22, 24, 26, 28, 32, 34, 44, 52, 54, 62, 64, 72, 74, 76, 78, 80, 82, 84, 86, 3000000, ...

Examples

			Numbers 0, 3, 4, ... have the required property, since their English names are "zErO", "thrEE", "fOUr", ...
Numbers 1, 2, 5, ... ("OnE", "twO", "fIvE", ...) don't have the property (vowels in incorrect order or less than two).
		

Crossrefs

Cf. A052360.
A095947 \ {10} is the subset of numbers having only vowel E, and more than once.
Sequences related to vowels: A037196 (# 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.
See A332069 for numbers having all 5 vowels, in alphabetical order.

Programs

  • PARI
    select( {is_A332068(n,v=Vec("aeiou"))=#(t=[c|c<-Vec(English(n)),setsearch(v,c)])>1&&t==vecsort(t)}, [0..999]) \\ See A052360 for English(). Insert "Set" after '#' to get the subset of numbers with > 1 distinct vowels.
Showing 1-2 of 2 results.