Local Postage Stamp Problem
- Local postage stamp problem is a study of representing integers as sums of elements (stamps) from a finite set with a fixed envelope capacity.
- The problem is NP-hard in general but becomes tractable with fixed denominations via incremental dynamic programming and sliding-window techniques that improve time and space efficiency.
- It connects classical additive number theory with the Frobenius problem, offering insights into periodicity, theoretical bounds, and practical algorithmic strategies.
The local postage stamp problem concerns the representability of integers as sums of a bounded number of elements—termed "stamps"—drawn (with repetition) from a finite set of positive integer denominations. Formally, for a finite, strictly increasing set of denominations with %%%%1%%%%, and an envelope capacity , the problem is to determine the largest integer such that every with can be written as with where the are nonnegative integers. This maximum is denoted , and the local postage stamp problem (LPSP) is to compute (or equivalently, , the least non-representable value) for inputs (Palais et al., 29 Jan 2026).
1. Formal Problem Statement and Variants
Given a set of pairwise distinct positive integers and envelope capacity , an integer is said to be -coverable by if there exist nonnegative integers with and . The local postage stamp problem is then to compute , the largest such that all are -coverable (Palais et al., 29 Jan 2026). Equivalently, the smallest non-coverable value is .
This is distinct from the global postage stamp problem, where for given and one seeks maximizing .
A related additive basis formulation considers an order- additive basis for as any set such that every can be written as a sum of at most elements of . The minimum cardinality of such a basis is denoted . This is equivalent to the postage stamp interpretation: is the minimal number of denominations needed so that all can be formed using at most stamps (Faust et al., 31 Jul 2025).
2. Complexity and Hardness Results
The LPSP is NP-hard under Turing reductions; this is established by reduction from the Subset-Sum and Partition problems (Palais et al., 29 Jan 2026). Specifically, the decision version asks whether exceeds a given bound, which can encode arbitrary instances of Subset-Sum in polynomial time under mild restrictions.
Despite NP-hardness, when the number of denominations is fixed, the problem becomes tractable by dynamic programming in time (Palais et al., 29 Jan 2026). When both and are small or moderate, practical efficient algorithms are available.
3. Algorithmic Approaches
Recent work introduces algorithmic improvements over the traditional Mossige–Selmer -time method. The primary innovation is an incremental dynamic programming (DP) algorithm that computes in time and space (Palais et al., 29 Jan 2026). This algorithm maintains two arrays, and of length :
- : the minimal number of stamps needed to form (or if or "unknown").
- : index of largest denomination used in an optimal decomposition of .
Processing from $0$ upward, for each we attempt to relax . If , both and are updated accordingly. The process halts when , at which point .
A further sliding-window refinement replaces the arrays with cyclic buffers of length , yielding space complexity. After processing each , its slot is invalidated to enable buffer reuse.
Table: Comparison of Algorithmic Approaches for LPSP
| Algorithm | Time Complexity | Space Complexity |
|---|---|---|
| Mossige–Selmer | ||
| Incremental DP | ||
| Sliding-Window DP |
Empirical tests indicate speedups of – for over earlier methods, and the sliding-window variant typically yields an additional $20$– improvement thanks to smaller working sets. Implementations are available at https://github.com/jgdumas/GStamps (Palais et al., 29 Jan 2026).
4. Structural and Theoretical Properties
The structure of -coverable numbers for given exhibits stabilization and eventual periodicity. For large enough , the set of integers not expressible as a sum of elements of is determined by intrinsic properties of and its dual , where (Granville et al., 2020).
Let with . For each residue class mod , define as the minimal nonnegative integer congruent to mod lying in , and as the least such that lies in the -fold sumset . Then, letting , it holds for all that expressed sums fill except for , where (Granville et al., 2020). The number of "holes" in stabilizes to as .
These results link the LPSP to the classical Frobenius problem, specifying the structure of representable and nonrepresentable values under bounded and unbounded stamp usage.
5. Bounds and Extremal Results
The extremal function , the minimal size of an order- additive basis for , equivalent to the number of needed stamp denominations, admits well-studied bounds (Faust et al., 31 Jul 2025):
- Trivial lower bound: .
- Trivial upper bound: .
Improved bounds have been obtained for large :
- Lower bound: For any and all sufficiently large,
This employs probabilistic methods and the Berry–Esseen theorem, with the constant amplified by over the trivial term.
- Upper bound: For any and all large,
This result is obtained by lifting constructions of additive bases for cyclic groups (Jia–Shen) to the integers.
Table: Numerical Comparison of Bounds for ,
| Bound Type | Stamp Count () |
|---|---|
| Trivial lower | $17.9$ |
| Improved lower | $19.4$ |
| Trivial upper | $39.8$ |
| Improved upper | $34.5$ |
The gap between lower and upper bounds narrows appreciably as increases, with the asymptotics revealing , where is tightly sandwiched between and for large (Faust et al., 31 Jul 2025).
6. Connections to Other Additive Problems
The local postage stamp problem generalizes and is closely related to classical results in additive number theory, notably the Frobenius problem (determining the largest integer not representable as a nonnegative linear combination of given relatively prime integers) (Granville et al., 2020). As or , the LPSP connects with the structure of the numerical semigroup generated by . The periodic stabilization of unattainable values and eventual coverage can be derived as corollaries of the constructive periodicity theorems for sumsets.
Moreover, LPSP and associated algorithmic advances have applications in secure multi-party computation, specifically in more efficient homomorphic evaluation of polynomials on encrypted values, facilitated by a more compact encoding of polynomials as sums of bounded integers (Palais et al., 29 Jan 2026).
7. Open Problems, Limitations, and Numerical Aspects
A principal open question is whether the lower and upper asymptotic bounds for coincide as (Faust et al., 31 Jul 2025). While the gap has been substantially narrowed, a precise determination of the best possible constants remains unresolved.
Algorithmic advancements have made computation feasible for comparatively large and , yet the underlying NP-hardness of LPSP limits exact methods for arbitrary parameters. The empirical performance of sliding-window DP shows substantial speedups but is still inherently exponential for very large or .
Finally, continued work focuses on improving both theoretical bounds (particularly for moderate ) and practical algorithms, as well as elaborating connections to classical and higher-dimensional generalizations of the Frobenius and related additive problems. Further avenues include the development and analysis of approximation algorithms for the global postage stamp problem and analogues in higher-rank free abelian groups (Faust et al., 31 Jul 2025, Palais et al., 29 Jan 2026, Granville et al., 2020).