WorksMathematics
Consecutive sums and Reconstructing Problems
Abstract
We study several problems concerning consecutive sums of integer sequences and their relationship with Sidon sets. We also provide new lower bounds for an extremal function related to sequences with distinct consecutive sums, and consider reconstruction problems from multisets of consecutive sums.
Introduction
A classical problem, posed by Erdős and Harzheim, asks whether one can find a sequence of integers bounded by such that all of its consecutive sums are pairwise different. The first named author addressed this problem by revealing a connection to Sidon sets: the condition that all consecutive sums are distinct implies that the sequence of their prefix sums forms a Sidon sequence.
These results, together with subsequent developments in inverse additive combinatorics (cf. for instance Beker [1], Tao [T]), demonstrate how structural properties of a sequence can be deduced from information about its consecutive sums.
In this paper, we investigate several related questions: ranging from connections between convexity and Sidon properties, extremal problems and reconstruction algorithms (see related results [3], [4]).
The paper is organized as follows. In § 2, we investigate convex sequences and their relationship with Sidon sets. In § 3, we establish lower bounds for the extremal function related to consecutive sums. Finally, in § 4, we study reconstruction from consecutive sums in one dimension and from block-sums in two dimensions.
Convex sequences vs. Sidon sets
Throughout the paper, we use the convention . We use the standard definition of a Sidon set: a set is called a Sidon set if
implies as unordered multisets. Repeated summands are allowed.
A classical example of a convex sequence is the sequence of squares, which is not a Sidon sequence. Of course, there are also sequences that are both convex and Sidon. The simplest example is . A denser sequence is due to Ruzsa. He proved that there exists an irrational number (where ) such that the sequence generated by the following formula forms an infinite Sidon sequence:
In particular, there exists a fixed such that is a convex sequence. More generally, he proved the following theorem.
Theorem 2.1 (Ruzsa [5]). Let be real numbers satisfying , . Write . For almost every there exists some (depending on ) such that the set is a Sidon set.
The question arises: What is the degree of a generalized polynomial that is a Sidon sequence?
Definition. Generalized polynomials are functions (or sequences) constructed from conventional polynomials, with the allowance of an additional operation: the application of the floor function () or the fractional part function ().
For example , are generalized polynomials. In the rest we consider generalized polynomials .
We now study a class of quadratic generalized polynomials for which strict convexity can be guaranteed, and ask whether they can form infinite Sidon sequences.
Definition. Let be the class of integer-valued sequences of the form
where is fixed, all coefficients are real, and is a generalized polynomial of degree at most one satisfying
We additionally require
Theorem 2.2. Every sequence is strictly convex. Moreover, the set is not a Sidon set.
Proof. Write
and let . For , we have and . Consequently,
Set
::: Then for every ,
Thus is strictly convex. In particular, its first differences are strictly increasing and tend to infinity, so there exists such that for all .
For , let
The are positive integers, and
Choose a positive integer . If the values of formed an infinite Sidon set, then all the consecutive sums of the sequence would be distinct: indeed, these sums are the positive differences
and a Sidon set has distinct positive differences. Therefore, by Theorem 3.1, we have for every . But because the are strictly increasing integers. This contradiction proves that cannot form an infinite Sidon set. □
Remark. One might ask why we set a condition on the coefficients in the definition of . To see why some restriction is needed, observe that for every and every sufficiently large integer (for instance, ), there exists such that
Let
We claim
For the lower bound we need ; the upper bound by a short calculation holds. Hence . For we need
Both the lower and upper bounds are trivial. Finally, for we need
the lower bound holds. For the upper bound we need , from this
which holds when . From the previous requirement namely that , if , then these inequalities hold.
Lower bound for
In [2] the first named author answered the following question of Erdős:
Question: Let be a strictly increasing sequence of positive integers with initial term . Suppose that the difference between consecutive terms is bounded by a positive integer , that is, for all $1 \le i \le n - 1\sum_{i=u}^{v} a_i) are distinct, what is the maximum possible value of the last element ?
The first named author [2 Theorem 3] proved the following upper bound.
Theorem 3.1 (Hegyvári [2]). Let be integers. Let be the maximum integer for which there exists a sequence such that () and all consecutive sums are different. Then
:::`
Note that a more careful calculus shows the bound .
Here we provide lower bounds for .
Theorem 3.2. Let be integers with . Then
In particular, as ,
Proof. Set
If , then the stated lower bound is trivial, so we may assume . Consider the arithmetic progression
Then , , and . Therefore it is enough to prove that all consecutive sums of are distinct.
Write , where . By the choice of , we have .
Suppose, for contradiction, that two distinct consecutive sums are equal. Then there exist integers with
such that
We first note that . Indeed, for any fixed length , the sums form a strictly increasing sequence in $m. Thus, after interchanging the two blocks if necessary, we may assume that .
Dividing the equality of sums by , we obtain
so
Since , the right-hand side is at least .
On the other hand, among all choices of a block of length and a block of length , the quantity
is maximal when the -block is as far to the right as possible and the -block is as far to the left as possible. Therefore
Hence
Since , it follows that
Now , and consequently
This contradicts
Therefore, all consecutive sums of are distinct. Since this sequence starts at , has all gaps equal to , and ends at , the definition of gives
Finally, if , then
and hence . This completes the proof. □
We give another lower bound which is better when .
Theorem 3.3. If is sufficiently large, then .
Proof. Assume first that there is a prime such that . Let for . Each -term consecutive sum has residue modulo . Clearly, all the consecutive -term sums are distinct. If an -term sum is equal to a -term sum (where ), then . Since , this is not possible. (Indeed, , is not possible, since is larger than all 1-term sums.) Therefore, in this case .
Now, assume that every prime divides . Let and for . Each -term consecutive sum has residue or modulo . Let and assume that an -term consecutive sum is equal to a -term consecutive sum. It is not possible that the -term sum contains , since this would be the smallest -term sum, smaller than all the -term sums.
If none of the two sums contain , then , which is not possible, since . The only remaining case is when the -term sum contains (and the -term sum does not contain ). This leads to the congruence , implying , thus .
Let the -term consecutive sum be . Then from the equation we get that . As , we get that , however the product of primes from divides the positive integer and for sufficiently large this product exceeds . This contradiction implies that the consecutive sums are indeed distinct. Hence, in this case holds, as well.
Reconstruction in and in
The reconstruction of discrete structures from data is a fundamental problem in computer science, discrete mathematics, and inverse number theory. One classical example is discrete tomography, which focuses on reconstructing multidimensional grids, most commonly binary matrices. Similarly, in computational biology, the well-known DNA Reconstruction Problem asks for the reconstruction of a point set solely from the unordered multiset of its pairwise distances.
In this section, we study reconstruction problems related to consecutive sums in one and two dimensions.
One-dimensional case
Let be a strictly increasing sequence of integers. For , define the consecutive sum
Let denote the multiset of all consecutive sums, written in nondecreasing order as
We consider only consecutive sums involving at least two terms.
Proposition 4.1. Let . Given , there is an algorithm with running time at most that reconstructs the sequence .
Proof. Clearly, and . Hence,
Since the smallest element of is , we obtain
Now suppose that the elements have been determined, and that we have calculated all consecutive sums
Let be the smallest element of the multiset obtained from by removing the previously determined consecutive sums, with their multiplicities. (Note that at each step, we remove the newly determined consecutive sums from the multiset, taking their multiplicities into account.) Since , we have .
Consequently, . We can then calculate all the new consecutive sums ().
At the -st step, we perform operations. Thus the total number of operations is indeed . ∎
Two-dimensional case
In the one-dimensional case, we considered the sums over all intervals of consecutive indices of length at least two. We now introduce the corresponding two-dimensional notion.
Let be an matrix with positive real entries, . For every rectangular submatrix of whose rows and columns are consecutive, let denote the sum of its entries. We call these sums block-sums when the submatrix is not of size .
In [2], the following translation problem was posed. Given a finite sequence , determine the smallest integer such that all consecutive sums of are distinct. The existence of such an integer is immediate.
We consider the two-dimensional analogue. Let be an matrix. Instead of adding an integer, we add an translation matrix .
The communication process. The specified reconstruction task involves the following communication process: given an matrix with positive entries, the value of is known. We send the translation matrix , and then receive the multiset of all block-sums of . Our task is to reconstruct from this information.
Let be any bijection (a fixed permutation of the entries of an matrix) and let , where .
Recognizing the rectangles . Let be any rectangle in . We have
Since and the binary representation of integers unique, from a sum can be uniquely identified.
Recognizing the rectangles of . Let be any rectangle in . Clearly and . Observe that
also, by the contribution from is negligible, the sums determine which entries belong to . Thus we can calculate each block-sum of , as well (by subtracting the corresponding block-sum of from the block-sum for ).
First, is the difference of the two block-sums and . Then, by using block-sums of the form and together with previously determined values we can calculate the entries of one by one. The longest step is reconstructing the block-sums of which takes steps. Thus the following result is obtained.
Theorem 4.2. Let and be an matrix such that for all . Given the block-sums of the matrix for a suitably chosen and known translation matrix , there is an algorithm that reconstructs within steps.
Acknowledgements
N.H. was supported by the National Research, Development and Innovation Office NKFIH Grant No K-146387. P.P.P. was supported by the National Research, Development and Innovation Office NKFIH (Grant Nr. K146387 and Excellence program, Grant Nr. 153829). Q.T. was supported by National Key Research and Development Program of China 2023YFA1010201.
References
Norbert Hegyvári, ELTE TTK, Eötvös University, Institute of Mathematics, H-1117 Pázmány st. 1/c, Budapest, Hungary and associated member of Alfréd Rényi Institute of Mathematics, Hungarian Academy of Science, H-1364 Budapest, P.O.Box 127.
Email address: [email protected]
Péter Pál Pach, HUN-REN Alfréd Rényi Institute of Mathematics, Réáltanoda utca 13–15., H-1053 Budapest, Hungary;
MTA–HUN-REN RI Lendület “Momentum” Arithmetic Combinatorics Research Group, Réáltanoda utca 13–15., H-1053 Budapest, Hungary;
Department of Computer Science and Information Theory, Budapest University of Technology and Economics, Műegyetem rkp. 3., H-1111 Budapest, Hungary.
Email address: [email protected]
Quanyu Tang, School of Mathematical Sciences, University of Science and Technology of China, Hefei 230026, P. R. China
Email address: [email protected]
References
- [1]A. Beker, On a problem of Erdős and Graham about consecutive sums in strictly increasing sequences. Bulletin of the London Mathematical Society 56(8) (2024) 2749–2759.arxiv.org/abs/2311.10087
- [2]N. Hegyvári, On consecutive sums in sequences, Acta Math. Hungar. 48 (1986), 193–200.DOI
- [3]J. Konieczny, On consecutive sums in permutations, Journal of Combinatorics 12 (2021), no. 3, 413–477.arxiv.org/abs/1504.07156
- [4]M.B. Nathanson, Sidon sets with Δ−separated sumsets in additive number theory, arXiv:2608.07416 [math.NT], https://doi.org/10.48550/arXiv.2608.07416
- [5]I. Z. Ruzsa, An almost polynomial Sidon sequence, Studia Scientiarum Mathematicarum Hungarica 38 (1-4) p. 367–376, DOI:10.1556/SScMath.38.2001.1-4.27DOI