PerfectNumberQ

Details

- PerfectNumberQ is typically used to test whether an integer is a perfect number.
- A positive integer n is a perfect number if the sum of all its divisors is 2n.
- PerfectNumberQ[n] returns False unless n is manifestly a perfect number.

Examples
open allclose allScope (5)
PerfectNumberQ works over positive integers:
Applications (11)
Basic Applications (3)
Number Theory (8)
Even perfect numbers end in either 6 or 28:
Triangular numbers of Mersenne primes are perfect numbers:
Hexagonal numbers related to Mersenne prime exponents are perfect numbers:
Having the form , each even perfect number is the
triangular number and the
hexagonal number:
If p is a Mersenne prime exponent, then is a perfect number:
Every even perfect number has the form , where p is a Mersenne prime exponent:
Check that in the representation above p is 5:
The reciprocals of the divisors of a perfect number n must add up to :
A number n is -perfect if the sum of the divisors of n is equal to
:
Properties & Relations (7)
A positive integer n is perfect if and only if the sum of all its divisors equals :
PerfectNumber gives perfect number:
If p is a Mersenne prime exponent, then is a perfect number:
Every even perfect number has the form , where p is a Mersenne prime exponent:
Check that in the representation above p is 5:
Triangular numbers of Mersenne primes are perfect numbers:
Hexagonal numbers related to Mersenne prime exponents are perfect numbers:
Use DivisorSigma to test whether a positive integer is perfect:
Possible Issues (3)
Expressions that represent perfect numbers but do not evaluate explicitly will give False:
It is necessary to use symbolic simplification first:
More perfect numbers are known, but their ranking is still unknown:
Text
Wolfram Research (2016), PerfectNumberQ, Wolfram Language function, https://reference.wolfram.com/language/ref/PerfectNumberQ.html (updated 2024).
CMS
Wolfram Language. 2016. "PerfectNumberQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/PerfectNumberQ.html.
APA
Wolfram Language. (2016). PerfectNumberQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PerfectNumberQ.html