The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A030076 a(n) = 10 - m, where m = maximal digit of n. 0
 9, 8, 7, 6, 5, 4, 3, 2, 1, 9, 9, 8, 7, 6, 5, 4, 3, 2, 1, 8, 8, 8, 7, 6, 5, 4, 3, 2, 1, 7, 7, 7, 7, 6, 5, 4, 3, 2, 1, 6, 6, 6, 6, 6, 5, 4, 3, 2, 1, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 8, 7, 6, 5 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 LINKS FORMULA a(n) = 10 - A054055(n). EXAMPLE a(107) = 10 - max{1,0,7} = 10 - 7 = 3. MATHEMATICA Table[10 - Max[ IntegerDigits[n]], {n, 1, 105}] (* Robert G. Wilson v *) PROG (Python) def a(n): return (10 - int(max(str(n)))) print([a(n) for n in range(1, 106)]) # Michael S. Branicky, Sep 08 2021 CROSSREFS Cf. A054055. Sequence in context: A112454 A304621 A138531 * A269667 A171816 A083824 Adjacent sequences:  A030073 A030074 A030075 * A030077 A030078 A030079 KEYWORD nonn,base,easy,changed AUTHOR N. J. A. Sloane, Oct 17 2003 EXTENSIONS More terms from Ray Chandler, Oct 17 2003 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified September 20 00:28 EDT 2021. Contains 347577 sequences. (Running on oeis4.)