OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..9999
EXAMPLE
a(2)=14 because 7=9-2 and lcm(2,7)=14
a(9)=lcm(0,9)=0. a(10)=lcm(89,10)=890.
MAPLE
digs := proc(inp::integer) local resul, shiftinp : resul := 1 : shiftinp := iquo(inp, 10) : while shiftinp > 0 do resul := resul+1 : shiftinp := iquo(shiftinp, 10) : od : RETURN(resul) : end: nin := proc(inp::integer) RETURN(10^digs(inp)-1-inp) : end : for n from 1 to 40 do comp := nin(n) ; #print(n, comp, lcm(n, comp)) ; printf("%d, ", lcm(n, comp)) ; od : # R. J. Mathar, Mar 27 2006
# second Maple program:
a:= n-> ilcm((10^length(n)-1-n), n):
seq(a(n), n=1..100); # Alois P. Heinz, Sep 22 2015
MATHEMATICA
Array[LCM[#, 10^IntegerLength[#]-1-#]&, 50] (* Harvey P. Dale, Apr 17 2012 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Jul 06 2005
EXTENSIONS
Corrected and extended by R. J. Mathar, Mar 27 2006
More terms from Joshua Zucker, May 03 2006
STATUS
approved