Tell Me The Number Of Digits First!

Logic Level 2

What is 111 times the number of digits in the answer to this question?


The answer is 333.

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.

2 solutions

Pi Han Goh
May 17, 2016

Let us first establish that the answer is an integer. Let N N be the answer to this question. Since the number of digits of N N is an integer (call it M M ), then 111 times this M M is also an integer. And because 111 M 111M is an integer, then so does the answer in question, N N .

The number of digits of an integer n n is log 10 n + 1 = log 10 n + 1 \lfloor \log_{10} n \rfloor + 1 = \lfloor \log_{10} n+ 1 \rfloor . This result can be shown in the article: finding the number of digits .

So we have M = log 10 N + 1 M = \lfloor \log_{10} N+ 1 \rfloor . And we want to solve the equation 111 M = N 111M = N , or equivalently 111 log 10 N + 1 = N 111 \lfloor \log_{10} N+ 1 \rfloor = N .

Trial and error shows that log 10 N + 1 = 3 \lfloor \log_{10} N + 1 \rfloor = 3 and N = 333 N = 333 .

Now we want to prove that the answer is unique. Suppose that there is there exists a solution for P 333 P \ne 333 that is also the answer to this question.

If P < 333 P <333 , then log 10 P + 1 = 1 , 2 , 3 111 log 10 P + 1 = 111 , 222 \lfloor \log_{10} P + 1 \rfloor = 1,2,3 \Rightarrow 111 \lfloor \log_{10} P + 1 \rfloor = 111,222 . But neither of these solutions satisfy the condition.

If 333 < P < 1000 333<P<1000 , then log 10 P + 1 = 3 111 log 10 P + 1 = 333 \lfloor \log_{10} P + 1 \rfloor = 3 \Rightarrow 111 \lfloor \log_{10} P + 1 \rfloor = 333 . But this contradicts our condition as well.

If P 1 0 4 P \geq 10^4 , then tabulating the values of log 10 + 1 \lfloor \log_{10} + 1 \rfloor versus the range of P P gives

log 10 P + 1 4 5 6 7 111 log 10 P + 1 444 555 666 777 range ( P ) [ 1 0 4 , 1 0 5 ) [ 1 0 5 , 1 0 6 ) [ 1 0 6 , 1 0 7 ) [ 1 0 7 , 1 0 8 ) \begin{array} { | c | c | c | c | c | c | } \hline \lfloor \log_{10} P+ 1 \rfloor & 4 & 5 & 6& 7 & \cdots \\ \hline 111 \lfloor \log_{10}P + 1 \rfloor & 444 & 555 & 666& 777 & \cdots \\ \hline \text{range}(P) & [10^4,10^5) & [10^5,10^6) & [10^6,10^7)& [10^7,10^8) & \cdots \\ \hline \end{array}

Note that the values of 111 log 10 P + 1 111 \lfloor \log_{10}P + 1\rfloor grows linearly, whereas the smallest value of P P grows exponentially. So it is impossible for the value of 111 log 10 P + 1 111 \lfloor \log_{10}P + 1\rfloor to catch up to even the smallest corresponding value of P P . In other words, the difference between these two values grows larger and larger. Hence, there can't be any solution for P 1 0 4 P\geq 10^4 as well. Hence, N = 333 N = \boxed{333} is the only answer to this question.

Ah... Very thorough! :)

Geoff Pilling - 5 years ago

Log in to reply

exactly i did it very short way.. :P took only 7 seconds for that! =D

ishan pradhan - 5 years ago
Gaurav Chahar
May 9, 2016

3 digits in answer so 111*3=333

Moderator note:

You've shown that this answer satisfies the conditions.

Why is this the only possible answer? How could we have obtained this answer?

But then, the answer would be 333, and you would need to multiply that by 111 to get the "true" answer, and so on... This question requires the answer to obtain an answer.

Richard Hausman - 5 years, 1 month ago

Log in to reply

The answer would be 333, which has 3 digits. 3 times 111=333. 333 has 3 digits, 3 times 111 = 333, which has 3 digits... You do not multiply 333 by 111, you multiply the number of digits (3) by 111.

C D - 5 years, 1 month ago

How do you submit a question?

James D - 5 years, 1 month ago

Log in to reply

Use the "Publish" link. Top left. (Under "Home" "Stats" and "Featured")

Geoff Pilling - 5 years, 1 month ago

Why not 1?

Shreevathsa CS - 5 years, 1 month ago

Log in to reply

1 111 1 1 \neq 111*1 :)

Geoff Pilling - 5 years, 1 month ago

Yup! :) ...............

Geoff Pilling - 5 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...