Hello IMOment

We say that a set of positive integers S S is nice if it is a non-empty subsets of { 1 , 2 , 3 , , 2016 } \left\{ 1,2,3,\ldots,2016 \right\} and the product of numbers in S S is a perfect power of 10 10 .

For example, { 2 , 5 , 10 } \{2,5,10\} is a nice set because of 2 5 10 = 1 0 2 2\cdot 5\cdot 10 = 10^2 .

What is the size of the largest nice set?


The answer is 21.

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.

1 solution

We see that all elements of a nice set must be of the form 2 k 5 l {{2}^{k}}{{5}^{l}} for some non-negative integers k k and l l . Moreover, 2 k 5 l 2016 {{2}^{k}}{{5}^{l}}\le 2016 leaves us only the following possibilities:

l = 0 and 0 k 10 l = 1 and 0 k 8 l = 2 and 0 k 6 l = 3 and 0 k 4 l = 4 and 0 k 1 \begin{matrix} l=0 & \text{and} & 0\le k\le 10 \\ l=1 & \text{and} & 0\le k\le 8 \\ l=2 & \text{and} & 0\le k\le 6 \\ l=3 & \text{and} & 0\le k\le 4 \\ l=4 & \text{and} & 0\le k\le 1 \\ \end{matrix}

For each number of the form 2 k 5 l {{2}^{k}}{{5}^{l}} we can consider the quantity k l k-l and call it value of the number 2 k 5 l {{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 {{T}_{j}} the set of all numbers listed above with value equal to j j .

It is easily seen that: T 4 = 1 \left| {{T}_{-4}} \right|=1 , T 3 = T 2 = 2 \left| {{T}_{-3}} \right|=\left| {{T}_{-2}} \right|=2 , T 1 = 3 \left| {{T}_{-1}} \right|=3 , T 0 = T 1 = 4 \left| {{T}_{0}} \right|=\left| {{T}_{1}} \right|=4 , T 2 = T 3 = T 4 = 3 \left| {{T}_{2}} \right|=\left| {{T}_{3}} \right|=\left| {{T}_{4}} \right|=3 , T 5 = T 6 = T 7 = 2 \left| {{T}_{5}} \right|=\left| {{T}_{6}} \right|=\left| {{T}_{7}} \right|=2 , T 8 = T 9 = T 10 = 1 \left| {{T}_{8}} \right|=\left| {{T}_{9}} \right|=\left| {{T}_{10}} \right|=1 and all other sets T j {{T}_{j}} are empty.

Let us also denote T = j < 0 T j {{T}_{-}}=\bigcup\limits_{j<0}{{{T}_{j}}} and T + = j > 0 T j {{T}_{+}}=\bigcup\limits_{j>0}{{{T}_{j}}} , so that T = 8 ; T + = 22 \left| {{T}_{-}} \right|=8;\ \left| {{T}_{+}} \right|=22 .

Elements of T {{T}_{-}} have negative values, elements of T + {{T}_{+}} have positive values, while all elements of T 0 {{T}_{0}} have value 0.

Let S 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 {{2}^{k}}{{5}^{l}} is a power of 10 if and only if k = l k=l , i.e. k l = 0 k-l=0 .) The sum of values of all numbers in T {{T}_{-}} is 3 ( 1 ) + 2 ( 2 ) + 2 ( 3 ) + 1 ( 4 ) = 17 3\cdot \left( -1 \right)+2\cdot \left( -2 \right)+2\cdot \left( -3 \right)+1\cdot \left( -4 \right)=-17 , so the total value of S T S\cap {{T}_{-}} is at least 17 -17 , and consequently the total value of S T + S\cap {{T}_{+}} is at most 17.

By a greedy strategy we respectively take elements from T 1 , T 2 , . . . , T 10 {{T}_{1}},\ {{T}_{2}},\ ...,\ {{T}_{10}} until their total value exceeds 17. Since 4 1 + 3 3 + 3 3 = 19 > 17 4\cdot 1+3\cdot 3+3\cdot 3=19>17 , we cannot take all elements from T 1 T 2 T 3 {{T}_{1}}\cup {{T}_{2}}\cup {{T}_{3}} , so S T + S\cap {{T}_{+}} has at most 4 + 3 + 3 1 = 9 4+3+3-1=9 elements. On the other hand if we take all elements form T 1 T 2 {{T}_{1}}\cup {{T}_{2}} , one element from T 3 {{T}_{3}} and one element from T 4 {{T}_{4}} , the total value of S T + S\cap {{T}_{+}} will be exactly 4 1 + 3 2 + 1 3 + 1 4 = 17 4\cdot 1+3\cdot 2+1\cdot 3+1\cdot 4=17 .

Therefore the largest nice set has T + T 0 + 4 + 3 + 1 + 1 = 21 \left| {{T}_{-}} \right|+\left| {{T}_{0}} \right|+4+3+1+1=21 elements.

please give us one example of the set! i think the answer is 20

Rajuh Pbbs - 5 years, 1 month ago

Log in to reply

An example: S = { 625 , 1250 , 125 , 250 , 25 , 500 , 50 , 5 , 1 , 10 , 100 , 1000 , 2 , 20 , 200 , 2000 , 4 , 40 , 400 , 8 , 16 } S=\{625, 1250, 125, 250, 25, 500, 50, 5, 1, 10, 100, 1000, 2, 20, 200, 2000, 4, 40, 400, 8, 16\}

Khang Nguyen Thanh - 5 years, 1 month ago

Log in to reply

hahaha... i forgot that 1. thanks

Rajuh Pbbs - 5 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...