Primary Pseudoperfect Number Checker
Number Theory
- A primary pseudoperfect number n passes an exact reciprocal test: the reciprocals of its distinct prime factors, plus the reciprocal of n itself, add to exactly 1. This checker factors 42, sums the reciprocals of its prime factors as fractions, and applies the reciprocal test.
- The distinct prime factors of 42 are 2, 3, 7. The reciprocals of these prime factors add to 41/42, and adding the reciprocal 1/42 gives a reciprocal total of 1 for this primary pseudoperfect test.
- The reciprocal total is exactly 1, so the identity holds: 42 is a primary pseudoperfect number, judged by the reciprocals of its prime factors.
- The known primary pseudoperfect numbers begin 2, 6, 42, 1806 and 47058. Each is the product of its distinct prime factors, and this primary pseudoperfect checker always works with exact fractions, so the reciprocal verdict never depends on decimal rounding or on the size of the prime factors.
A primary pseudoperfect number is a whole number n with a beautiful exact property: the reciprocals of its distinct prime factors, together with 1/n itself, add up to exactly 1. The smallest is 2 (1/2 + 1/2), then 6 (1/2 + 1/3 + 1/6), then 42 (1/2 + 1/3 + 1/7 + 1/42 = 41/42 + 1/42 = 1), then 1806 - and after that the known terms race away: 47058 is the fifth, and only a handful more are known at all.
The identity is an Egyptian fraction expansion of 1 built from the number's own anatomy: the denominators are n's prime factors plus n itself. That self-reference is what makes the family so restrictive. Most numbers fail instantly - 100, whose prime factors 2 and 5 give 7/10, and 7/10 + 1/100 = 71/100, nowhere near 1 - and the checker on this page delivers the verdict with exact fraction arithmetic, so a near-miss can never masquerade as a hit.
Enter any whole number and the checker factorises it, sums the reciprocals of the distinct prime factors as fractions, adds 1/n, and reports whether the total is exactly 1, printing every intermediate fraction so the verdict can be audited by hand.
Worked examples
A primary pseudoperfect number
(42)
| Primary pseudoperfect verdict | Primary pseudoperfect number |
| Distinct prime factors | 2, 3, 7 |
| Sum of reciprocals of prime factors | 41/42 |
| Sum plus 1/n | 1 |
The fourth known term
(1806)
| Primary pseudoperfect verdict | Primary pseudoperfect number |
| Distinct prime factors | 2, 3, 7, 43 |
| Sum of reciprocals of prime factors | 1805/1806 |
| Sum plus 1/n | 1 |
A round number that fails
(100)
| Primary pseudoperfect verdict | Not a primary pseudoperfect number |
| Distinct prime factors | 2, 5 |
| Sum of reciprocals of prime factors | 7/10 |
| Sum plus 1/n | 71/100 |
The reciprocal identity
Write the test plainly: sum over distinct prime factors p of n of 1/p, plus 1/n, equals 1. For 42 the prime factors are 2, 3 and 7, the reciprocals sum to 41/42, and the missing 1/42 is exactly 1/n. The identity says n completes its own prime factors into a unit-fraction expansion of 1.
Two features of the definition deserve emphasis. Only distinct prime factors enter - multiplicity is ignored, which is why the known terms are all squarefree. And the test is an equality, not an inequality: falling short (deficient-style) or overshooting (abundant-style) both fail, which is what makes hits so rare.
The Sylvester connection
The opening chain 2, 6, 42, 1806 is not arbitrary: each term is the previous one multiplied by the next Sylvester number - 2 x 3 = 6, 6 x 7 = 42, 42 x 43 = 1806. Sylvester's sequence 2, 3, 7, 43, 1807 is itself built by the rule 'multiply everything so far and add 1', and its reciprocals famously sum to just below 1.
The connection is structural: if the reciprocals of a set of primes sum to (n - 1)/n for their product n, the identity holds. The Sylvester chain manufactures such sets greedily, which is why it generates the first terms - though later primary pseudoperfect numbers exist outside the chain, so the greedy route is sufficient, not necessary.
Why exact fractions matter
The verdict turns on exact equality with 1, and decimal arithmetic is the enemy: 1/3 and 1/7 have no finite decimal form, so a floating-point sum can land at 0.9999999999 or 1.0000000001 for a true hit, and either error flips the answer. This checker sums unit fractions as exact rationals - numerator and denominator carried as integers throughout - so 41/42 + 1/42 is recognised as exactly 1.
The same discipline is why the worked failure is instructive: 100 gives exactly 71/100, a clean rational that is visibly not 1. Exact arithmetic turns 'close' into a number you can inspect, and in this family close is simply failure with good public relations.
A practical way to feel the rarity: among the first 2000 integers the checker says yes exactly four times, and two of those - 2 and 6 - are small enough to verify on one hand. The jump from 42 to 1806 spans a range in which thousands of squarefree numbers with three, four and five prime factors all fail, most of them by wide margins and a tantalising few, like the Sylvester neighbour 1807's composite cousins, by a single unit fraction. The identity does not grade on a curve.
That single-unit-fraction margin is the family's signature: the identity is a knife-edge, and the numbers that balance on it are the ones this checker exists to find.
A worked example: 1806
Factorise 1806: it is 2 x 3 x 7 x 43, all distinct. The reciprocals are 1/2 + 1/3 + 1/7 + 1/43; over the common denominator 1806 they are 903 + 602 + 258 + 42 = 1805 parts, giving 1805/1806. Add 1/1806 and the total is exactly 1 - 1806 is primary pseudoperfect, and it is itself the product of its prime factors, as every known term is.
Note how tight the miss would be for a neighbour: 1807 is the next Sylvester number, a prime, and a prime always fails (1/p + 1/p is far from 1). The family's terms sit isolated in a sea of failures, which the scan result underlines - up to 2000 the only hits are 2, 6, 42 and 1806.
Primary pseudoperfect versus pseudoperfect
The names are a trap. Pseudoperfect (or semiperfect) numbers - the subject of a neighbouring page on this site - are numbers equal to a sum of some of their proper divisors, like 20 = 10 + 5 + 4 + 1. Primary pseudoperfect numbers are a different family entirely, defined by the reciprocal identity, and the two sets are not known to overlap beyond trivial small cases.
The 'primary' in the name marks the squarefree, product-of-its-own-primes character of the family. When a source says 'pseudoperfect', check which definition is in play before trusting any list - the reciprocal test on this page is the primary family's, stated in full in its steps.
Where primary pseudoperfect numbers show up
They belong to the Egyptian fraction world: expansions of 1 into unit fractions with restricted denominators, a topic running from the Rhind papyrus through Sylvester to modern work on Giuga numbers, to which this family is closely related - the identity here is a cousin of the Giuga condition on prime divisors.
They are also a clean specimen of a modern enumeration problem: the test per number is cheap (factor, sum fractions), but the terms are so sparse that finding new ones is a search problem, and the known list - 2, 6, 42, 1806, 47058 and a few giants beyond - has grown slowly despite the cheap test, because the candidates must be hunted in the right multiplicative neighbourhoods.
Hunting for new terms
Finding a new primary pseudoperfect number is a search over squarefree candidates whose prime reciprocals can plausibly sum to just under 1. The structure of the identity prunes the hunt hard: the reciprocal sum of the chosen primes must equal (n - 1)/n for their own product n, so the primes cannot be chosen freely - each added prime changes both the sum and the target. Searchers therefore grow candidates prime by prime, tracking the reciprocal deficit, in the same spirit as the Sylvester construction but exploring branches the greedy path skips.
That is how 47058 was found outside the Sylvester chain: its prime set 2, 3, 11, 23, 31 is not a Sylvester prefix, yet the reciprocals plus 1/47058 close exactly. The known list beyond it is short and the terms are enormous, not because the test is expensive - the checker on this page runs it in milliseconds - but because the identity is an exact Diophantine coincidence, and those do not occur on demand.
Common mistakes
The commonest slip is counting prime factors with multiplicity - using 1/2 twice for 12 (2 x 2 x 3) instead of once for each distinct prime. The second is forgetting the final 1/n term, which turns the test into a different (and much more commonly satisfied) condition.
A third is decimal rounding near the boundary, addressed above. A fourth is assuming the Sylvester chain gives all terms: it gives the first four, but 47058 already comes from a different prime set (2, 3, 11, 23, 31 - check: its reciprocals plus 1/47058 sum to 1), so a checker must test the identity itself, as this one does, rather than membership in the chain.
FAQs
What is a primary pseudoperfect number?
A number n where the reciprocals of its distinct prime factors plus 1/n sum to exactly 1.
Is 42 a primary pseudoperfect number?
Yes - 1/2 + 1/3 + 1/7 = 41/42, and 41/42 + 1/42 = 1.
What are the first primary pseudoperfect numbers?
2, 6, 42, 1806 and 47058.
Is 100 a primary pseudoperfect number?
No - its prime factors 2 and 5 give 7/10, and 7/10 + 1/100 = 71/100, not 1.
How does the checker avoid rounding errors?
It sums the reciprocals as exact fractions, so the verdict never depends on decimal approximations.
How do primary pseudoperfect numbers relate to Egyptian fractions?
The identity writes 1 as a sum of unit fractions - an Egyptian fraction expansion of 1 built from the number's own prime factors.
Is every term a product of its prime factors?
Every known term is squarefree and equal to the product of its distinct prime factors - 1806 = 2 x 3 x 7 x 43, for example.
Does the Sylvester chain produce all of them?
No - it produces 2, 6, 42 and 1806, but 47058 comes from the prime set 2, 3, 11, 23, 31 instead.