OFFSET
1,1
COMMENTS
Numbers k are defined as composable or p-composable if k/p is a sum of nontrivial divisors, where p is the smallest prime divisor of k. Since any p-composable number with p greater than 2 is odd, and the predecessor of any odd prime is even, only 2-composable numbers can precede primes.
A prime p, where k = p - 1 is 2-composable, can be expressed as p = 1 + Sum(S) + k/2. Here, S is a subset of k's divisors strictly between 1 and k/2 that sums to k/2. Including k/2 in S produces a subset of divisors of k less than k that sums to k, thereby proving that k is semiperfect.
Among the 9592 primes less than 10^5, 6043 are preceded by a composable number. Therefore, approximately 63% of the primes in this range possess such a sum representation.
A prime p is a term if it can be written as p = j*m+1 where m is a semiperfect number (A005835) and j > 1. The converse is not true: 491, for example. - Peter Munn, Mar 20 2026
LINKS
Peter Luschny, Composable, rigid, and sparse numbers. A Python notebook.
EXAMPLE
13 is a composable-preceded prime. Its predecessor is 12 and since the nontrivial divisors 2 and 4 of 12 sum to 12/2, we can write the prime as 13 = 1 + (2 + 4) + 6.
.
p | Witness of composable-preceded prime
-------------------------------------------
13 | 1 + 2 + 4 + 6
19 | 1 + 3 + 6 + 9
31 | 1 + 5 + 10 + 15
37 | 1 + 6 + 12 + 18
41 | 1 + 2 + 8 + 10 + 20
43 | 1 + 7 + 14 + 21
61 | 1 + 10 + 20 + 30
67 | 1 + 11 + 22 + 33
73 | 1 + 12 + 24 + 36
79 | 1 + 13 + 26 + 39
97 | 1 + 16 + 32 + 48
101 | 1 + 5 + 20 + 25 + 50
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Jan 12 2026
STATUS
approved
