OFFSET
0,3
MATHEMATICA
Join[{0}, Table[FromDigits[IntegerDigits[n]/.(9->Nothing)], {n, 90}]/.(0-> Nothing)] (* Harvey P. Dale, Aug 10 2019 *)
PROG
(Python)
def A004728(n):
l = len(str(n))
m = 10**l-1
k = n + l - int(n+l < m)
return 8 if k == m else int(str(k).replace('9', '')) # Chai Wah Wu, Apr 20 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
STATUS
approved