A Subset-Sum Puzzle: How Many Sums Are Divisible by Five?

A small example makes a daunting counting problem concrete, but the exact answer for 2,000 numbers takes a deeper idea.

チャンネル
3Blue1Brown
公開日
2024年1月22日
動画
0:59
読了時間
1 分
スライド
1
原文
英語
YouTube で開く
スクロールすると動画は右下に小さくなって再生を続けます。字幕は閲覧言語に合わせて切り替わります。
閲覧言語2 言語で読めます
この記事はまだ日本語に翻訳されていないため、英語の原文を表示しています。
要約

30 秒でわかる

3Blue1Brown poses a counting problem about subsets of the integers from 1 to 2,000. A five-number example illustrates the question; the short clip points to a longer video for the solution.

  1. 1The questionCount subsets of {1, …, 2000} whose elements add up to a multiple of five.
  2. 2A smaller exampleAmong the 32 subsets of {1, 2, 3, 4, 5}, eight have a sum divisible by five.
  3. 3An exact countThe challenge is to find the precise answer for the larger set, not just estimate it.

ポイント

  1. The problem asks for subsets whose element sums are divisible by five.
  2. The set {1, 2, 3, 4, 5} has 32 subsets, eight of which have sums divisible by five.
  3. The full set has 2^2000 subsets, making the exact count a much larger challenge.
全文

チャプターごとに整えた全文を読む

文字起こしのみ
01

The puzzle and a small example

The speaker introduces the subset-sum question and illustrates it with five numbers.

How many subsets of {1, 2, 3, …, 2000} have elements that sum to a multiple of five? The question is easy to state, but finding an exact count is the challenge.

The five-number example
スライド 1 / 1The five-number exampleThe diagram lists subsets and their sums, illustrating which totals are divisible by five.

Start with the smaller set {1, 2, 3, 4, 5}. It has 2^5 = 32 subsets. If you add the elements in each subset and group the results by sum, eight have a sum divisible by five; the empty subset counts because its sum is zero.

02

The larger challenge

The exact count for 2,000 numbers requires a deeper technique, explained in the linked full video.

For the set through 2,000, there are 2^2000 subsets. A rough estimate might be tempting, but the problem asks for the exact answer. The speaker points to a surprising mathematical technique in the [full video](https://youtu.be/bOXCLR3Wric); this short clip does not give the solution.

同じチャンネルの記事

スライド 20 枚40:44EN
3Blue1Brown· 2026年10月16日Grant Sanderson: There's never been a better time to go into mathGrant Sanderson, Constantin Kogler · 3Blue1BrownStudents fear AI has solved mathematics. Grant Sanderson argues the opposite: even if machines prove theorems better than we do, the institution of math stays valuable—and this is a rare moment when newcomers can reshape it.MathematicsAI for scienceHuman-AI Collaboration+2
スライド 29 枚51:55EN
3Blue1Brown· 2026年9月18日The last IMO problem AI could not solveGrant Sanderson · 3Blue1BrownGrant Sanderson walks through IMO 2025 Problem 6 — a tiling puzzle that frontier models missed — and the visual patience it takes to prove a construction is optimal.MathematicsAI researchReasoning & test-time compute+2
0:55EN
3Blue1Brown· 2026年7月24日The 64 Sugar Cubes Puzzle: Six Equal DistancesA 4×4×4 block has three colors; prove that six same-colored pairs share a distance.MathematicsEducation
33:51EN
3Blue1Brown· 2026年7月16日What Cross-Entropy Connects: Compression, Language Models and KL DivergenceGrant Sanderson · 3Blue1BrownGrant Sanderson builds cross-entropy from code lengths and uses it to explain next-token training and distillation.MathematicsMachine LearningFoundation Models+1
スライド2:25EN
3Blue1Brown· 2026年6月12日How Shannon Measured the Entropy of EnglishA guessing game helped Claude Shannon estimate how much information English text contains, and why prediction is central to compression.MathematicsAI History
スライド1:02EN
3Blue1Brown· 2026年6月10日A Robot Walk and the Puzzle of Optimal Binary EncodingHow few bits does it take to send directions that occur with unequal frequencies?MathematicsScience Communication