We say that a set of positive integers is nice if it is a non-empty subsets of and the product of numbers in is a perfect power of .
For example, is a nice set because of .
What is the size of the largest nice set?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We see that all elements of a nice set must be of the form 2 k 5 l for some non-negative integers k and l . Moreover, 2 k 5 l ≤ 2 0 1 6 leaves us only the following possibilities:
l = 0 l = 1 l = 2 l = 3 l = 4 and and and and and 0 ≤ k ≤ 1 0 0 ≤ k ≤ 8 0 ≤ k ≤ 6 0 ≤ k ≤ 4 0 ≤ k ≤ 1
For each number of the form 2 k 5 l we can consider the quantity k − l and call it value of the number 2 k 5 l . Observe that the value of the product of two such numbers is equal to the sum of their values. Denote by T j the set of all numbers listed above with value equal to j .
It is easily seen that: ∣ T − 4 ∣ = 1 , ∣ T − 3 ∣ = ∣ T − 2 ∣ = 2 , ∣ T − 1 ∣ = 3 , ∣ T 0 ∣ = ∣ T 1 ∣ = 4 , ∣ T 2 ∣ = ∣ T 3 ∣ = ∣ T 4 ∣ = 3 , ∣ T 5 ∣ = ∣ T 6 ∣ = ∣ T 7 ∣ = 2 , ∣ T 8 ∣ = ∣ T 9 ∣ = ∣ T 1 0 ∣ = 1 and all other sets T j are empty.
Let us also denote T − = j < 0 ⋃ T j and T + = j > 0 ⋃ T j , so that ∣ T − ∣ = 8 ; ∣ T + ∣ = 2 2 .
Elements of T − have negative values, elements of T + have positive values, while all elements of T 0 have value 0.
Let S be a nice set. The condition that product of its elements is a power of 10 can be restated as the condition that sum of values of its elements is 0. (We simply use the fact that number of the form 2 k 5 l is a power of 10 if and only if k = l , i.e. k − l = 0 .) The sum of values of all numbers in T − is 3 ⋅ ( − 1 ) + 2 ⋅ ( − 2 ) + 2 ⋅ ( − 3 ) + 1 ⋅ ( − 4 ) = − 1 7 , so the total value of S ∩ T − is at least − 1 7 , and consequently the total value of S ∩ T + is at most 17.
By a greedy strategy we respectively take elements from T 1 , T 2 , . . . , T 1 0 until their total value exceeds 17. Since 4 ⋅ 1 + 3 ⋅ 3 + 3 ⋅ 3 = 1 9 > 1 7 , we cannot take all elements from T 1 ∪ T 2 ∪ T 3 , so S ∩ T + has at most 4 + 3 + 3 − 1 = 9 elements. On the other hand if we take all elements form T 1 ∪ T 2 , one element from T 3 and one element from T 4 , the total value of S ∩ T + will be exactly 4 ⋅ 1 + 3 ⋅ 2 + 1 ⋅ 3 + 1 ⋅ 4 = 1 7 .
Therefore the largest nice set has ∣ T − ∣ + ∣ T 0 ∣ + 4 + 3 + 1 + 1 = 2 1 elements.