TOPICS
Search

Postage Stamp Problem


The local postage stamp problem determines, for a fixed set A_k={a_1,a_2,...,a_k} of k positive integer denominations satisfying 1=a_1<a_2<...<a_k and a positive integer h, the smallest integer N_h(A_k) which cannot be represented by a linear combination sum_(i=1)^(k)x_ia_i with x_i>=0 and sum_(i=1)^(k)x_i<=h (Shallit 2002).

Equivalently, the h-range of A_k is

 n_h(A_k)=N_h(A_k)-1,
(1)

the largest integer such that every positive integer from 1 through n_h(A_k) can be represented. The global postage stamp problem asks for the maximum of n_h(A_k) over all such k-element sets A_k; this maximum is denoted n_h(k) (Challis and Robinson 2010).

Exact solutions are known for k=2 and 3. For a fixed two-denomination set, the solution is

 n_h(A_2)=(h+3-a_2)a_2-2
(2)

for h>=a_2-2. It is also known that

 n_h(2)=|_1/4(h^2+6h+1)_|,
(3)

(Stöhr 1955, Guy 1994), where |_x_| is the floor function, the first few values of which are 2, 4, 7, 10, 14, 18, 23, 28, 34, 40, ... (OEIS A014616; Guy 1994, p. 123).

Hofmeister (1968, 1983) showed that for h>=20,

 n_h(3)=4/3(1/3h)^3+6(1/3h)^2+Ah+B,
(4)

where A and B are functions of h (modulo 9), and Mossige (1981, 1987) showed that

 n_h(4)>=2.008(1/4h)^4+O(h^3)
(5)

(Guy 1994, p. 123).

For h=2 and k from 1 through 24, the global ranges n_2(k) are 2, 4, 8, 12, 16, 20, 26, 32, 40, 46, 54, 64, 72, 80, 92, 104, 116, 128, 140, 152, 164, 180, 196, and 212, respectively (OEIS A001212). The corresponding numbers of extremal bases are 1, 2, 1, 1, 1, 5, 3, 2, 1, 2, 4, 1, 1, 3, 1, 1, 1, 1, 1, 1, 4, 3, 3, and 3 (Challis and Robinson 2010, Kohonen and Corander 2014).

A distinct-summand variant allows at most two stamps but requires two used stamps to have different denominations. It asks for the largest m such that a k-element set S of nonnegative integers contains 0 and every integer from 1 through m is the sum of two distinct elements of S. For k from 2 through 20, the maximum values are 1, 3, 6, 9, 13, 17, 22, 27, 33, 40, 47, 56, 65, 74, 83, 94, 105, 117, and 129, respectively (OEIS A004129). This variant is closely related to harmonious graphs (Graham and Sloane 1980).

Shallit (2002) proved that the local postage stamp problem is NP-hard under Turing reductions, but can be solved in polynomial time if k is fixed.

When the number of summands is unrestricted and the denomination set is not required to contain 1, the analogous problem of finding the largest nonrepresentable integer, usually when the denominations have greatest common divisor 1, is the Frobenius problem, also called the coin problem.


See also

Coin Problem, Greedy Algorithm, Harmonious Graph, Integer Relation, Knapsack Problem, Stamp Folding, Stöhr Sequence, Subset Sum Problem

Explore with Wolfram|Alpha

References

Challis, M. F. and Robinson, J. P. "Some Extremal Postage Stamp Bases." J. Integer Sequences 13, Article 10.2.3, 2010. https://cs.uwaterloo.ca/journals/JIS/VOL13/Challis/challis6.html.Graham, R. L. and Sloane, N. J. A. "On Additive Bases and Harmonious Graphs." SIAM J. Algebraic Discrete Math. 1, 382-404, 1980. https://doi.org/10.1137/0601045.Guy, R. K. "The Postage Stamp Problem." §C12 in Unsolved Problems in Number Theory, 2nd ed. New York: Springer-Verlag, pp. 123-127, 1994.Hofmeister, G. "Asymptotische Aschätzungen für dreielementige extremalbasen in natürlichen Zahlen." J. reine angew. Math. 232, 77-101, 1968.Hofmeister, G. "Die dreielementige Extremalbasen." J. reine angew. Math. 339, 207-214, 1983.Hujter, M. and Vizvari, B. "The Exact Solutions to the Frobenius Problem with Three Variables." J. Ramanujan Math. Soc. 2, 117-143, 1987.Kohonen, J. and Corander, J. "Addition Chains Meet Postage Stamps: Reducing the Number of Multiplications." J. Integer Sequences 17, Article 14.3.4, 2014. https://cs.uwaterloo.ca/journals/JIS/VOL17/Kohonen/kohonen2.html.Mossige, S. "Algorithms for Computing the h-Range of the Postage Stamp Problem." Math. Comput. 36, 575-582, 1981.Mossige, S. "On Extremal h-Bases A_4." Math. Scand. 61, 5-16, 1987.Mossige, S. "The Postage Stamp Problem: An Algorithm to Determine the h-Range on the h-Range Formula on the Extremal Basis Problem for k=4." Math. Comput. 69, 325-337, 2000.Nijenhuis, A. "A Minimal-Path Algorithm for the 'Money Changing Problem.' " Amer. Math. Monthly 86, 832-835, 1979.Shallit, J. "The Computational Complexity of the Local Postage Stamp Problem." SIGACT News 33, 90-94, 2002. https://doi.org/10.1145/507457.507473.Sloane, N. J. A. Sequences A001212, A004129, and A014616 in "The On-Line Encyclopedia of Integer Sequences."Stöhr, A. "Gelöste und ungelöste Fragen über Basen der natürlichen Zahlenreihe I, II." J. reine angew. Math. 194, 111-140, 1955. Wagon, S. "Greedy Coins." https://library.wolfram.com/infocenter/MathSource/5187/.

Referenced on Wolfram|Alpha

Postage Stamp Problem

Cite this as:

Weisstein, Eric W. "Postage Stamp Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PostageStampProblem.html

Subject classifications