Next Article in Journal
A New Random Coefficient Autoregressive Model Driven by an Unobservable State Variable
Previous Article in Journal
Real-World Steam Powerplant Boiler Tube Leakage Detection Using Hybrid Deep Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On Large Sum-Free Sets: Revised Bounds and Patterns

by
Renato Cordeiro de Amorim
School of Computer Science and Electronic Engineering, University of Essex, Colchester CO4 3SQ, UK
Mathematics 2024, 12(24), 3889; https://doi.org/10.3390/math12243889
Submission received: 13 November 2024 / Revised: 6 December 2024 / Accepted: 9 December 2024 / Published: 10 December 2024

Abstract

:
In this paper, we rectify two previous results found in the literature. Our work leads to a new upper bound for the largest sum-free subset of [ 1 , n ] with the lowest value in n 3 , n 2 , and the identification of all patterns that can be used to form sum-free sets of maximum cardinality.

1. Introduction

Let A be a non-empty and finite set containing positive integers such that A [ 1 , n ] for some n Z + , and A + A = { x + y x , y A } . We call A sum-free if A ( A + A ) = , sum-free sets are actively the subject of research (see, for instance, the surveys [1,2], and references therein). There are infinitely many examples of sum-free sets such as { 1 , 3 , 5 } , or even the set of all odd numbers in [ 1 , n ] . We call A maximal sum-free if there is no sum-free subset of [ 1 , n ] of which A is a proper subset. The maximum possible cardinality for a sum-free A is n + 1 2 , and | A | = n + 1 2 implies that A is maximal sum-free. However, the converse is not true. For instance, if we take n = 8 and A = { 1 , 3 , 8 } , we can see that A is maximal sum-free but not of maximum cardinality.
The contribution of this paper lies in rectifying two findings from the existing literature, leading to (i) a new upper bound for the largest sum-free subset of [ 1 , n ] with the lowest value in n 3 , n 2 , and (ii) the identification of all patterns that can be used to form sum-free sets of maximum cardinality.

2. Cardinality Upper Bounds for Sum-Free Sets

Cameron and Erdős [3] introduced the following theorem.
Theorem 1. 
Let g ( n , m ) be the cardinality of the largest sum-free subset of [ 1 , n ] with lowest value m. Then,
g ( n , m ) n m + 1 if m > n 2 , m if n 3 m n 2 , 1 2 ( n m ) + 1 if m < n 3 .
However, the bounds above do not always apply as we show below.
Theorem 2. 
Let A be a largest sum-free subset of [ 1 , n ] with the lowest value m, n = 3 m , and n A . Then, | A | = g ( n , m ) m + 1 . If, in addition, | A | = n + 1 2 , then there exist exactly two sets in which g ( n , m ) = m + 1 .
Proof. 
First, we present a counterexample showing that the original g ( n , m ) m does not always apply. Let n = 6 and m = 2 . Clearly, 1 3 n m 1 2 n , indicating that g ( n , m ) = g ( 6 , 2 ) m = 2 . However, A = { 2 , 5 , 6 } is sum-free and has cardinality three.
The proof presented by Cameron and Erdős [3] estimates g ( n , m ) for 1 3 n m < 1 2 n based on the maximum possible cardinality of A, that is, | A | n m + 1 , and the fact that for any x [ 2 m , n ]  A contains only one element of the pair ( x m , x ) so that it appears that n 2 m + 1 elements can be excluded from being possible elements of A. This leads to the upper bound g ( n , m ) ( n m + 1 ) ( n 2 m + 1 ) = m . However, in our counterexample, we have x [ 2 m , n ] = [ 4 , 6 ] , so the pairs are ( 2 ,   4 ) , ( 3 ,   5 ) , ( 4 ,   6 ) . Given 2 , 6 A , n 2 m + 1 counts 4 twice as an element to be excluded. Thus, this upper bound fails when there exists a x [ 2 m , n ] A , such that x 2 m A .
Let us improve the above condition. If x 2 m A , then x = 2 m implies x 2 m = 0 A , which cannot be as A is sum-free. Hence, x = 2 m + y with y A . Notice that n 3 m n 2 2 m n 3 m . Hence, x 3 m and y [ 1 , m ] . Given y A , it cannot be that y < m . Hence, y = m and x = 3 m = n . Thus, there can be a maximum of one element counted twice to be excluded from A. Finally, if 3 m = n and n A , then g ( n , m ) m + 1 .
Further to the above, if | A | = n + 1 2 , then A has cardinality n 2 or n + 1 2 depending on the parity of n. Let n be odd, then | A | = n + 1 2 = 3 m + 1 2 . We have that | A | = m + 1 , and m + 1 = 3 m + 1 2 m = 1 . Hence, n = 3 and A = { 1 , 3 } [ 1 , 3 ] . Let n be even, then | A | = n 2 = 3 m 2 . We have that | A | = m + 1 , leading to m + 1 = 3 m 2 m = 2 . Hence, n = 6 and A = { 2 , 5 , 6 } [ 1 , 6 ] . The latter is the only possibility. □
Corollary 1. 
The upper bounds for g(n,m) are
g ( n , m ) n m + 1 if m > n 2 , m if n 3 < m n 2 , 1 2 ( n m ) + 1 if m n 3 .
Proof. 
Theorem 2 has n = 3 m . Hence, the new bound of m + 1 = 1 2 ( n m ) + 1 . □

