Papers
Topics
Authors
Recent
Search
2000 character limit reached

Local Postage Stamp Problem

Updated 6 February 2026
  • 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 Ak={a1,a2,,ak}A_k = \{a_1, a_2, \ldots, a_k\} with a1=1a_1 = 1, and an envelope capacity sNs \in \mathbb{N}, the problem is to determine the largest integer NN such that every nn with 0nN0 \leq n \leq N can be written as j=1kλjaj\sum_{j=1}^k \lambda_j a_j with j=1kλjs\sum_{j=1}^k \lambda_j \leq s where the λj\lambda_j are nonnegative integers. This maximum NN is denoted a1=1a_1 = 10, and the local postage stamp problem (LPSP) is to compute a1=1a_1 = 11 (or equivalently, a1=1a_1 = 12, the least non-representable value) for inputs a1=1a_1 = 13 (Palais et al., 29 Jan 2026).

1. Formal Problem Statement and Variants

Given a set a1=1a_1 = 14 of a1=1a_1 = 15 pairwise distinct positive integers a1=1a_1 = 16 and envelope capacity a1=1a_1 = 17, an integer a1=1a_1 = 18 is said to be a1=1a_1 = 19-coverable by sNs \in \mathbb{N}0 if there exist nonnegative integers sNs \in \mathbb{N}1 with sNs \in \mathbb{N}2 and sNs \in \mathbb{N}3. The local postage stamp problem is then to compute sNs \in \mathbb{N}4, the largest sNs \in \mathbb{N}5 such that all sNs \in \mathbb{N}6 are sNs \in \mathbb{N}7-coverable (Palais et al., 29 Jan 2026). Equivalently, the smallest non-coverable value is sNs \in \mathbb{N}8.

This is distinct from the global postage stamp problem, where for given sNs \in \mathbb{N}9 and NN0 one seeks NN1 maximizing NN2.

A related additive basis formulation considers an order-NN3 additive basis for NN4 as any set NN5 such that every NN6 can be written as a sum of at most NN7 elements of NN8. The minimum cardinality of such a basis is denoted NN9. This is equivalent to the postage stamp interpretation: nn0 is the minimal number of denominations needed so that all nn1 can be formed using at most nn2 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 nn3 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 nn4 is fixed, the problem becomes tractable by dynamic programming in time nn5 (Palais et al., 29 Jan 2026). When both nn6 and nn7 are small or moderate, practical efficient algorithms are available.

3. Algorithmic Approaches

Recent work introduces algorithmic improvements over the traditional Mossige–Selmer nn8-time method. The primary innovation is an incremental dynamic programming (DP) algorithm that computes nn9 in 0nN0 \leq n \leq N0 time and 0nN0 \leq n \leq N1 space (Palais et al., 29 Jan 2026). This algorithm maintains two arrays, 0nN0 \leq n \leq N2 and 0nN0 \leq n \leq N3 of length 0nN0 \leq n \leq N4:

  • 0nN0 \leq n \leq N5: the minimal number of stamps needed to form 0nN0 \leq n \leq N6 (or 0nN0 \leq n \leq N7 if 0nN0 \leq n \leq N8 or "unknown").
  • 0nN0 \leq n \leq N9: index of largest denomination used in an optimal decomposition of j=1kλjaj\sum_{j=1}^k \lambda_j a_j0.

Processing j=1kλjaj\sum_{j=1}^k \lambda_j a_j1 from j=1kλjaj\sum_{j=1}^k \lambda_j a_j2 upward, for each j=1kλjaj\sum_{j=1}^k \lambda_j a_j3 we attempt to relax j=1kλjaj\sum_{j=1}^k \lambda_j a_j4. If j=1kλjaj\sum_{j=1}^k \lambda_j a_j5, both j=1kλjaj\sum_{j=1}^k \lambda_j a_j6 and j=1kλjaj\sum_{j=1}^k \lambda_j a_j7 are updated accordingly. The process halts when j=1kλjaj\sum_{j=1}^k \lambda_j a_j8, at which point j=1kλjaj\sum_{j=1}^k \lambda_j a_j9.

A further sliding-window refinement replaces the arrays with cyclic buffers of length j=1kλjs\sum_{j=1}^k \lambda_j \leq s0, yielding j=1kλjs\sum_{j=1}^k \lambda_j \leq s1 space complexity. After processing each j=1kλjs\sum_{j=1}^k \lambda_j \leq s2, its slot is invalidated to enable buffer reuse.

