OFFSET
1,1
EXAMPLE
28 in base 2 is 11100. If we take 11100 = concat(11,100) then 11 and 100 converted to base 2 are 3 and 4. Finally sigma(3)*sigma(4) = 4 * 7 = 28;
120 in base 2 is 1111000. If we take 1111000 = concat(111,1000) then 111 and 1000 converted to base 10 are 7 and 8. Finally sigma(7)*sigma(8) = 8 * 15 = 120.
MAPLE
with(numtheory): P:=proc(q) local a, b, c, k, n;
for n from 1 to q do c:=convert(n, binary, decimal);
for k from 1 to ilog10(c) do
a:=convert(trunc(c/10^k), decimal, binary);
b:=convert((c mod 10^k), decimal, binary);
if a*b>0 then if sigma(a)*sigma(b)=n then print(n);
break; fi; fi; od; od; end: P(10^9);
MATHEMATICA
f[n_] := Block[{d = IntegerDigits[n, 2], len = IntegerLength[n, 2], k}, ReplaceAll[Reap[Do[k = {FromDigits[Take[d, i], 2], FromDigits[Take[d, -(len - i)], 2]}; If[! MemberQ[k, 0], Sow@k], {i, 1, len - 1}]], {} -> {1}][[-1, 1]]]; Select[Range@ 100000, MemberQ[DivisorSigma[1, #1] DivisorSigma[1, #2] & @@@ f@ #, #] &] (* Michael De Vlieger, Jul 07 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Jul 06 2015
STATUS
approved