Let N be a positive integer, and let $\sigma (N)$ denote the sum of the divisors of N (e.g. $\sigma (6) = 1 + 2 + 3 + 6 = 12$). We show computing $\sigma (N)$ is equivalent to factoring N in the following sense: there is a random polynomial time algorithm that, given $\sigma (N)$, produces the prime factorization of N, and $\sigma (N)$ can be computed in polynomial time given the factorization of N.We show that the same result holds for $\sigma _k (N)$, the sum of the kth powers of divisors of NWe give three new examples of problems that are in Gill’s complexity class BPP: perfect numbers, multiply perfect numbers, and amicable pairs. These are the first “natural” sets in BPP that are not obviously in RP.
[1]
D. Shanks.
Class number, a theory of factorization, and genera
,
1971
.
[2]
Gary L. Miller,et al.
Riemann's Hypothesis and tests for primality
,
1975,
STOC.
[3]
D. Bernstein.
DISTINGUISHING PRIME NUMBERS FROM COMPOSITE NUMBERS
,
2022
.
[4]
Juliette Gardner.
Genesis
,
1985
.
[5]
J. M. Pollard,et al.
Theorems on factorization and primality testing
,
1974,
Mathematical Proceedings of the Cambridge Philosophical Society.
[6]
Jeffrey Shallit,et al.
Sums of divisors, perfect numbers, and factoring
,
1984,
STOC '84.