Skip to main content

The Problem Pit: The Disappearing Subset Sums Problem

 

The Disappearing Subset Sums Problem: Why Can’t I Pin This Down?

I wanted my first “seriously stuck” blog post to be worthy of the name, so instead of chasing a problem that collapses with a clever trick, I picked one that looked simple, but has enough depth to swallow you whole.

The Problem:
Given a set of integers {1,2,,n}\{1, 2, \dots, n\}, consider all possible subset sums. For which values of nn is it true that every integer from 1 up to the maximum possible sum can be expressed as a subset sum?

In other words: if I take all subsets of {1,2,,n}\{1,2,\dots,n\} and add their elements, do I get a perfectly “gapless” sequence of sums from 1 up to n(n+1)2\tfrac{n(n+1)}{2}?


Step 1: Falling Into the Trap of Optimism

At first glance, I was sure the answer was “always.” Why wouldn’t it be? With small nn, it seems so:

  • For n=1n=1: Subsets = {},{1}\{ \}, \{1\}. Sums = {0,1}\{0,1\}. Covers 1. Fine.

  • For n=2n=2: Subsets = sums are 0,1,2,3. We cover 1,2,3. Fine.

  • For n=3n=3: Sums are 0,1,2,3,4,5,6. Perfect coverage.

  • For n=4n=4: Sums are 0 through 10. Every number shows up.

By this point, I was writing confidently in my notebook: Clearly, by induction, this always works. That was my first false start.


Step 2: The Crash

The trouble started with n=5n=5.

Subsets of {1,2,3,4,5}\{1,2,3,4,5\} can sum from 0 up to 15. I expected a full range. But when I checked systematically, I realized: actually, they do cover all the numbers. 1 through 15 are all present.

Okay, so far so good.

Then n=6n=6. Maximum sum = 21. Do we cover everything from 1 to 21? At first, it looked fine. But then I noticed something subtle:

Try making the sum 20.

  • If I use 6, I need 14 from {1,2,3,4,5}\{1,2,3,4,5\}. Possible: 5+4+3+2 = 14. Great.

  • If I don’t use 6, I need 20 from {1,2,3,4,5}\{1,2,3,4,5\}. Impossible (max is 15).

So 20 is reachable. Fine.

But then I tried 19.

  • With 6: need 13 from {1,2,3,4,5}\{1,2,3,4,5\}. Yes (5+4+3+1).

  • Without 6: need 19 from {1,2,3,4,5}\{1,2,3,4,5\}. Impossible.

So 19 works too.

At this point, I had checked maybe 30 different subsets, scribbling frantic sums everywhere. My desk was covered with scratch paper. And every time I thought I had found a missing number, I found a way to build it.

The set {1,2,3,4,5,6}\{1,2,3,4,5,6\} actually does cover 1 through 21.


Step 3: The Suspicion

Now I was getting paranoid. Maybe it is always true. But a faint memory tugged at me — I had once read about something called “complete sequences,” and I remembered it wasn’t always this easy.

So I pushed on to n=7n=7.

Max sum = 28. I started testing specific targets. Could I make 27? Yes. Could I make 26? Yes. Could I make 25? Yes.

Every time I thought there’d be a gap, I managed to wiggle out with some combination.

Was this problem too easy after all?


Step 4: The Wall

I finally cracked open some references — but I avoided full spoilers. I learned that the sequence of sets {1,2,,n}\{1,2,\dots,n\} is indeed special: they are complete. That means they really do cover all sums without gaps.

So the problem, as I had stated it, wasn’t hard at all — it was always true.

But the real depth lies in the generalization:

For which sequences of positive integers (not just 1 through nn) do the subset sums form a complete interval with no gaps?

That’s the rabbit hole. It’s tied to Erdős–Graham-type additive number theory, and the classification is extremely hard. Even for simple sequences like {1,3,4,5}\{1,3,4,5\}, gaps appear, and characterizing exactly when they appear or disappear is a deep combinatorial puzzle.


Step 5: Reflection on Being Stuck

I had gone in expecting a small, crunchy problem, and instead what I found was:

  • At first, a “trick” (check small cases, guess it always works).

  • Then, endless checking, false leads, and wasted paper.

  • Then, the realization: I had stumbled onto the tip of a mountain. The real problem isn’t {1,2,,n}\{1,2,\dots,n\}, but the general classification — which is still very much alive in research.

I didn’t solve it. I barely scratched the surface. But that was the experience I wanted: to get tangled in a problem, fight with it, feel the ground shift under me, and walk away knowing the question is deeper than it looked.


This, to me, is what makes a math blog exciting: not just the solution, but the feeling of being swallowed whole by something that refuses to yield.



Comments

Popular posts from this blog

Sharp Extremal Bounds for Angular Occupancy (Behind the Curtains)

you can find the full paper here First Attempts, and the Limits of Energy When I first began thinking about angular occupancy, I wasn’t looking for a brand-new problem. I was chasing a theme that has long fascinated me in discrete geometry: how do we measure the geometric richness of a finite set of points? This fascination is not unique to me. Erdős, way back in 1946, posed the distinct distances problem : given n points in the plane, how many distinct distances can they determine? That question alone gave birth to entire decades of work in combinatorial geometry. Later, Fishburn and Füredi asked about distinct angles , while Pach and Sharir studied repeated angles . Each time, the same underlying itch was being scratched: when you place points in the plane, what kinds of diversity can they generate? Why angles, why bins? It was natural to think of angles — after all, distances and directions had already been well studied. But if you go straight for “distinct angles,” you run in...

The Art of Goodbye

  The Art of Goodbye: How Relationships End and Why It Matters The friendship had been slowly dissolving for months. What used to be weekly coffee dates became monthly check-ins, then sporadic text messages, then silence. No fight precipitated the ending, no dramatic confrontation or betrayal. It simply... faded. One day you realized you hadn't spoken to someone who was once central to your life, and you weren't sure when the relationship had officially ended or even if it had. This ambiguous loss left you with a peculiar grief – mourning someone still alive, still accessible, but no longer present in your world. This experience is incredibly common yet rarely discussed. While we have cultural scripts for how relationships begin – meet-cutes, first dates, friendship origin stories – we have few models for how they end. We talk extensively about building connections but rarely about gracefully releasing them. This gap in our social understanding leaves many people unprepared ...

Getting Stuck: When Dijkstra Meets Negative Edges

  Getting Stuck: When Dijkstra Meets Negative Edges One of the joys (and pains) of computer science is when you take a tool you know, confidently apply it, and then watch everything break down in surprising ways. This happened to me recently when I decided to revisit shortest path algorithms — specifically, Dijkstra’s algorithm — only to get stuck in a swamp of negative edges. Setting the Scene The problem was classic: Given a directed, weighted graph and a source vertex, find the shortest path to all other vertices. This is the kind of problem that every CS student learns early, usually with Dijkstra’s algorithm. I already knew Dijkstra like an old friend: Keep a priority queue of distances. Always expand the node with the current smallest distance. Relax its edges. Simple, elegant, efficient ( O((V + E) log V) with a binary heap). So when I started coding a graph utility for my project — a tool to analyze transportation networks — I confidently plugged in D...