A number theory problem by Andy Hayes

How many digits does the following number have?

k = 1 1000 10 k \large \left \lfloor \prod\limits_{k=1}^{1000} \sqrt[k]{10} \right \rfloor


The answer is 8.

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

Chew-Seong Cheong
Jul 25, 2017

Relevant wiki: Harmonic Number

P = k = 1 1000 10 k = exp ( ln k = 1 1000 1 0 1 k ) = exp ( ln 10 k = 1 1000 1 k ) = exp ( ln 10 H 1000 ) where H n is the n th harmonic number. exp ( ln 10 ( γ + ln 1000 ) ) By: Euler-Macheroni constant γ = lim n ( H n ln n ) exp ( ln 10 ( 0.5772 + 6.9078 ) ) exp ( ln 10 7.4850 ) 1 0 7.4850 \begin{aligned} P & = \prod_{k=1}^{1000} \sqrt[k]{10} \\ & = \exp \left(\ln \prod_{k=1}^{1000} 10^\frac 1k \right) \\ & = \exp \left( \ln 10 \sum_{k=1} ^{1000} \frac 1k \right) \\ & = \exp \left( \ln 10 \cdot {\color{#3D99F6}H_{1000}} \right) & \small \color{#3D99F6} \text{where }H_n \text{ is the }n \text{th harmonic number.} \\ & \approx \exp \left( \ln 10 \cdot {\color{#3D99F6}(\gamma + \ln 1000} \right)) & \small \color{#3D99F6} \text{By: Euler-Macheroni constant }\gamma = \lim_{n \to \infty} \left(H_n - \ln n\right) \\ & \approx \exp \left( \ln 10 \cdot ({\color{#3D99F6}0.5772 + 6.9078} \right)) \\ & \approx \exp \left( \ln 10 \cdot 7.4850 \right) \\ & \approx 10^{7.4850} \end{aligned}

P = 1 0 7.4850 \implies \lfloor P \rfloor = \lfloor 10^{7.4850} \rfloor has 8 \boxed{8} digits.

You forgot to add one more bracket in the 5th line of you working. Plus, how do you know that by adding " γ \gamma " into 5th line wouldn't alter the total number of digits of P P ?

Pi Han Goh - 3 years, 10 months ago

Can this question be solved without knowing exact values such as ln ( 1000 ) \ln(1000) , or using calculator power? I personally used https://oeis.org/A002387 .

Arthur Conmy - 3 years, 9 months ago
Neil Patram
Aug 1, 2017

Note that the product notation can be rewritten as floor( 10 * 10^ 1 2 \frac{1}{2} * 10^ 1 3 \frac{1}{3} * ... * 10^ 1 1000 \frac{1}{1000} ).

Since the number of digits in N is given by floor( log(N) ) + 1, so:

log( 10 * 10^ 1 2 \frac{1}{2} * 10^ 1 3 \frac{1}{3} * ... * 10^ 1 1000 \frac{1}{1000} )

= log(10) + log(10^ 1 2 \frac{1}{2} ) + log(10^ 1 3 \frac{1}{3} ) + ... + log(10^ 1 1000 \frac{1}{1000} )

= 1 + 1 2 \frac{1}{2} + 1 3 \frac{1}{3} + ... + 1 1000 \frac{1}{1000} .

... which is approximately equal to 7.485. (I used Desmos. There's probably a more math-y way to do it that I don't know about =/. ) Taking the floor function and adding 1 gives 8 .

anyone can do it using desmos.

Parth Bhardwaj - 3 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...