3. All Sum-Free Sets of Maximum Cardinality

Cameron and Erdős [4] present what is probably the first taxonomy regarding the sum-free sets we are interested. They state, without proof, that the only sum-free sets of cardinality n + 1 2 are as follows:
  • The odd numbers in the interval [ 1 , n ] ;
  • If n is odd, n + 1 2 , n ;
  • If n is even, n 2 , n 1 and n 2 + 1 , n .
In this section, our main objective is to prove the following.
Theorem 3. 
There are exactly four sum-free sets with cardinality n + 1 2 that do not adhere to the taxonomy introduced by Cameron and Erdős. These are { 1 ,   4 } , where n = 4 ; { 1 ,   4 ,   6 } and { 2 ,   5 ,   6 } , both for n = 6 ; and { 2 ,   3 ,   7 ,   8 } , where n = 8 .
Cameron and Erdős’ taxonomy states the only possibilities for m are as follows: (1) m n + 1 2 , or (2) m = 1 and A is composed solely of odd numbers. If we are to prove Theorem 3, we must then challenge both of these.
Lemma 1. 
There is no sum-free set of positive integers with cardinality n + 1 2 and 3 m < n + 1 2 .
Proof. 
First, we show that if m < n 3 , then m { 1 , 2 } . With this value of m, Theorem 1 gives us that g ( n , m ) 1 2 ( n m ) + 1 . Let us assume, for a contradiction, that a sum-free set A (under the requirements of the hypothesis) can have a cardinality that is any lower than this upper bound (that is, n m 2 ). We have that
n m 2 = n + 1 2 m = 1 .
However, m Z + . Hence, this cannot be, and the upper bound of g ( n ,   m ) is attained. This leads to
n m 2 + 1 = n m + 2 2 = n + 1 2 .
Thus, m { 1 ,   2 } .
Now, we show that if n 3 m < n 2 , then there is no suitable m. Notice that | A | = n + 1 2 , but min ( { 1 ,   3 } ) , min ( { 2 ,   5 ,   6 } ) < 3 . Hence, the exceptions identified in Theorem 2 do not apply. Thus, we can use Theorem 1, leading to the upper bound g ( n ,   m ) m . We have that m < n 2 , so it cannot be that g ( n , m ) = n + 1 2 . □
Clearly, we now need to analyse the cases in which m { 1 ,   2 } . Here, we are interested in non-trivial sum-free sets of maximum cardinality. Notice that if n { 1 ,   2 } , then { 1 } and { 2 } are the only possible sum-free sets. However, both of these are already covered by Cameron and Erdős’ taxonomy. Hence, we focus on n 3 leading to m , p A with m p .
Lemma 2. 
There are exactly two sum-free sets with cardinality n + 1 2 containing 1 that are not covered by Cameron and Erdős’ taxonomy.
Proof. 
Let p be the highest element of A. Given that A is sum-free, at most one element of each of the following pairs can be an element of A:
( 1 , p 1 ) , ( 2 , p 2 ) , , n + 1 2 1 , p n + 1 2 1 .
Notice that there are n + 1 2 1 such pairs; however, we know that p A , and there is no pair with p as an element. Clearly, n + 1 2 1 + 1 = | A | . That is, A must contain one element from each pair.
If n = 3 , we have A = { 1 ,   p } with 1 < p 3 . The only possible combination is A = { 1 ,   3 } ; however, this set is already covered by Cameron and Erdős’ taxonomy. If n = 4 , we have a new A = { 1 ,   p } = { 1 , 4 } , which is our first sum-free set. Recall that A is sum-free if and only if A is difference-free. We have that
1 ,   p A 2 , p 1 A p 2 , 1 A .
Hence, 1 ,   p 2 ,   p A . If n = 5 , then A = { 1 ,   3 ,   5 } , which is already covered by Cameron and Erdős’ taxonomy. If n = 6 , then the only possibility is A = { 1 ,   4 ,   6 } . The latter is our second and last sum-free set under the hypothesis.
We now show that the general pattern for A is { 1 ,   3 ,   5 ,   ,   p 2 ,   p } , for an odd p. We have identified that { 1 ,   p 2 ,   p } A for n 5 . Let a be the highest known value in A, that is, we begin with a = 1 . Hence, ( p 2 ) a A a + 2 A . Clearly, a is odd and a + 2 is the next odd number from a. Now, a + 2 is the highest known number in A, so we increment a such that a = a + 2 . Of course, we still have that ( p 2 ) a A a + 2 A . We can repeat this procedure as many times as necessary. Hence, A = { 1 ,   3 ,   5 ,   ,   p 2 ,   p } . Let us assume, for a contradiction, that p is even. In this case, A has only two even numbers, p and p 2 . However,
5 ,   1 A 5 1 = 4 A p 4 A .
The above implies that A has three even numbers, which cannot be. Thus, p is odd. Given A is of maximum cardinality, we have that n = p and A is the set of odd numbers in [ 1 ,   n ] . This set is already covered by Cameron and Erdős’ taxonomy. □
Lemma 3. 
There are exactly two sum-free sets with cardinality n + 1 2 containing 2 that are not covered by Cameron and Erdős’ taxonomy.
Proof. 
Let A be a sum-free set of maximum cardinality. The lowest possible cardinality of a non-trivial A leads to A = { 2 ,   p } . We have that n + 1 2 = 2 n { 3 ,   4 } , leading to 2 < p n , and by consequence, A = { 2 ,   3 } . However, this set is already covered by Cameron and Erdős’ taxonomy.
Recall that A must contain one element of each pair:
( 1 ,   p 1 ) , ( 2 ,   p 2 ) ,   , n + 1 2 1 ,   p n + 1 2 1 .
By consequence,
2 A 1 A p 1 A .
Thus, if n { 5 ,   6 } , we have A = { 2 ,   p 1 ,   p } . Notice that n = 5 p { 4 ,   5 } , leading to 2 ,   4 A , which cannot be. On the other hand, n = 6 p { 4 ,   5 ,   6 } , leading to the only valid combination of A = { 2 ,   5 ,   6 } . This is our first sum-free set.
Recall that a set is sum-free if and only if it is also difference-free. We have that
2 ,   p 1 A ( p 1 ) 2 = p 3 A 3 A .
Hence, n { 7 , 8 } leads to A = { 2 ,   3 ,   p 1 ,   p } . If n = 7 , every possible value of p (that is p { 5 ,   6 ,   7 } ) leads to an A that is not sum-free. If n = 8 , the only possible combination is A = { 2 ,   3 ,   7 ,   8 } . This is our second and last sum-free set under the hypothesis. Let us carry on.
2 ,   3 ,   p 1 ,   p A 3 2 ,   ( p 1 ) 2 ,   p 2 ,   ( p 1 ) 3 ,   p ( p 1 ) A = 1 ,   p 2 ,   p 3 ,   p 4 A p 1 ,   2 ,   3 ,   4 A .
The above shows that 2 ,   4 A , making A no longer sum-free. □
Using the lemmas above, we can prove the main theorem of this section.
Proof of Theorem 3. 
The taxonomy introduced by Cameron and Erdős presents all possible cases for sum-free sets of maximum cardinality with m n + 1 2 . Hence, if there are exceptions to this taxonomy, these can only happen if m < n + 1 2 .
Lemma 1 shows that there is no maximal sum-free set of positive integers with 3 m < n + 1 2 . Thus, the only possibility is if m { 1 ,   2 } . Lemmas 2 and 3 address the cases of m = 1 and m = 2 , respectively. These lemmas identify four sum-free sets not covered by Cameron and Erdős’ taxonomy. Specifically, these are { 1 ,   4 } , where n = 4 ; { 1 ,   4 ,   6 } and { 2 ,   5 ,   6 } , both for n = 6 ; and { 2 ,   3 ,   7 ,   8 } , where n = 8 . Hence, these are the only possible exceptions. □

