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.

A158354 a(n) is the smallest number whose name in UK English contains n vowels.

Original entry on oeis.org

2, 1, 11, 14, 71, 102, 101, 111, 114, 171, 1071, 1101, 1111, 1114, 1171, 11171, 14171, 71171, 101114, 101171, 111171, 114171, 171171, 1101114, 1101171, 1111171, 1114171, 1171171, 11171171, 14171171, 71171171, 101114171, 101171171, 111171171, 114171171, 171171171
Offset: 1

Views

Author

Rodolfo Kurchan, Mar 16 2009

Keywords

Comments

In UK English, "102" is written as "one hundred and two".
twO has 1 vowel, OnE has 2, ElEvEn has 3, fOUrtEEn has 4, sEvEntY OnE has 5, OnE hUndrEd And twO has 6, OnE hUndrEd And OnE has 7, OnE hUndrEd And ElEvEn has 8.

Programs

  • Python
    from num2words import num2words
    from itertools import count, islice
    def vowels(n): return sum(1 for c in num2words(n) if c in "aeiouy")
    def agen():
        n, adict = 1, dict()
        for k in count(1):
            v = vowels(k)
            if v not in adict: adict[v] = k
            while n in adict: yield adict[n]; n += 1
    print(list(islice(agen(), 23))) # Michael S. Branicky, Aug 09 2022

Extensions

Edited by Jon E. Schoenfield, Oct 06 2018
a(10) and beyond from Michael S. Branicky, Aug 09 2022