003. The Minimum Cardinality of a Set

Given the set XX of natural numbers, find the minimum cardinality of XX such that the sum of a subset of XX can represent all natural numbers between 3000 and 6000.


Let n(X)=mn(X) = m. Also, define a set Y=X{a}Y = X - \{a\} where aa is the maximum number in XX. So, n(Y)=m1n(Y) = m - 1 and the number of subsets of YY is 2m12^{m - 1}. It implies that the number of representable numbers by YY is at most 2m12^{m - 1}. Let yy be any number YY can represent.

(i) a<3000a < 3000; In this case, yy must be in the range [3000a,6000a][3000 - a, 6000 - a], that is, (6000a)(3000a)+1=30012m1(6000 - a) - (3000 - a) + 1 = 3001 \leq 2^{m - 1}. As such, m13m \geq 13.

(ii) a=3000a = 3000; In this case, yy must be in the range [1,3000][1, 3000], that is, 30002m13000 \leq 2^{m - 1}. As such, m13m \geq 13.

(iii) 3000<a60003000 < a \leq 6000; In this case, yy must be in the range [1,6000a][1, 6000 - a] or [3000,a1][3000, a - 1], that is, (6000a)+(a1)3000+1=30002m1(6000 - a) + (a - 1) - 3000 + 1 = 3000 \leq 2^{m - 1}. As such, m13m \geq 13.

(iv) a>6000a > 6000; In this case, yy must be in the range [3000,6000][3000, 6000], that is, 30012m13001 \leq 2^{m - 1}. As such, m13m \geq 13.

Therefore, m13m \geq 13. Meanwhile, note that any natural numbers in [12,1111111111112][1_2, 111111111111_2] can be represented from a partial sum of 121_2, 10210_2, 1002100_2, \cdots, 1000000000002100000000000_2 using binary format. Since 1111111111112=2121=4095111111111111_2 = 2^{12} - 1 = 4095, X={2999,1,21,22,,211}X = \{ 2999, 1, 2^1, 2^2, \cdots, 2^{11} \} can represent any number in [3000,7094][3000, 7094]. So, the minimum cardinality of XX is 1313.


© 2024. All rights reserved.