OFFSET
1,1
COMMENTS
EXAMPLE
The table begins:
------------------------------------------------------------------
| row | u = | smallest k with | smallest m with |
------------------------------------------------------------------
n=1 : 3, 2, 4;
n=2 : 20, 19, 7;
n=3 : 32, 21, 9;
n=4 : 54, 34, 11;
n=5 : 96, 42, 15;
n=6 : 132, 86, 18;
...................................................................
3rd row is (32, 21, 9) because A352810(3) = 32, sigma(21) = sigma(31) = 32 and antisigma(9) = 2+4+5+6+7+8 = 32, hence 21 and 9 are respectively the smallest integers k and m such that sigma(k) = antisigma(m) = 32.
5th row is (96, 42, 15) because A352810(5) = 96 and 42 and 15 are respectively the smallest integers k and m such that sigma(k) = antisigma(m) = 96.
MATHEMATICA
m = 2000; r = Range[m]; s = DivisorSigma[1, r]; as = r*(r + 1)/2 - s; i = Select[Intersection[s, as], # <= m &]; Flatten @ Transpose @ Join[{i}, Map[Flatten[Table[FirstPosition[#, i[[k]]], {k, 1, Length[i]}]] &, {s, as}]] (* Amiram Eldar, Apr 12 2022 *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Bernard Schott, Apr 12 2022
EXTENSIONS
More terms from Amiram Eldar, Apr 13 2022
STATUS
approved