OFFSET
1,2
FORMULA
a(n) = n + 10^n - 10^(1 + floor(log_10(n))). - Wesley Ivan Hurt, Mar 30 2020
a(n) = 10^n - A089186(n). - Michel Marcus, Jul 25 2022
MATHEMATICA
Table[n + 10^n - 10^(1 + Floor[Log10[n]]), {n, 100}] (* Wesley Ivan Hurt, Mar 30 2020 *)
PROG
(Python)
def A279913(n): return 10**n+n-10**(len(str(n))) # Chai Wah Wu, Jul 25 2022
(PARI) a(n) = 10^n + n - 10^(#Str(n)); \\ Michel Marcus, Jul 25 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Wesley Ivan Hurt, Dec 22 2016
STATUS
approved