OFFSET
1,13
COMMENTS
a(n)=0 if n is divisible by each nonzero digit, i.e., if n in A002796.
MATHEMATICA
lc[x_] := Apply[LCM, DeleteCases[IntegerDigits[x], 0]] Table[LCM[lc[w], w]-w, {w, 1, 128}]
PROG
(PARI) lcnzd(n) = lcm(select(x->(x!=0), digits(n)));
a(n) = lcm(n, lcnzd(n)) - n; \\ Michel Marcus, Mar 18 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Labos Elemer, Dec 05 2002
STATUS
approved