Table: Comparison of Algorithmic Approaches for LPSP

Algorithm Time Complexity Space Complexity
Mossige–Selmer j=1kλjs\sum_{j=1}^k \lambda_j \leq s3 j=1kλjs\sum_{j=1}^k \lambda_j \leq s4
Incremental DP j=1kλjs\sum_{j=1}^k \lambda_j \leq s5 j=1kλjs\sum_{j=1}^k \lambda_j \leq s6
Sliding-Window DP j=1kλjs\sum_{j=1}^k \lambda_j \leq s7 j=1kλjs\sum_{j=1}^k \lambda_j \leq s8

Empirical tests indicate speedups of j=1kλjs\sum_{j=1}^k \lambda_j \leq s9–λj\lambda_j0 for λj\lambda_j1 over earlier methods, and the sliding-window variant typically yields an additional λj\lambda_j2–λj\lambda_j3 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 λj\lambda_j4-coverable numbers for given λj\lambda_j5 exhibits stabilization and eventual periodicity. For large enough λj\lambda_j6, the set of integers not expressible as a sum of λj\lambda_j7 elements of λj\lambda_j8 is determined by intrinsic properties of λj\lambda_j9 and its dual NN0, where NN1 (Granville et al., 2020).

Let NN2 with NN3. For each residue class NN4 mod NN5, define NN6 as the minimal nonnegative integer congruent to NN7 mod NN8 lying in NN9, and a1=1a_1 = 100 as the least a1=1a_1 = 101 such that a1=1a_1 = 102 lies in the a1=1a_1 = 103-fold sumset a1=1a_1 = 104. Then, letting a1=1a_1 = 105, it holds for all a1=1a_1 = 106 that expressed sums fill a1=1a_1 = 107 except for a1=1a_1 = 108, where a1=1a_1 = 109 (Granville et al., 2020). The number of "holes" a1=1a_1 = 110 in a1=1a_1 = 111 stabilizes to a1=1a_1 = 112 as a1=1a_1 = 113.

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 a1=1a_1 = 114, the minimal size of an order-a1=1a_1 = 115 additive basis for a1=1a_1 = 116, equivalent to the number of needed stamp denominations, admits well-studied bounds (Faust et al., 31 Jul 2025):

  • Trivial lower bound: a1=1a_1 = 117.
  • Trivial upper bound: a1=1a_1 = 118.

Improved bounds have been obtained for large a1=1a_1 = 119:

  • Lower bound: For any a1=1a_1 = 120 and all a1=1a_1 = 121 sufficiently large,

a1=1a_1 = 122

This employs probabilistic methods and the Berry–Esseen theorem, with the constant amplified by a1=1a_1 = 123 over the trivial term.

  • Upper bound: For any a1=1a_1 = 124 and all a1=1a_1 = 125 large,

a1=1a_1 = 126

This result is obtained by lifting constructions of additive bases for cyclic groups a1=1a_1 = 127 (Jia–Shen) to the integers.

Table: Numerical Comparison of Bounds for a1=1a_1 = 128, a1=1a_1 = 129

Bound Type Stamp Count (a1=1a_1 = 130)
Trivial lower a1=1a_1 = 131
Improved lower a1=1a_1 = 132
Trivial upper a1=1a_1 = 133
Improved upper a1=1a_1 = 134

The gap between lower and upper bounds narrows appreciably as a1=1a_1 = 135 increases, with the asymptotics revealing a1=1a_1 = 136, where a1=1a_1 = 137 is tightly sandwiched between a1=1a_1 = 138 and a1=1a_1 = 139 for large a1=1a_1 = 140 (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 a1=1a_1 = 141 or a1=1a_1 = 142, the LPSP connects with the structure of the numerical semigroup a1=1a_1 = 143 generated by a1=1a_1 = 144. 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 a1=1a_1 = 145 coincide as a1=1a_1 = 146 (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 a1=1a_1 = 147 and a1=1a_1 = 148, 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 a1=1a_1 = 149 or a1=1a_1 = 150.

Finally, continued work focuses on improving both theoretical bounds (particularly for moderate a1=1a_1 = 151) 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).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (3)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Local Postage Stamp Problem.