OFFSET
1,1
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..300
EXAMPLE
648' = 1836 and 18*36 = 648;
750' = 1075 and 10*75 = 750.
MAPLE
with(numtheory): P:=proc(q) local a, b, c, i, n, p;
for n from 1 to q do c:= n*add(op(2, p)/op(1, p), p=ifactors(n)[2]);
for i from 1 to ilog10(c) do a:=trunc(c/10^i); b:=c-a*10^i;
if a+b=n then print(n); break; fi; od; od; end: P(10^9);
MATHEMATICA
Select[Range[10^5], Function[n, Total@ Boole@ Function[k, And[k == FromDigits[Join[IntegerDigits@ First@ #, IntegerDigits@ Last@ #]], n == First@ # Last@ #] & /@ Map[FromDigits /@ TakeDrop[IntegerDigits@ k, #] &, Range[IntegerLength@ k - 1]]][If[Abs@ n < 2, 0, n Total[#2/#1 & @@@ FactorInteger@ Abs@ n]]] > 0]] (* Michael De Vlieger, May 07 2016, Version 10.2 *)
ok[t_, n_] := Catch@ Block[{p=10}, While[p < t, If[n == Mod[t, p] Floor[ t/p], Throw@True, p *= 10]]; False]; Select[Range[2, 10^5], ok[# Plus @@ (#2/#1 & @@@ FactorInteger@#), #] &] (* Giovanni Resta, May 07 2016, older Mma *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, May 06 2016
STATUS
approved