Skip to content

Commit 66284b6

Browse files
committed
add golden ratio and fibonacci number
1 parent 6acf229 commit 66284b6

13 files changed

+637
-331
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
*~
12
_site
3+
_junk
24
.DS_Store
35
.jekyll
46
.bundle

_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
#
44

55
# Name of your site (displayed in the header)
6-
name: Chih-hsiang Cheng
6+
name: Random thoughts 隨便寫寫
77

88
# Short bio or description (displayed in the header)
9-
description: Scientist
9+
description: by a scientist with a wandering mind
1010

1111
# URL of your avatar or profile pic (you could use your GitHub profile pic)
1212
avatar: https://avatars3.githubusercontent.com/u/1696423?v=2&s=460
@@ -52,7 +52,7 @@ baseurl: ""
5252

5353
markdown: kramdown
5454
highlighter: pygments
55-
permalink: /:title/
55+
permalink: /blog/:year/:month/:day/:title/
5656

5757
# The release of Jekyll Now that you're using
5858
version: v1.0.0

_posts/2014-3-3-Hello-World.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

_drafts/golden-ratio-and-fibonacci-numbers.md renamed to _posts/2015-01-24-golden-ratio-and-fibonacci-numbers.md

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: post
33
title: Golden Ratio and Fibonacci Numbers
4+
category: math
5+
tags: golden_ratio, Fibonacci, series
46
---
57

68
Pretty much everybody heard about the golden ratio, and if you are a little
@@ -34,7 +36,7 @@ following. Take a rectangular piece of paper; cut away the largest square
3436
remaining rectangle is *similar* to the original, then ratio of the
3537
two sides of the rectangle (short to long) is the golden ratio.
3638

37-
![Rectangle division](../images/2014/golden-ratio-1.png)
39+
![Rectangle division]({{ site.url }}/images/2015/golden-ratio-1.png)
3840

3941
As shown in the picture above, the equality of the two ratios can be
4042
expressed in an equation:
@@ -65,8 +67,8 @@ $$a_n = a_{n-1}+a_{n-2}$$, let's take the difference of the two ratios
6567

6668
$$
6769
\begin{eqnarray}
68-
\delta_n &=& \frac{a_{n+1}}{a_{n}} - \frac{a_{n+2}}{a_{n+1}} \\
69-
&=& \frac{a_{n+1}^2 - a_{n}a_{n+2}}{a_n a_{n+1}}
70+
\delta_n &=& \frac{a_{n+1}}{a_{n+2}} - \frac{a_{n}}{a_{n+1}} \\
71+
&=& \frac{a_{n+1}^2 - a_{n}a_{n+2}}{a_{n+1} a_{n+2}}
7072
\end{eqnarray}
7173
$$
7274

@@ -81,12 +83,46 @@ N_n &\equiv& a^2_{n+1} - a_n a_{n+2} \\
8183
\end{eqnarray}
8284
$$
8385

84-
which is exactly $$-N_{n-1}$$. That is, the numerator of $$\delta_{n-1}$$
85-
with a negative sign. So, we know the numerator of $$\delta_n$$ is a
86-
constant with a flipping sign. But the denominator $a_na_{n+1}$ is a fast
87-
growing number. So $$\delta_n$$ approaches zero very quickly. Therefore,
88-
we can conclude that the ratio $$a_{n+1}/a_n$$ converges.
86+
which is exactly $$-N_{n-1}$$, that is, the numerator of $$\delta_{n-1}$$
87+
with a negative sign. You can go all the way down to $$\delta_0$$; each
88+
time you go one step down, you flip the sign but keep the magnitude constant.
89+
The denominator $$a_{n+1}a_{n+2}$$, on the other hand, is a fast
90+
growing number. So $$\delta_n$$ will approach zero very quickly. Therefore,
91+
we can conclude that the ratio $$a_n/a_{n+1}$$ converges (as long as
92+
$$\delta_n$$ approaches zero faster than $$1/n$$, which is true in this case).
8993

9094
Note that, it does not matter what the starting values $$a_1$$ and $$a_2$$ are.
91-
As long as $$a_n = a_{n-1}+a_{n-2}$$, the ratio converges as $$n\to \infty$$.
95+
As long as $$a_n = a_{n-1}+a_{n-2}$$ relation holds, the ratio converges as
96+
$$n\to \infty$$. So it can be regular Fibonacci numbers
97+
$$\{1, 1, 2, 3, 5\dots\}$$, or so-called Lucas numbers
98+
$$\{2, 1, 3, 4, 7\dots\}$$, or whatever $$a_1$$, $$a_2$$ you choose,
99+
even negative numbers. The ratio converges very quickly.
100+
101+
![Sequence ratio convergence]({{ site.url }}/images/2015/fibonacci-ratio-converge.png)
102+
103+
104+
Paper cutting again
105+
---------------------------
106+
107+
In the first figure, we cut a square out of a rectangular paper, and
108+
we let the remaining smaller rectangle be similar to the original, and
109+
then we conclude the ratio of the two sides is the golden ratio.
110+
Clearly if we start with the golden ratio, we can repeat this operation
111+
and cut the paper (mathematically) forever.
112+
113+
What if the ratio is not the golden ratio to start with?
114+
115+
First we define the situation that we say we cannot cut the paper in
116+
way anymore. That is, when the ratio of the two side $$x \ge 2$$, because
117+
when this happens, the long side will still be a long side after a
118+
square is removed, or it will become a square and you don't know how to
119+
cut it anymore.
120+
121+
It can be shown that to cut this rectangular forever, the only ratio
122+
you can start with is the golden ratio. If you start with a ratio of two
123+
adjacent Fibonacci numbers (can be very close to the godel ratio but not
124+
exactly), you will end up with a square, that is, the ratio of the sides
125+
is $$a_2/a_1$$.
126+
127+
92128

18.4 KB
Loading
File renamed without changes.

ipython_notebook/.ipynb_checkpoints/golden-ratio-and-fibonacci-numbers-checkpoint.ipynb

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)