OFFSET
1,1
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
KEYWORD
nonn,base,easy
AUTHOR
N. J. A. Sloane, Oct 17 2003
EXTENSIONS
More terms from Ray Chandler, Oct 17 2003
STATUS
approved