Skip to content

PerfectNumbers ​

The perfect numbers 6,28,496,8128,…6, 28, 496, 8128, … -- integers equal to the sum of their proper divisors -- as a lazy indexed collection.

PerfectNumbersthe nn with σ(n)=2n\sigma(n) = 2n, an indexed collection of unknown count.

Domain: Collections

Details
  • Count(PerfectNumbers)=NaNCount(PerfectNumbers) = NaN: every even perfect number is 2p−1(2p−1)2^{p-1}(2^p - 1) for a Mersenne prime exponent pp (Euclid–Euler), but whether any odd perfect number exists -- and so whether the family is even finite or infinite -- is open.
  • AtAt reads off a table of the known even perfect numbers that fit an exact JS integer (p=2,3,5,7,13,17,19p = 2, 3, 5, 7, 13, 17, 19); past that table it returns unevaluated rather than scanning forever, since no predicate here could safely keep searching.
  • OEIS A000396. Membership goes through Element: Element(28,PerfectNumbers)Element(28, PerfectNumbers) is true, Element(24,PerfectNumbers)Element(24, PerfectNumbers) is false (abundant, not perfect).

Enumeration

Examples

2 more kept as data, checked against the oracles
About
Examples2
CrosswalkOEISmathlib4

See also: Count, At, Element, AbundantNumbers, SemiperfectNumbers