The Impossibly Long... Blackboard

Legend has it that my school has a really long blackboard. A reaaaally long blackboard. (I know, that's a really mundane way to start off a question. Please don't judge me.)

On this board, I write out the decimal representation of all the integers from 1 to 1 0 100 10^{100} , and it takes 0.01 0.01 seconds to write each digit; the total time in seconds is T T .

I then choose two numbers at random a a and b b and replace both with a single number a + a b + b a+ab+b . After some number of iterations, the single number left is of the form ( n + 1 ) ! 1 (n+1)!-1 .

Find

T ( m o d log 10 ( n ) ) \lfloor T \rfloor \pmod{\log_{10}(n)}


The answer is 89.

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

Jake Lai
Dec 28, 2014

Step 1:

The number of decimal digits of the integers from 1 to 1 0 100 1 10^{100}-1 is

S = k = 1 100 ( 9 k × 1 0 k ) S = \sum_{k=1}^{100} (9k \times 10^{k})

This is due to there being 9 integers from 1 to 9 (1 digit), 90 integers from 10 to 99 (2 digits), 900 integers from 100-999 (3 digits), etc.

Because 1 0 100 10^{100} has 101 digits, 100 T = 101 + S 100T = 101+S .

Step 2:

Now, consider the product

k = 1 1 0 100 ( a k + 1 ) \prod_{k=1}^{10^{100}} (a_{k}+1)

where { a 1 , a 2 , } \lbrace a_{1}, a_{2}, \ldots \rbrace is a permutation of the integers from 1 to 1 0 100 10^{100} . Note that this is an invariant under iteration of a + a b + b = ( a + 1 ) ( b + 1 ) 1 a+ab+b = (a+1)(b+1)-1 .

Since this product is ( 1 0 100 + 1 ) ! (10^{100}+1)! at the beginning, the number at the end will be ( 1 0 100 + 1 ) ! 1 (10^{100}+1)!-1 , our n = 1 0 100 n = 10^{100} . Thus, n = 1 0 100 n = 10^{100} and log 10 ( n ) = 100 \log_{10}(n) = 100 .

Step 3:

It is then obvious that T ( m o d 100 ) \lfloor T \rfloor \pmod{100} is asking for the digits in the hundreds and thousands place of 100 T = 101 + S 100T = 101+S . To find this, we must evaluate T ( m o d 10000 ) T \pmod{10000} . Since

S = k = 1 100 ( 9 k × 1 0 k ) k = 1 3 ( 9 k × 1 0 k ) 8890 ( m o d 10000 ) S = \sum_{k=1}^{100} (9k \times 10^{k}) \equiv \sum_{k=1}^{3} (9k \times 10^{k}) \equiv 8890 \pmod{10000}

we can therefore conclude

T = 101 + S 8890 101 + 8890 100 89 ( m o d 100 ) \lfloor T \rfloor = \lfloor \frac{101+S}{8890} \rfloor \equiv \lfloor \frac{101+8890}{100} \rfloor \equiv \boxed{89} \pmod{100}

This was the original unabridged version:

Legend has it that my school has a really long blackboard. A reaaaally long blackboard. (I know, that's a really mundane way to start off a question. Please don't judge me.)

While I was unbelievably board one day, I decided to write out all the positive integers from 1 to a googol in their decimal representation on this board, thinking that evaluating the time it took for me to write out all those numbers would make a good Brilliant problem.

Alas, even though each digit took me a mere 0.01 0.01 seconds to write, the total time T T it took me to write out all those digits was mind-breakingly long (I say that without hyperbole).

I decided, then, that I would have to let the answer be T m o d \lfloor T \rfloor \mod{} some integer. Leaving this "some integer" to fate, I eliminated numbers two at a time, replacing each a a and b b with a + a b + b a+ab+b . Iterating the process until a single string of digits was left, I found myself at the end of the number, staring towards the left: there were 9s, lots and lots of 9s; "Surely, this is cannot be a work of the hand of chance." I thought.

Adding 1, I saw emerging from this lake of 9s a multitude of trailing 0s. Glancing at the entire number, I knew then that this number was of the form ( n + 1 ) ! (n+1)! . Inspired by the epic nature of the factorial, I decided to post a problem on Brilliant (you're reading it right now). The problem is as follows:

Find

T ( m o d log 10 ( n ) ) \lfloor T \rfloor \pmod{\log_{10}(n)}

Jake Lai - 6 years, 5 months ago

Log in to reply

This is a very fancy way of saying mod 100

Julian Poon - 6 years, 5 months ago

Log in to reply

Indeed it is ;)

Jake Lai - 6 years, 5 months ago

Excellent Question! Did it the same way:D

Yash Singhal - 6 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...