Wednesday, 14 October 2026

The Antisigma Function Revisited

The day after my birthday this year I made a post titled The Antisigma Function. This function returns the sum of the non-divisors of a number and is given by the formula:$$ \text{antisigma}(n)=\frac{n(n+1)}{2}-\sigma(n)$$I noticed today that the number associated with my diurnal age today (28318) has an antisigma value given by:$$ \begin{align} \text{antisigma}(28318) &= 28318 \times 28319/2-\sigma(28318)\\ &=400968721-42480\\ &=400926241 \end{align}$$This antisigma value is almost a multiple of 28318 since:$$ 400926241\!  \! \! \mod 28318 =28315$$This got me wondering whether there are numbers whose antisigma values are multiples of itself. I asked Gemini to investigate and it came to the conclusion that there are no composite integers up to 40,000 (and likely no integers at all) that satisfy this condition. End of story, right. Actually, no. Using the program that Gemini provided I found the following numbers that satisfy (permalink).

--- Results for Composite Integers 1 to 40000 ---
Table:
Composite Integer (n)     | Antisigma Value     
------------------------------------------------
24                        | 240                 
4320                      | 9318240             
4680                      | 10937160            
26208                     | 343351008            
 
Comma-separated list of the integers:
24, 4320, 4680, 26208 

Gemini had to admit its error. So never trust anything Gemini tells you straight up. I then asked if these were the only numbers and it turns out there are infinitely many more. Here is the explanation that Gemini provided:

For an integer $n$ to divide its antisigma value perfectly, the antisigma expression modulo $n$ must equal 0:
$$\frac{n(n+1)}{2} - \sigma(n) \equiv 0 \pmod n$$

For any even number $n$, the formula for the sum of all integers up to $n$ expands to:

$$\frac{n(n+1)}{2} = \frac{n^2}{2} + \frac{n}{2} = n\left(\frac{n}{2}\right) + \frac{n}{2}$$

When this triangle number sum is divided by $n$, it consistently leaves a remainder of $\frac{n}{2}$. For the entire antisigma value to be perfectly divisible by $n$, the divisor sum $\sigma(n)$ must also leave a remainder of $\frac{n}{2}$ to exactly cancel out the first remainder. Algebraically, this requires:

$$\sigma(n) = kn + \frac{n}{2}$$

Dividing both sides by $n$ reveals the core ratio:

$$\frac{\sigma(n)}{n} = k + 0.5$$

Numbers whose abundancy index (the sum of their divisors divided by the number itself) equals a half-integer (such as 1.5, 2.5, or 3.5) belong to a specific mathematical class known as hemiperfect numbers.

The Online Encyclopedia of Integer Sequences catalogs these half-integral abundancy numbers under OEIS A159907. The first five terms in this sequence are 2, 24, 4320, 4680, and 26208.

The sequence does not end there. It continues into much larger integers that satisfy the exact same divisibility condition:

  • 8,910,720
  • 17,428,320
  • 20,427,264
  • 91,963,648
  • 197,064,960

Because there is a massive mathematical "desert" spanning from 26,208 all the way to 8.9 million, a programmatic search capped at a 40,000 limit naturally halts after finding 26,208. Therefore, 24, 4320, 4680, and 26208 are not the only composite integers that divide their antisigma values evenly; they are simply the first four composite entries in a much larger, ongoing sequence.

************************

I wrote about hemiperfect numbers in a post titled Hemiperfect Numbers on the 3rd of January 2021.

No comments:

Post a Comment