Aliquot sequences, and the mystery of 276
Replace a number by the sum of its proper divisors: $12 \mapsto 1 + 2 + 3 + 4 + 6 = 16$. Write $s(n) = \sigma(n) - n$ for this map and iterate it. Starting from $12$: $$12 \to 16 \to 15 \to 9 \to 4 \to 3 \to 1,$$ and the sequence stops, because $1$ has no proper divisors. A perfect number is a fixed point ($s(6) = 6$, $s(28) = 28$); an amicable pair is a cycle of length two, like $220 \to 284 \to 220$, known to the Pythagoreans; and there are longer sociable cycles, such as $1264460 \to 1547860 \to 1727636 \to 1305184 \to 1264460$. Starting from $95$ you fall onto a perfect number: $95 \to 25 \to 6 \to 6$.
Do all sequences settle down?
Catalan (1888) and Dickson (1913) conjectured that every aliquot sequence is bounded, so that it ends at $1$ or in a cycle. Some take a scenic route: $138$ climbs to $179{,}931{,}895{,}322$ before collapsing to $1$ after $177$ steps. But for $276$, nobody knows.
$276$ is the smallest of the "Lehmer five", $276, 552, 564, 660, 966$, whose fate is unknown. Distributed computations have followed $276$ for more than two thousand steps, where the terms have over two hundred digits and each new step requires factoring a number of that size. Guy and Selfridge made the opposite conjecture: that many aliquot sequences, perhaps most of those starting at even numbers, grow without bound. The heuristics involve "drivers", small factors like $2^k$ times a Mersenne-type prime that tend to persist from step to step and push the sequence up.
Full proof: Thābit ibn Qurra's rule for amicable pairs
The divisor-sum function is multiplicative, with $\sigma(p^a) = 1 + p + \dots + p^a$.
Thābit's rule (9th century). Let $n \ge 2$, and suppose $p = 3 \cdot 2^{n-1} - 1$, $q = 3 \cdot 2^n - 1$ and $r = 9 \cdot 2^{2n-1} - 1$ are all prime. Then $2^n pq$ and $2^n r$ form an amicable pair.
Proof. Using multiplicativity, $p + 1 = 3 \cdot 2^{n-1}$ and $q + 1 = 3 \cdot 2^n$, $$\sigma(2^n pq) = (2^{n+1} - 1)(p+1)(q+1) = 9 \cdot 2^{2n-1}(2^{n+1} - 1) = (2^{n+1} - 1)(r + 1) = \sigma(2^n r).$$ Call this common value $S$. A pair $a, b$ is amicable exactly when $\sigma(a) = \sigma(b) = a + b$, so it remains to check $2^n pq + 2^n r = S$: $$pq + r = 9 \cdot 2^{2n-1} - 3 \cdot 2^{n-1} - 3 \cdot 2^n + 1 + 9 \cdot 2^{2n-1} - 1 = 9 \cdot 2^{2n} - 9 \cdot 2^{n-1} = 9 \cdot 2^{n-1}(2^{n+1} - 1),$$ and multiplying by $2^n$ gives $S$. $\square$
For $n = 2$: $p = 5$, $q = 11$, $r = 71$, and the pair is $220 = 4 \cdot 5 \cdot 11$, $284 = 4 \cdot 71$. The rule also gives $(17296, 18416)$ for $n = 4$, rediscovered by Fermat.
Further reading
- R. K. Guy, Unsolved Problems in Number Theory, 3rd ed., Springer, 2004, section B6.
- R. K. Guy and J. L. Selfridge, What drives an aliquot sequence?, Mathematics of Computation 29 (1975).
- OEIS, sequence A008892 (the aliquot sequence of 276).