Funding

This research received no external funding.

Data Availability Statement

No new data were created or analyzed in this study.

Acknowledgments

The author would like to thank Sarah Hart for her comments on an early version of this manuscript and discussions on sum-free sets.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Luczak, T. On sum-free sets of natural numbers. Resenhas Inst. Matemática E Estatística Univ. Sao Paulo 1995, 2, 229–238. [Google Scholar]
  2. Tao, T.; Vu, V. Sum-free sets in groups: A survey. J. Comb. 2017, 8, 541–552. [Google Scholar] [CrossRef]
  3. Cameron, P.J.; Erdős, P. Notes on sum-free and related sets. Comb. Probab. Comput. 1999, 8, 95–107. [Google Scholar] [CrossRef]
  4. Cameron, P.J.; Erdős, P. On the number of sets of integers with various properties. In Number Theory; Mollin, R.A., Ed.; Walter de Gruyter GmbH: Berlin, Germany, 1990; pp. 61–79. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cordeiro de Amorim, R. On Large Sum-Free Sets: Revised Bounds and Patterns. Mathematics 2024, 12, 3889. https://doi.org/10.3390/math12243889

AMA Style

Cordeiro de Amorim R. On Large Sum-Free Sets: Revised Bounds and Patterns. Mathematics. 2024; 12(24):3889. https://doi.org/10.3390/math12243889

Chicago/Turabian Style

Cordeiro de Amorim, Renato. 2024. "On Large Sum-Free Sets: Revised Bounds and Patterns" Mathematics 12, no. 24: 3889. https://doi.org/10.3390/math12243889

APA Style

Cordeiro de Amorim, R. (2024). On Large Sum-Free Sets: Revised Bounds and Patterns. Mathematics, 12(24), 3889. https://doi.org/10.3390/math12243889

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop