Complete Technical Guide to Generate Pseudoperfect Number Sequence
A positive integer n is pseudoperfect (or semiperfect, OEIS A005835) if it can be written as the sum of all or some of its distinct proper divisors. Every perfect number (6, 28, 496) and every multiple of a pseudoperfect number is automatically pseudoperfect.
The smallest odd pseudoperfect number is 945, while the rare abundant numbers that fail to be pseudoperfect (starting with 70) are called Weird numbers.
Subset-Sum Proper Divisor Criterion
n is pseudoperfect <=> ∃ S ⊆ ProperDivisors(n) such that Σ_{d ∈ S} d = n
First terms: 6, 12, 18, 20, 24, 28, 30, 36, 40, 42, 48, 54, 56, 60, ...
Using a BigInt bitmask dp where bit k indicates whether subset sum k is achievable, every proper divisor d transitions dp ← dp | (dp << d), proving exact pseudoperfectness instantaneously.
How to Use Generate Pseudoperfect Number Sequence
- 1Pick a quick preset or enter any term count up to 1,000.
- 2Choose comma, space, or newline separation and optionally toggle 1-based term indexing.
- 3Copy plain text, export structured JSON, or download a .txt file with one click.
Reference Examples & Worked Benchmarks
| Index / Milestone | Exact Term | Notes |
|---|---|---|
| 6 | 1 + 2 + 3 | Also a perfect number |
| 12 | 2 + 4 + 6 | Proper divisors: 1,2,3,4,6 |
| 20 | 1 + 4 + 5 + 10 | Primitive pseudoperfect |
Practical Applications & Engineering Workflows
Combinatorics & Number Theory
Generate verified terms of OEIS A005835 instantaneously for proofs, OEIS lookups, and test fixtures.
Algorithm & Curriculum Verification
Cross-check exact BigInt outputs without floating-point overflow past 2^53.
Accuracy, Edge Cases & Best Practices
- All calculations run locally in your browser using exact BigInt / sieve arithmetic matching OEIS A005835.
All calculations execute locally inside your browser using JavaScript with zero server round-trips, guaranteeing instant responsiveness and complete data privacy.