SemiperfectNumbers
The semiperfect numbers -- integers equal to a sum of some subset of their proper divisors -- as a lazy indexed collection.
OEIS
A005835mathlib4Nat.PseudoperfectSemiperfectNumbersthe with a proper-divisor subset summing to , an infinite indexed collection.Details
- A lazy indexed collection: (every perfect number is trivially semiperfect, taking the whole divisor set), and unranks the -th by scanning forward, testing each candidate with a subset-sum search over its proper divisors.
- OEIS A005835.
- Membership goes through Element: is true (), is false -- is abundant but [[WeirdNumbers|weird]].
Enumeration
Examples
1 more kept as data, checked against the oracles See also: Count, At, Element, PerfectNumbers, WeirdNumbers