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!)
A114332 English spelling of n ends with a(n)-th letter of the alphabet. 2
15, 5, 15, 5, 18, 5, 24, 14, 20, 5, 14, 14, 5, 14, 14, 14, 14, 14, 14, 14, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5, 25, 5, 15, 5, 18, 5, 24, 14, 20, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
EXAMPLE
'One' ends with 'e', which is the 5th letter of the alphabet, hence a(1)=5.
'Two' ends with 'o', which is the 15th letter of the alphabet, hence a(2)=15.
PROG
(Python)
def a(n):
if n == 0: return 15 # zerO
if n%1000000 == 0: return 14 # millioN, billioN, ...
r = n%100
if r == 0: return 4 # hundreD, thousanD
if r == 12: return 5 # twelvE
if 10 <= r < 20: return 14 # teN, eleveN, thirteeN, ..., nineteeN
return [25, 5, 15, 5, 18, 5, 24, 14, 20, 5][n%10] # *Y, *onE, ..., *ninE
print([a(n) for n in range(101)]) # Michael S. Branicky, Jan 19 2022
CROSSREFS
Sequence in context: A332843 A196187 A004480 * A051998 A131611 A166209
KEYWORD
easy,nonn,word
AUTHOR
Blaine J. Deal, Feb 06 2006
EXTENSIONS
a(0)=15 prepended by Tanar Ulric, Jan 20 2022
STATUS
approved

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 July 22 10:36 EDT 2024. Contains 374490 sequences. (Running on oeis4.)