%I #23 Apr 12 2022 11:34:59
%S 3,20,32,54,96,132,168,217,240,252,294,338,350,464,465,582,819,1052,
%T 1080,1182,1280,1476,1710,1953,2220,2484,2786,3080,3200,3402,3708,
%U 4074,4404,4440,4680,4794,5250,5670,6064,6080,6576,6900,7248,7458,8000,8442,8514,8940
%N Values taken both by sigma (A000203) and by antisigma (A024816), where sigma is the sum of divisors function and antisigma is the sum of the non-divisors of n less than n function.
%C Common values attained by sigma and antisigma functions, in ascending order.
%C The asymptotic density of this sequence is 0 (according to 2nd comment of A002191).
%C The smallest integers k and m such that sigma(k) = antisigma(m) = a(n) are in A352811.
%e As sigma(31) = 1+31 = 32 and antisigma(9) = 1+2+4+5+6+7+8 = 32, then 32 is a term.
%t m = 10^4; r = Range[m]; s = DivisorSigma[1, r]; as = r*(r + 1)/2 - s; Select[Intersection[s, as], # <= m &] (* _Amiram Eldar_, Apr 05 2022 *)
%Y Intersection of A002191 and A231365.
%Y Cf. A000203, A024816, A352811.
%K nonn
%O 1,1
%A _Bernard Schott_, Apr 04 2022
%E More terms from _Amiram Eldar_, Apr 05 2022