Consider the following function ("mockingbird") M M ( f ) ( x ) : f ↦ f ∘ f = f ( f ( x ) ) where M has a function f as argument and returns the function composition f ∘ f of the function with itself.
We now consider the following number: y = ( M ∘ M ∘ M ∘ M ) ( x ↦ x 2 ) ( 2 ) How many digits has the number y (in base 10)?
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.
M ( x ↦ x 2 ) M ∘ M ( x ↦ x 2 ) = M ( x ↦ x 2 2 ) M ∘ M ∘ M ( x ↦ x 2 ) = M ( x ↦ x 2 4 ) M ∘ M ∘ M ∘ M ( x ↦ x 2 ) = M ( x ↦ x 2 8 ) M ∘ M ∘ M ∘ M ( x ↦ x 2 ) ( 2 ) = ( x 2 ) 2 = x 2 2 = ( x 2 2 ) 2 2 = x 2 4 = ( x 2 4 ) 2 4 = x 2 8 = ( x 2 8 ) 2 8 = x 2 1 6 so = 2 2 1 6
We can determine the number of digits in any number by rounding down its base 1 0 logarithm and adding 1 . So the number of digits in 2 2 1 6 is
⌊ lo g 1 0 ( 2 2 1 6 ) ⌋ + 1 = ⌊ 2 1 6 lo g 1 0 2 ⌋ + 1 = 1 9 7 2 9
Problem Loading...
Note Loading...
Set Loading...
We evaluate the M -functions as follows ( M ∘ M ∘ M ∘ M ) ( f ) = M ( M ( M ( M ( f ) ) ) ) = M ( M ( M ( f ∘ f ) ) ) = M ( M ( ( f ∘ f ) ∘ ( f ∘ f ) ) ) = M ( M ( f ∘ f ∘ f ∘ f ) ) = M ( ( f ∘ f ∘ f ∘ f ) ∘ ( f ∘ f ∘ f ∘ f ) ) = M ( f ∘ f ∘ f ∘ f ∘ f ∘ f ∘ f ∘ f ) = ( f ∘ f ∘ f ∘ f ∘ f ∘ f ∘ f ∘ f ) ∘ ( f ∘ f ∘ f ∘ f ∘ f ∘ f ∘ f ∘ f ) = f 1 6 where f n denotes a n -fold function composition. In our case, we have f : x ↦ x 2 , so that f 1 6 ( x ) = 16 times f ( f ( … f ( x ) … ) ) = ( … ( x 16 times 2 ) 2 … ) 2 = x 2 1 6 = x 6 5 5 3 6 Therefore, the result y = 2 6 5 5 3 6 is a number too large to be explicitly stated here. But we can determine the number d of digits by calculating the decadic logarithm of y and rounding it up to the nearest integer: d = ⌈ lo g 1 0 ( y ) ⌉ = ⌈ lo g ( 1 0 ) lo g ( 2 ) ⋅ 6 5 5 3 6 ⌉ = 1 9 7 2 9 The following Python program explicitly evaluates the number y :