OFFSET
1,2
COMMENTS
A sum-free sequence has no term that is the sum of a subset of its previous terms. There are an infinite number of sequences that are subsets of {1} union primes and sum-free. This sequence is lexicographically the first.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..40
H. L. Abbott, On sum-free sequences, Acta Arithmetica, 1987, Vol 48, Issue 1, pp. 93-96.
Carlos Rivera, Puzzle 127. Non adding prime sequences, The Prime Puzzles & Problems Connection.
Eric Weisstein's World of Mathematics, A-Sequence
Wikipedia, Sum-free sequence
EXAMPLE
a(8)=137 as 137 is the next prime after a(7)=47 that cannot be formed from distinct sums of a(1),...,a(7) (1,2,5,11,23,43,47).
MATHEMATICA
memberQ[n1_, k1_] := If[Select[IntegerPartitions[Prime[n1], Length[k1], k1], Sort@#==Union@# &]=={}, False, True]; k={1}; n=1; While[Length[k]<15, (If[!memberQ[n, k], k=Append[k, Prime[n]]]; n++)]; k
CROSSREFS
KEYWORD
nonn
AUTHOR
Frank M Jackson, May 21 2013
EXTENSIONS
a(23)-a(32) from Zak Seidov, May 23 2013
STATUS
approved