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 , 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 0, and the local postage stamp problem (LPSP) is to compute 1 (or equivalently, 2, the least non-representable value) for inputs 3 (Palais et al., 29 Jan 2026).
1. Formal Problem Statement and Variants
Given a set 4 of 5 pairwise distinct positive integers 6 and envelope capacity 7, an integer 8 is said to be 9-coverable by 0 if there exist nonnegative integers 1 with 2 and 3. The local postage stamp problem is then to compute 4, the largest 5 such that all 6 are 7-coverable (Palais et al., 29 Jan 2026). Equivalently, the smallest non-coverable value is 8.
This is distinct from the global postage stamp problem, where for given 9 and 0 one seeks 1 maximizing 2.
A related additive basis formulation considers an order-3 additive basis for 4 as any set 5 such that every 6 can be written as a sum of at most 7 elements of 8. The minimum cardinality of such a basis is denoted 9. This is equivalent to the postage stamp interpretation: 0 is the minimal number of denominations needed so that all 1 can be formed using at most 2 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 3 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 4 is fixed, the problem becomes tractable by dynamic programming in time 5 (Palais et al., 29 Jan 2026). When both 6 and 7 are small or moderate, practical efficient algorithms are available.
3. Algorithmic Approaches
Recent work introduces algorithmic improvements over the traditional Mossige–Selmer 8-time method. The primary innovation is an incremental dynamic programming (DP) algorithm that computes 9 in 0 time and 1 space (Palais et al., 29 Jan 2026). This algorithm maintains two arrays, 2 and 3 of length 4:
- 5: the minimal number of stamps needed to form 6 (or 7 if 8 or "unknown").
- 9: index of largest denomination used in an optimal decomposition of 0.
Processing 1 from 2 upward, for each 3 we attempt to relax 4. If 5, both 6 and 7 are updated accordingly. The process halts when 8, at which point 9.
A further sliding-window refinement replaces the arrays with cyclic buffers of length 0, yielding 1 space complexity. After processing each 2, its slot is invalidated to enable buffer reuse.
Table: Comparison of Algorithmic Approaches for LPSP
| Algorithm | Time Complexity | Space Complexity |
|---|---|---|
| Mossige–Selmer | 3 | 4 |
| Incremental DP | 5 | 6 |
| Sliding-Window DP | 7 | 8 |
Empirical tests indicate speedups of 9–0 for 1 over earlier methods, and the sliding-window variant typically yields an additional 2–3 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 4-coverable numbers for given 5 exhibits stabilization and eventual periodicity. For large enough 6, the set of integers not expressible as a sum of 7 elements of 8 is determined by intrinsic properties of 9 and its dual 0, where 1 (Granville et al., 2020).
Let 2 with 3. For each residue class 4 mod 5, define 6 as the minimal nonnegative integer congruent to 7 mod 8 lying in 9, and 00 as the least 01 such that 02 lies in the 03-fold sumset 04. Then, letting 05, it holds for all 06 that expressed sums fill 07 except for 08, where 09 (Granville et al., 2020). The number of "holes" 10 in 11 stabilizes to 12 as 13.
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 14, the minimal size of an order-15 additive basis for 16, equivalent to the number of needed stamp denominations, admits well-studied bounds (Faust et al., 31 Jul 2025):
- Trivial lower bound: 17.
- Trivial upper bound: 18.
Improved bounds have been obtained for large 19:
- Lower bound: For any 20 and all 21 sufficiently large,
22
This employs probabilistic methods and the Berry–Esseen theorem, with the constant amplified by 23 over the trivial term.
- Upper bound: For any 24 and all 25 large,
26
This result is obtained by lifting constructions of additive bases for cyclic groups 27 (Jia–Shen) to the integers.
Table: Numerical Comparison of Bounds for 28, 29
| Bound Type | Stamp Count (30) |
|---|---|
| Trivial lower | 31 |
| Improved lower | 32 |
| Trivial upper | 33 |
| Improved upper | 34 |
The gap between lower and upper bounds narrows appreciably as 35 increases, with the asymptotics revealing 36, where 37 is tightly sandwiched between 38 and 39 for large 40 (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 41 or 42, the LPSP connects with the structure of the numerical semigroup 43 generated by 44. 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 45 coincide as 46 (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 47 and 48, 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 49 or 50.
Finally, continued work focuses on improving both theoretical bounds (particularly for moderate 51) 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).