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!)
A134778 Last digit of n alphabetically. 2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 1, 1, 6, 7, 1, 1, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 3, 2, 3, 3, 3, 3, 3, 3, 3, 0, 1, 2, 3, 4, 4, 6, 7, 4, 9, 0, 1, 2, 3, 4, 5, 6, 7, 5, 9, 0, 6, 2, 3, 6, 6, 6, 6, 6, 6, 0, 7, 2, 3, 7, 7, 6, 7, 7, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 9, 9, 6, 7, 9, 9, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Digits are decimal with names in English (see A000052). A134778(n)=A134777(n) iff n is a repdigit (n=A010785(m)), in which case a(n)=A010888(m), the repeated digit. a(n)=0 iff n is a member of A011540. a(n)=8 iff n is a member of A002282-{0}.
LINKS
EXAMPLE
a(104) = 0 because the digits of 104 are 1 (one), 0 (zero) and 4 (four) and "zero" occurs after both "four" and "one" 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)[-1]
print([a(n) for n in range(105)]) # Michael S. Branicky, Dec 12 2023
CROSSREFS
Sequence in context: A358647 A004430 A285094 * A118943 A010879 A179636
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 April 19 23:40 EDT 2024. Contains 371798 sequences. (Running on oeis4.)