I am a number. Let the amount of the digits I have be d . For example: If I was the number 5 7 6 4 8 0 1 , d would be equal to 7 .
There are 7 digits 5 7 6 4 8 0 1 ⟹ d = 7
I am the largest number that can be expressed as x d . Find the value of x × d .
NOTE: All variables are integer values.
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.
I am interesting!
Yes, you right! in python #print(len(str(9**21))) gives output as 21
Log in to reply
thanks man, I appreciate u doing the dirty work :D
We can set up inequalities if we make an example.
If d is equal to 3 , then x d could be 1 0 0 , 1 0 1 , 1 0 2 , . . . , or 9 9 9 (numbers that have 3 digits). Therefore, it must be between 9 9 and 1 0 0 0 . If d = 4 , then x d could be 1 0 0 0 , 1 0 0 1 , 1 0 0 2 , . . . , or 9 9 9 9 (numbers that have 4 digits). Therefore, it must be between 9 9 9 and 1 0 0 0 0 .
Through those examples, we can deduce that
1 0 d − 1 − 1 < x d < 1 0 d
Since x d < 1 0 d and we're looking for the largest value, x must be equal to 9 because it is the largest integer before 1 0 .
⟹ ⟹ lo g 9 ( 1 0 d − 1 − 1 ) < d < lo g 9 ( 1 0 d ) lo g 9 ( 1 0 d − 1 − 1 ) < d < d lo g 9 1 0 d lo g 9 ( 1 0 d − 1 − 1 ) < 1 < lo g 9 1 0 (divide all expressions by d )
In the left expression, we find that the largest integer value for d such that it would equate less than 1 is 2 1 .
2 1 lo g 9 ( 1 0 2 1 − 1 − 1 ) = 0 . 9 9 8 . . . < 1
x d = 9 2 1 ⟹ 9 × 2 1 = 1 8 9
You are to!
Problem Loading...
Note Loading...
Set Loading...
d = ⌊ lo g 1 0 x d ⌋ + 1 = ⌊ d ⋅ lo g 1 0 x ⌋ + 1 ⟹ ⌊ d ⋅ lo g 1 0 x ⌋ = d − 1
we definitely need x < 1 0 , otherwise ⌊ d ⋅ lo g 1 0 x ⌋ ≥ d
then, we need
d − 1 ≤ d ⋅ lo g 1 0 x ⟹ d d − 1 ≤ lo g 1 0 x ⟹ 1 − d 1 ≤ lo g 1 0 x
⟹ − d 1 ≤ lo g 1 0 x − 1 = lo g 1 0 1 0 x ⟹ d ≤ lo g 1 0 1 0 x − 1
now, notice 1 < x < 1 0 and the higher x is the higher the upper limit of d can be. So, JUST take x = 9 , which gives d ≤ 2 1 . 8 5 . So, JUST take d = 2 1 . You know, just do it!