Skip to main content
QUICK REVIEW

[Paper Review] Bachet's Problem: as few weights to weigh them all

Edwin O’Shea|arXiv (Cornell University)|Oct 26, 2010
Advanced Mathematical IdentitiesMathematics8 references7 citations
TL;DR

This paper generalizes Bachet's classic weighing problem—finding the minimal set of weights to measure all integer weights from 1 to m using a two-pan balance—by showing that the minimal number of weights corresponds to the smallest n such that m ≤ (3^{n+1}−1)/2. The solution uses a unique multiset of powers of 3 and a final weight to complete the sum, and the paper establishes a bijection between ordered factorizations of 2m+1 and subperfect partitions, revealing a deep connection between integer partitions and multiplicative factorizations.

ABSTRACT

A problem that enjoys an enduring popularity asks: "what is the least number of pound weights that can be used on a scale pan to weigh any integral number of pounds from 1 to 40 inclusive, if the weights can be placed in either of the scale pans ?" W.W. Rouse Ball attributes the first recording of this problem to Bachet in the early 17th century, calling it "Bachet's Weights Problem". However, Bachet's problem stretches all the way back to Fibonacci in 1202, making it a viable candidate for the first problem of integer partitions. Remarkably, given the age of Bachet's problem, an elegant and succinct solution to this problem when we replace 40 with any integer has only come to light in the last 15 or so years. We hope to expound on this generalization here armed only with our sharp wits and a willingness to induct. In doing so we will discover some of the joys of partitions of integers and enumerative combinatorics. This expository article, while of interest to researchers in combinatorics, integer partitions and the history of mathematics, is written with an impressionable undergraduate audience in mind.

Motivation & Objective

  • To generalize Bachet’s original problem of weighing all integers from 1 to 40 using minimal weights to any positive integer m.
  • To determine the minimal number of weights required to weigh any integer from 1 to m when weights can be placed on both pans.
  • To establish a bijection between ordered factorizations of 2m+1 and subperfect partitions of m, thereby solving the generalized two-pan weighing problem.
  • To highlight the overlooked significance of Bachet’s problem as a foundational problem in integer partitions and to promote its recognition in modern number theory.

Proposed method

  • For any m, compute the smallest n such that m ≤ (3^{n+1}−1)/2, then define the weight set W_m = {1, 3, 9, ..., 3^{n-1}, m − Σ_{i=0}^{n-1} 3^i}.
  • Use induction to prove that every integer l ∈ [0, m] can be uniquely expressed as a signed sum of weights in W_m with coefficients in {−1, 0, 1}.
  • Establish a bijection between ordered factorizations of 2m+1 and subperfect partitions of m by mapping each factorization f₁×f₂×⋯×f_r to a partition constructed from cumulative products and (f_i−1)/2 repetitions.
  • Leverage the structure of perfect partitions (from earlier work) to show that the resulting partitions are 2-complete and preserve uniqueness under signed combinations.
  • Use generating functions and recurrence relations to count the number of distinct solutions for a given m, particularly when m is not of the form (3^{n+1}−1)/2.
  • Demonstrate that the original Bachet solution (1+3+9+27=40) arises from the factorization 3×3×3×3 of 81=2×40+1.

Experimental results

Research questions

  • RQ1What is the minimal number of weights needed to weigh every integer from 1 to m using a two-pan balance, where weights can be placed on either pan?
  • RQ2How many distinct sets of weights can solve Bachet’s problem for a given m, and what is the structure of these sets?
  • RQ3Is there a bijection between the ordered factorizations of 2m+1 and the subperfect partitions of m?
  • RQ4Can the generalized Bachet problem be solved using a systematic construction based on powers of 3 and a residual weight?
  • RQ5What is the connection between subperfect partitions and multiplicative factorizations of 2m+1, and how does this generalize MacMahon’s original result?

Key findings

  • For any m, the minimal number of weights needed is the smallest n such that m ≤ (3^{n+1}−1)/2, and the optimal weight set is {1, 3, 9, ..., 3^{n-1}, m − Σ_{i=0}^{n-1} 3^i}.
  • When m = 25, there are exactly nine distinct solutions, all of which are partitions of 25 into four parts that allow unique signed representation of all integers from 1 to 25.
  • The subperfect partitions of m are in one-to-one correspondence with the ordered factorizations of 2m+1, with the original Bachet solution (1+3+9+27) corresponding to the factorization 3×3×3×3 of 81.
  • The construction ensures that every integer l ∈ [0, m] can be uniquely expressed as a signed sum ∑ α_i w_i with α_i ∈ {−1, 0, 1}, proving uniqueness and completeness.
  • The method generalizes MacMahon’s result: subperfect partitions of m are in bijection with ordered factorizations of 2m+1, and the number of such partitions equals the number of such factorizations.
  • The paper reveals that Bachet’s problem is not only historically significant but also mathematically rich, with deep connections to integer partitions, factorizations, and polyhedral combinatorics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.