A138000 a(n) is the least prime such that the subsets of { a(1), ..., a(n) } sum up to 2^n different values.
2, 3, 7, 11, 29, 53, 107, 211, 431, 853, 1709, 3433, 6857, 13709, 27427, 54851, 109717, 219409, 438827, 877651, 1755319, 3510623, 7021249, 14042491, 28084997, 56169977, 112339957, 224679913, 449359829, 898719707, 1797439367, 3594878731, 7189757483, 14379514973, 28759029919, 57518059831
Offset: 1
Keywords
Examples
a(1) = 2, the smallest prime, since subsets of {2} are {},{2} summing to 0 resp. 2. a(2) = 3, the second smallest prime, since subsets {},{2},{3},{2,3} have sums 0, 2, 3, 5 which are all different. Then, 5 is not allowed for a(3), since for {2,3,5}, the sum of the subset {2,3} would be the same as that of {5}. For a(3)=7, however, the set of the previously possible sums, {0,2,3,5} and the set of possible sums using the new element, 7 + {0,2,3,5} = {7,9,10,12} are disjoint. Obviously this is always true for a(n) larger than the sum of all preceding terms. However, a(4) = 11 is smaller than this sum (7 + 3 + 2 = 12), yet {0,2,3,5,7,9,10,12} and 11 + {0,2,3,5,7,9,10,12} are disjoint.
Links
- S. J. Benkoski and P. Erdős, On weird and pseudoperfect numbers, Math. Comp., 28 (1974), pp. 617-623. Alternate link; 1975 corrigendum
Crossrefs
Cf. A064934.
Programs
-
PARI
s=p=1; for( n=1,30, while( bitand(s,s>>p=nextprime(p+1)),); s+=s<
Formula
a(n) > a(n-1) and a(n) <= nextprime((Sum_{i=1..n-1} a(i)) - (-1)^n); but in fact a(n) ~ Sum_{i=1..n-1} a(i) and thus a(n) ~ constant*2^n.
Extensions
a(23)-a(30) from Donovan Johnson, Feb 18 2009
a(31)-a(35) from Giovanni Resta, Feb 28 2020
a(31) corrected and a(36) added by Seth A. Troisi, May 13 2022
Comments