login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A078547
a(n) = lcm(n, A052429(n)) - n.
2
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 14, 0, 32, 102, 54, 152, 0, 21, 0, 115, 0, 25, 52, 351, 28, 493, 0, 62, 64, 0, 170, 70, 0, 740, 418, 78, 0, 123, 42, 473, 0, 135, 230, 1269, 0, 1715, 0, 204, 208, 742, 486, 0, 784, 1938, 1102, 2596, 0, 305, 124, 63, 128, 325, 0
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