1 + i = 1 ∑ ⌊ 2 n ⌋ ⎣ ⎡ i ! 1 k = i + 1 ∏ 2 i ( n − k ) ⎦ ⎤
Solve the expression above for n = 1 5 .
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.
Rough proof:
The function is equal to
1
+
(
n
−
2
)
+
a
=
1
∑
n
−
4
a
+
a
=
1
∑
n
−
6
b
=
1
∑
a
b
+
a
=
1
∑
n
−
8
b
=
1
∑
a
c
=
1
∑
b
c
+
…
Which is equal to the number of permutations of strings of length n containing the characters "a" and "b", where two b's can't appear next to each other, and the string must begin and end with an "a". Each term is equal to the number of allowed permutations with a certain number of b's included. This set of rules can be represented by a Markov chain:
Where the total number of permutations as a function of the length n can be expressed as the matrix:
⎣
⎡
1
/
2
1
/
2
0
1
/
2
0
1
/
2
0
0
0
⎦
⎤
n
⋅
⎣
⎡
0
2
n
0
⎦
⎤
=
⎣
⎡
F
(
n
)
a
b
⎦
⎤
Where the first matrix can be expanded as:
⎣
⎢
⎡
0
0
1
2
1
+
5
2
−
3
−
5
1
2
1
−
5
2
−
3
+
5
1
⎦
⎥
⎤
⎣
⎢
⎡
1
n
0
0
0
(
4
1
−
5
)
n
0
0
0
(
2
1
+
5
)
n
⎦
⎥
⎤
⎣
⎢
⎡
1
1
0
−
5
+
3
5
1
0
−
5
−
3
5
1
1
0
−
5
+
5
1
0
−
5
−
5
1
0
0
⎦
⎥
⎤
Using this to solve for F(n), you get:
F ( n ) = 2 n 5 ( 1 + 5 ) n − ( 1 − 5 ) n Otherwise known as Binet's formula, which is equal to the Fibonacci sequence for all positive integers. Therefore, the solution of the function at n=15 is equal to the 15th Fibonacci number, 610.
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Fibonacci Sequence
S n = i = 1 ∑ ⌊ n / 2 ⌋ [ i ! 1 k = i + 1 ∏ 2 i ( n − k ) ] = i = 1 ∑ ⌊ n / 2 ⌋ i ! ( n − 2 i − 1 ) ! ( n − i − 1 ) ! = i = 1 ∑ ⌊ n / 2 ⌋ ( i n − i − 1 ) = i = 0 ∑ ⌊ 2 n − 1 ⌋ ( i n − i − 1 ) − 1 = F n − 1 For odd n = 2 m + 1 where F n is the n th Fibonacci number.
For n = 1 5 , 1 + S 1 5 = F 1 5 = 6 1 0 .
Source: Wikipedia