The \( \textbf{antisigma}\) function returns the sum of the proper non-divisors of \(n\). I hadn't heard of it before but came across reference to it when researching properties of the number 77. Let's designate this function as a(\(n\)) and use 15 as an example to illustrate how it works. The proper divisors of 15 are 1, 3 and 5. This means that 2, 4, 6, 7, 8, 9, 10, 11, 12, 13 and 14 are non-divisors and they total 96. Thus:$$a(15)=96$$A quicker way to calculate the sum of proper non-divisors is to use the following formula that makes use of the sum of the terms of an arithmetic sequence:$$ \begin{align} \text{a}(n) &= \frac{n(n+1)}{2} - \sigma(n) \\ \text{a}(15) &= \frac{15 \times 16}{ 2} - 24 \\ &=140-24\\&=96 \end{align} $$I had to be reminded as to the formula for the sum of the terms of an arithmetic progression with starting term \(a\) and common difference \(d\). The sum \( \text{S}_n \) of the first \(n\) terms is given by:$$ \begin{align} \text{S}_n &= \frac{n}{2}(2a+(n-1)d) \\ &= \frac{n (n+1)}{2} \text{ for }a=1 \text{ and } d=1 \end{align}$$The antisigma function differs from Euler's totient function that counts the number of integers up to a given number \(n\) that are coprime to \(n\). In the case of 15, we have:$$ \begin{align} \phi(15) &= 15 \times (1-\frac{1}{3}) \times (1-\frac{1}{5}) \\ &= 15 \times \frac{2}{3} \times \frac{4}{5} \\ &=8 \end{align}$$The eight numbers that are coprime to 15 are 1, 2, 4, 7, 8, 11, 13 and 14.
The antisigma function relates to the non-divisors of a number and these differ from its antidivisors. The antidivisors of 15 are 2, 6 and 10. See blog More on Anti-divisors.
The OEIS includes various sequences relating to antisigma function. First and foremost there is OEIS A024816:
This sequence begins:
0, 0, 2, 3, 9, 9, 20, 21, 32, 37, 54, 50, 77, 81, 96, 105, 135, 132, 170, 168, 199, 217, 252, 240, 294, 309, 338, 350, 405, 393, 464, 465, 513, 541, 582, 575, 665, 681, 724, 730, 819, 807, 902, 906, 957, 1009, 1080, 1052, 1168, 1182, 1254, 1280, 1377, 1365
Then there is OEIS A200981:
3, 4, 10, 21, 34, 46, 58, 70, 85, 93, 118, 129, 130, 144, 178, 201, 226, 237, 262, 298, 310, 322, 324, 325, 333, 334, 346, 382, 406, 418, 430, 466, 478, 502, 513, 514, 517, 549, 598, 622, 633, 634, 657, 658, 669, 706, 730, 742, 813, 826, 837, 838, 865, 922, 982, 985
