PUMaC 2007 · 个人决赛(B 组) · 第 3 题
PUMaC 2007 — Individual Finals (Division B) — Problem 3
题目详情
求将 到 的整数染色所需的最少颜色数,使得若三个不同整数 同色,则 且 。
英文原题
- Find the minimum number of colors necessary to color the integers from 1 to 2007 such that if
distinct integers a, b, and c are the same color, then a 6 | b or b 6 | c.
1
解析
将 到 染色,使得同色的三个不同数 不满足 。求最少颜色数。
整除偏序集的最长链为 (11 个元素)。每种颜色类的高度 ≤ 2(链长最多 2)。
将 11 层两两配对需要 种颜色。此下界可达:按 染色(0-5)。
最少颜色数:。
英文解析
Color integers to with minimum colors such that if are distinct and same color, then or .
Rephrased: no monochromatic triple with and (a chain of divisibility of length 3).
This is a graph coloring problem on the divisibility poset. The condition forbids a monochromatic directed path of length 2 (3 vertices). We want the minimum number of colors.
Consider the "levels" based on the number of prime factors (with multiplicity), or the exponent of 2. A key observation: if are all powers of 2 (e.g., ), then , so they must use at least 3 different colors. In fact, any chain of length in the divisibility poset requires at least colors.
In , what's the longest chain? The longest chain under divisibility is the sequence of powers of 2: (length 11). Any chain can be at most 11 elements long (since each step at least doubles the number).
So in the worst case, we need at least 11 colors for this chain alone. But the problem forbids triples, not longer chains. With the condition only on triples (chains of length 2), we might use fewer colors.
Actually, the condition is: if three DISTINCT numbers of the same color form a chain , that's forbidden. So we need to color the poset such that no monochromatic chain of length 3 exists.
This is a "chain decomposition" problem. The minimum number of colors equals the size of the largest antichain... no, that's Dilworth's theorem for the opposite problem. For forbidding chains of length , we consider the poset height.
The poset under divisibility has height 11 (longest chain has 11 elements: powers of 2). To avoid a monochromatic chain of length 3, we need to assign colors so that each color class contains no chain of length 3. This means each color class is a union of at most 2 "levels" in any chain.
A standard approach: color by for appropriate . If we use , numbers with even vs odd : check if chains of length 3 exist. For 1 (log=0, even), 2 (log=1, odd), 4 (log=2, even) → colors: even, odd, even. So same color, different. has all three different colors if 1 and 4 share a color... wait, and are both "even". So the triple uses colors (even, odd, even) — only two colors, and the condition says all three must be the SAME color to be forbidden. Here and same but different, so it's fine. But can we find a triple ALL the same color?
For , numbers with same parity of : e.g., all even. These are 1,4,16. Do we have ? Yes ( and ). So (1,4,16) are all "even" color and form a forbidden chain! So fails.
Try : color by . Longest chain of powers of 2 with same color mod 3: values 0,3,6,9 → , , , , . That's 4 elements with same color. Among these: and are forbidden triples! So fails.
Try : . Powers of 2: 0,5,10 → . That's only 3 elements. is a chain of 3, same color → forbidden!
We need each color class to contain no chain of length 3. For the powers-of-2 chain of length 11, coloring each element with a distinct color would require 11 colors. But we can reuse colors as long as the same color doesn't appear three times in any chain.
The chain of powers of 2 has 11 elements. To avoid 3 same-colored elements in this chain, we need at least colors (by pigeonhole: with 5 colors, some color appears at least 3 times). But this chain is just one chain; we need to consider ALL chains.
Is 6 colors enough? We need to color the poset such that every chain has at most 2 elements of each color. The poset height is 11. Dilworth's theorem doesn't directly apply, but by considering "levels" in a grading...
Actually, the minimum number is the minimax number of "chain decomposition" into 2-element-chain-free sets. A simpler approach: color by the exponent of 2 in the prime factorization, modulo some number.
If we color by (the exponent of 2 in ), then for , . If are all the same color, then . But if is constant across the chain, can we still have divisibility? Yes: e.g., all have , and . So this coloring doesn't work.
How about coloring by (total number of prime factors)? If , then . For to be monochromatic, we need . This is possible: e.g., all have divisible by 3.
For 3 colors, the longest possible chain with constant would be limited by the fact that each divisibility step adds at least 1 prime factor (so increases by at least 1). To have three numbers in a chain with same , we need to increase by at least 3 between the first and third. So chains of length 3 with same color require . This can happen.
Actually, let me try a different coloring: color by but additionally split based on the odd part. With 3 colors: color by gives 4 colors. Hmm.
The known answer to this problem: the minimum number of colors is 3. The coloring: assign color based on where is the number of prime factors counted with multiplicity. Under this coloring, if and all have the same , then and for positive integers . For them to be equal mod 3, we need . The smallest such chain would have values with increments of at least 3. For , check if such chains exist...
Actually, the known result is that 3 colors suffice, and this is optimal because the chain (or any 3-element chain) shows 2 colors aren't enough.
Wait, the problem forbids distinct AND same color with . With 2 colors, : if and are red, is blue → no monochromatic triple. But can we 2-color without a monochromatic divisibility chain of length 3? For : similar issue. The challenge is coloring all 2007 integers.
If we color by parity of some function, we need to check whether any 3-element divisibility chain is monochromatic. By Sperner's theorem / Dilworth: the poset has height 11. If we use 2 colors, by the pigeonhole principle on the longest chain, some chain of length is monochromatic. That chain contains many length-3 subchains, all monochromatic! So 2 colors are NOT enough.
With 3 colors, the longest monochromatic chain has length at most by pigeonhole. But we need to avoid length 3. If the longest monochromatic chain is 4, it contains a length-3 subchain → forbidden. So we need the longest monochromatic chain to be at most 2. With 3 colors on a chain of length 11, can we ensure each color appears at most twice? Yes: assign colors in the pattern A,B,C,A,B,C,A,B,C,A,B (2 each of A,B,C). Each color appears at most 2 times in this chain.
So 3 colors can avoid monochromatic chains of length 3 on the longest chain. But we need to extend this to the ENTIRE poset. The question is whether 3 colors can color the entire poset with no monochromatic chain of length 3.
By a theorem of Mirsky (dual of Dilworth), the minimum number of antichains needed to cover a poset equals the length of the longest chain. But we're asking something different: we want to partition the poset into subsets each of height at most 2.
A subset of height at most 2 means every chain in that subset has at most 2 elements. The minimum number of such subsets to partition the poset is where is the poset height (11). So we need at least subsets!
Wait, that can't be right for a general poset. Let me think again. The poset height is the length of the longest chain. If we partition into subsets each of height , then the original poset's longest chain can have at most elements (2 from each subset). So , .
So we need at least 6 colors! Let me check if 6 colors suffice.
Actually, I need to re-read: the condition is about a TRIPLE , i.e., a chain of length 3 (3 vertices, 2 divisibility relations). A subset with height at most 2 contains no such triple. So we need to partition the poset into height-2 subsets, and we need at least colors.
But is the height of under divisibility really 11? Let me check: , . So powers of 2 give a chain of length 11 (from through ). Yes, 11.
So minimum colors = . But can we partition the poset into 6 height-2 subsets? A constructive coloring: assign color or similar. Actually, a standard decomposition is by "layers": combine adjacent levels of the poset (where level = ). With 11 levels, pairing them gives 6 groups. Within each pair of levels, can there be a chain of length 3? A chain can go from level to to , spanning 3 levels, so pairing adjacent levels only allows chains of length at most 2 within each pair → no length-3 chain in any color class.
So 6 colors work: color by (0 through 5). Each color class spans at most 2 consecutive levels, so no chain of 3 distinct elements exists within any class.
Can we do it with 5? The longest chain has 11 elements. With 5 colors, some color must appear at least times in the chain → a length-3 subchain → forbidden. Wait, they don't need to be consecutive in the chain. The pigeonhole principle says with 11 elements and 5 colors, some color appears at least 3 times. These 3 elements form a chain (since they're in a total order). So they're 3 distinct numbers with and all the same color → forbidden. So 5 colors are NOT enough.
Thus the minimum is 6.
Actually wait, I need to double-check. The longest chain in the divisibility poset is indeed 11: . But are there other chains? The maximum length is determined by the maximum exponent in prime factorization. For numbers ≤ 2007, and are the highest pure powers. So the longest chain is 11.
With 6 colors, using (0-5 for n up to 2047): levels 0-1 → color 0, 2-3 → color 1, ..., 10 → color 5. Each color spans at most 2 levels. A chain within a color can have at most 2 elements → condition satisfied.
Minimum colors = .