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.

A075774 Number of syllables in n in American English.

Original entry on oeis.org

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

Views

Author

Ethan B. Trewhitt, Oct 09 2002

Keywords

Comments

Uses the convention of omitting a trailing 'and', so 101 is 'one hundred one' rather than 'one hundred and one.' - Eric W. Weisstein, May 11 2006
From Michael S. Branicky, May 28 2024: (Start)
The only numbers with a(n) = 1 are 1, 2, 3, 4, 5, 6, 8, 9, 10, 12.
The only numbers with a(n) = 2 are 7, 13, 14, 15, 16, 18, 19, 20, 30, 40, 50, 60, 80, 90.
Those with a(n) = 3 and 4 are in A372807 and A180961, respectively. (End)

Examples

			a(76)=4 because seventy-six is split sev.en.ty.six, or four syllables.
		

Crossrefs

Programs

  • PARI
    A075774(n, t=[10^9, 2, 10^6, 2, 1000, 2, 100, 2])={ n>99 && forstep( i=1, #t, 2, nA075774(n[1])+t[i+1]+if( n[2], A075774( n[2] )))); if( n<20, 1+!!setsearch(Set([0,7,13,14,15,16,18,19]),n) + 2*!!setsearch(Set([11,17]),n), 2+(n\10==7) + if(n%10, A075774(n%10)))}  \\ The "Set()" is not required in PARI v.2.6+ but we put it for downward compatibility. - M. F. Hasler, Nov 03 2013
    
  • Python
    def A075774(n):
        t = [(10**i, 2) for i in [12, 9, 6, 3, 2]]
        if n > 99:
            for ti, sti in t:
                if n >= ti:
                    q, r = divmod(n, ti)
                    return A075774(q) + sti + (A075774(r) if r else 0)
        if n < 20:
            return 1 + (n in {0, 7, 13, 14, 15, 16, 18, 19}) + 2*(n in {11, 17})
        else: return 2 + (n//10==7) + (A075774(n%10) if n%10 else 0)
    print([A075774(n) for n in range(105)]) # Michael S. Branicky, Jun 27 2021 after M. F. Hasler

Extensions

More terms from Eric W. Weisstein, May 11 2006

A372807 Numbers whose American English name has exactly three syllables.

Original entry on oeis.org

11, 17, 21, 22, 23, 24, 25, 26, 28, 29, 31, 32, 33, 34, 35, 36, 38, 39, 41, 42, 43, 44, 45, 46, 48, 49, 51, 52, 53, 54, 55, 56, 58, 59, 61, 62, 63, 64, 65, 66, 68, 69, 70, 81, 82, 83, 84, 85, 86, 88, 89, 91, 92, 93, 94, 95, 96, 98, 99, 100, 200, 300, 400, 500, 600, 800, 900
Offset: 1

Views

Author

Marc Groz, May 13 2024

Keywords

Comments

There are 107 terms, considering all terms up to 10^66 using English names of large numbers and various conventional extensions thereof (see Wikipedia link), since quadrillion, quintillion, etc. each have three or more syllables themselves. Terms like "one googol" (or possibly "a googol"), "two googol," ..., "twelve googol" are unconventional, hence disallowed. - Michael S. Branicky, May 28 2024

Examples

			a(2) = 17 is the second number whose name in American English has exactly three syllables: "seventeen".
		

Crossrefs

Programs

Formula

A075774(a(n)) = 3. - Michael S. Branicky, May 27 2024
Showing 1-2 of 2 results.