The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A134777 First digit of n alphabetically. 2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 1, 1, 1, 4, 5, 1, 1, 8, 9, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 3, 1, 3, 3, 4, 5, 6, 7, 8, 9, 4, 4, 4, 4, 4, 5, 4, 4, 8, 4, 5, 5, 5, 5, 5, 5, 5, 5, 8, 5, 6, 1, 6, 6, 4, 5, 6, 7, 8, 9, 7, 1, 7, 7, 4, 5, 7, 7, 8, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 4, 5, 9, 9, 8, 9, 1, 1, 1, 1, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Digits are decimal with names in English (see A000052). A134777(n)=A134778(n) iff n is a repdigit (n=A010785(m)), in which case a(n)=A010888(m), the repeated digit. a(n)=0 only for n=0. a(n)=8 iff n is a member of A011538.
LINKS
EXAMPLE
a(104) = 4 because the digits of 104 are 1 (one), 0 (zero) and 4 (four) and "four" occurs before both "one" and "zero" alphabetically.
PROG
(Python)
def alpha(n): return [8, 5, 4, 9, 1, 7, 6, 3, 2, 0].index(n)
def a(n): return sorted(map(int, str(n)), key=alpha)[0]
print([a(n) for n in range(105)]) # Michael S. Branicky, Dec 12 2023
CROSSREFS
Sequence in context: A306354 A216587 A174210 * A253015 A257295 A004427
KEYWORD
base,easy,nonn,word
AUTHOR
Rick L. Shepherd, Nov 11 2007
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 June 4 15:36 EDT 2024. Contains 373099 sequences. (Running on oeis4.)