Given that ; after how many digits does occur in ?
Clarification: In the number 2805 2018 431381, occurs after digits.
Inspired from the following problem; I Love Algebra by Sirajum Prince .
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.
Let's generalize x n + x n 1 when x + x 1 = a and n is a power of 2 as follows;
x + x 1 = a , where n = 1 .
x 2 + x 2 1 = ( x + x 1 ) 2 − 2 = a 2 − 2 , where n = 2 .
x 4 + x 4 1 = ( x 2 + x 2 1 ) 2 − 2 = ( a 2 − 2 ) 2 − 2 , where n = 4 .
x 8 + x 8 1 = ( x 4 + x 4 1 ) 2 − 2 = ( ( a 2 − 2 ) 2 − 2 ) 2 − 2 , where n = 8 .
⋮
x n + x n 1 = ( x 2 n + x 2 n 1 ) 2 − 2 , where n = 2 m and m > 0 .
Therefore;
x n + x n 1 = { a ( x 2 n + x 2 n 1 ) 2 − 2 if n = 1 if n = 2 m , m ≥ 1 .
We can simply write a recursive function in any programing language, say Python3, as follows;
f(2048, 2018)
. The result is a long number, and 2 0 1 8 occurs at 4 3 1 3 t h position.