Continued Fractions: Invisible Patterns Ramana Andra Thomas Jackson FTLOMACS OCT 14, 2017
Ramana Andra Thomas Jackson FTLOMACS OCT 14, 2017 AGENDA - - PowerPoint PPT Presentation
Ramana Andra Thomas Jackson FTLOMACS OCT 14, 2017 AGENDA - - PowerPoint PPT Presentation
Continued Fractions: Invisible Patterns Ramana Andra Thomas Jackson FTLOMACS OCT 14, 2017 AGENDA Representations on Numbers Continued Fraction Notation Finite Ratio Example Convergents Radicals Algebraic
- Representations on Numbers
- Continued Fraction Notation
- Finite Ratio Example
- Convergents
- Radicals
- Algebraic Numbers
- Ο
- Java Programs
- Invisible Connections
AGENDA
2
Infinite Series, Periodic and Nonperiodic Decimal Expansions, Integrals π = 1 +
1 2 + 1 3 + 1 4 β 1 5 + 1 6 + 1 7 + 1 8 + 1 9 + β 1 10 + 1 11 + 1 12 β 1 13 β¦
1 β π¦2ππ¦ = π 2
β ββ
π 4 = 1 β 1 3 + 1 5 β 1 7 + 1 9 β β― = (β1)π 2π + 1
β π=0
3.1415926535897932384626433832795β¦β¦.
TRADITIONAL REPRESENTATIONS OF NUMBERS
3
π = 1 + 5 2 = 1.6180339887 β¦ π = 1 + 1 + 1 + β― e =
1 π! β π=0
= 1 +
1 1 + 1 1β’2 + 1 1β’2β’3 + 1 1β’2β’3β’4 + β―
e = lim
πββ(1 + 1 π)π = 2.718281828459β¦
2 = 1.41421356237β¦
TRADITIONAL REPRESENTATIONS OF NUMBERS
4
4 π = 1 + 12 2 +
32 2 + 52 2 + 72 2 + 92 2 + 112 2 + β¦
EXAMPLES OF CFβS
5
e = 2 +
1 1 +
1 2 + 1 1 + 1 1 + 1 4 + 1 1 + 1 1 + 1 6 + β¦
Ξ¦ = 1 +
1 1 +
1 1 + 1 1 + 1 1 + 1 1 + 1 1 + β¦
EXAMPLES OF CFβS
6
π 2 = 1 - 1 3 β
2β’3 1β 1β’2 3 β 4β’5 1 β 3β’4 3 β 6β’7 1β 5β’6 3 β β¦
2 = 1 + 1 2 + 1 2 + 1 2 + 1 2 + 1 2 + 1 2 + β―
EXAMPLES OF CFβS
7
CONTINUED FRACTIONS TYPES Continued Fractions Simple Finite Infinite Periodic Non- Periodic General
8
General Continued Fraction a1 +
π1 π2+
π2 π3 + π3 π4 + π4 π5 + π5 π6β¦
Simple Continued Fraction (bi = 1) a1 +
1 π2+
1 π3 + 1 π4+ 1 π5 + 1 π6β¦
= [a1; a2, a3, a4, β¦] = [a1: a2, a3, a4, β¦] Convergents
ππ ππ= [a1; a2 a3, a4, a5,β¦an]
CONTINUED FRACTIONS FORMS
9
Ο = [3; 7, 15, 1, 292, 1, 1, 1, 2, 1, 3, 1, 14, 2, 1, 1, 2, ...] e = [2; 1, 2, 1, 1, 4, 1, 1, 6, β¦] Ο = [1; 1, 1, 1, 1, 1, 1, β¦ ]
FAMOUS CONTINUED FRACTIONS
10
Consider the fraction
47
- 13. Can we find the continued fraction (cf.) for this
finite ratio? We should consider breaking up the fraction into mixed form. So
47 13 = 3 + 8 13
We need the numerator to be one for our cf. form so we can apply the following algebraic identity
π π = 1
π π
to move forward.
FINITE RATIO EXAMPLE
11
47 13 = 3 + 1
13 8
= 3 +
1 1 + 5
8
= 3 +
1 1+ 1
8 5
= = 3 +
1 1+
1 1 + 3 5
47 13 = 3 + 1 1+
1 1 + 1 5 3
= 3 +
1 1+
1 1 + 1 1+2 3
= 3 +
1 1+
1 1 + 1 1+2 3
47 13 = 3 + 1 1+
1 1 + 1 1+1 3 2
= 3 +
1 1+
1 1 + 1 1+ 1 1+1 2
FINITE RATIO EXAMPLE
12
This procedure is an example of an algorithm called the Euclidean Algorithm which was developed by Euclid in his famous book The
- Elements. We can also look at the problem from
geometrical and coding perspectives.
FINITE RATIO EXAMPLE
13
GEOMETRIC CONSTRUCTION
14
Geometric Construction
15
Letβs consider the calculations already performed for the fraction
47 13 .
47 = 3(13) + 8 13 = 1(8) + 5 8 = 1(5) + 3 5 = 1(3) + 2 3 = 1(2) + 1 2 = 2(1) + 0
EUCLIDEAN ALGORITHM
16
We continue this operation on the two numbers and it will always stop when the length of the shortest rectangle is one and the remainder after the last triangle has been divided is zero. We can find the cf. form from the leading numbers from the list:
47 13 = 3 + 1 π+
1 π + 1 π+ 1 π+1 π
EUCLIDEAN ALGORITHM
17
We all know that Ο is derived from the roots of the quadratic equation Ο 2 - Ο - 1 = 0 Ο = 1 +
1 Ο
Ο = 1 +
1 1 + 1
Ο
Ο = 1 +
1 1+
1 1 + 1 Ο
Ο = 1 +
1 1+
1 1 + 1 1+β―
Ο = [1; 1, 1, 1, 1, 1, 1, 1, β¦]
PHI DERIVATION
18
We can look at the partial cfs for the fraction
47 13 to find better approximations
to the exact value of this fraction. These values are called convergents.
3, 3 +
1 1 , 3 + 1 1+ 1
1
, 3 +
1 1+
1 1 + 1 1
, 3 +
1 1+
1 1 + 1 1+1 1
3, 4,
7 2, 11 3 , 18 5 , 47 13 = 3, 4, 3.5, 3.666.., 3.6, 3.65β¦
CONVERGENTS
19
We can generalize this procedure. Let ci =
ππ ππ represent
the convergents for a given fraction with i β₯ 0.
So c1 = π1
π1 = a1 = π1 1
c2 = π2
π2 = a1 + 1 π2 = π1π2+1 π2
c3 =
π3 π3 = a1 + 1 π2+ 1
π3
=
π1π2π3+π1+π3 π2π3+1
CONVERGENTS
20
c4 =
π4 π4 = a1 + 1 π2+
1 π3+ 1 π4
=
π1π2π3π4+π1π2+π1π4+π3π4+1 π2π3π4+π2+π4
So we can βseeβ the following recursions for the convergent terms if we look carefully:
pi = aipi-1 + pi-2 qi = aiqi-1 + qi-2
CONVERGENTS
21
Using these recursion formulas, the convergents for the golden ratio Ο are
1 1, 2 1 , 3 2, 5 3, 8 5, 13 18, β¦..
We can see that the numbers in the numerators and denominators are terms from the Fibonacci sequence! We should notice that pi = aipi-1 + pi-2 = (1)pi-1 + pi-2 = pi-1 + pi-2 qi = aiqi-1 + qi-2 = (1)qi-1 + qi-2 = qi-1 + qi-2 and ci = ti+1
π’π where ti are the terms of the Fibonacci
sequence.
CONVERGENTS
22
2 = 1 + 1 2 + 1 2 + 1 2 + 1 2 + 1 2 + 1 2 + β― = [1; 2, 2, 2, 2, 2, 2, β¦ ]
SQUARE ROOT 2
23
Letβs see how we can derive this cf representation. 2 = 1 + ( 2 - 1) = 1 +
1
1 2β1
= 1 +
1 2+1
But 2 + 1 = 2 + ( 2 β 1) = 2 +
1
1 2β1
= 2 +
1 2+1
Thus 2 = 1 +
1 2+
1 2+1
If we use this rationalization method again repeatedly, we find the
- cf. of 2 consists of a single 1 followed entirely by 2βs.
Thus 2 = [1; 2, 2, 2, 2, 2, β¦ ]
SQUARE ROOT 2
24
Is there a pattern in the representation? Can we generalize numbers of the form π2 + 1? Letβs give it a go!
SQUARE ROOT 17
25
Letβs consider a simple case and suppose A = [a; b, b, b, b, b,β¦] We can rewrite A in the form A = a +
1 [π; π, π, π, π, π,β¦ ]
We need to determine the value of B = [b; b, b, b, b, b, β¦] Just like for A, we can rewrite B = b +
1 [π; π, π, π, π, π,β¦ ] PERIODIC CFβS
26
So we have B = b +
1 B which can be rewritten as B2 β bB -1 = 0
Using the Quadratic Formula, we have B =
π+ π2+4 2
Thus A = a +
2 π+ π2+4 = a - πβ π2+4 2
=
2πβπ 2
+
π2+4 2
So we have
2πβπ 2
+
π2+4 2
= [a; b, b, b, b, β¦] If b = 2a, then π2 + 1 = [π; 2π, 2π, 2π, 2π, β¦ ]
PERIODIC CFβS
27
Letβs try to derive the continued fraction for 3 on the board together!
SQUARE ROOT 3
28
3 = 1 + 1 1 + 1 2 + 1 1 + 1 2 + 1 1 + 1 2 + β― = [1; 1, 2, 1, 2, 1, 2, β¦ ]
.
SQUARE ROOT 3
29
PERIODIC CFβS
30
What about cube roots? These continued fractions are not periodic. We will find their cf. representation from their decimal first. From the decimal part, we will repeatedly invert the fractional part.
CUBE ROOTS
31
CUBE ROOTS
32
INFINITE CONTINUED FRACTIONS
33
Ξ 1/4
34
Ξ
35
CUBE ROOTS
We can find the cube roots using the bisection method. Easy for high school students to understand. Can be easily coded in a programming language. We have some simple Java programs to demonstrate.
36
Rational Numbers Square Root Cube Root
Ο
JAVA PROGRAMS
37
How do we evaluate Pi using a formula? We use an identity that came up recently in our Math club meeting.
Ο = 16 arctan
1 5 β 4 arctan 1 239
FORMULA FOR Ξ
38
Ramanujan proved two connections between Ο, e and Ο:
RAMANUJAN
39
A CONTINUED FRACTION APPROXIMATION OF THE GAMMA FUNCTION
40
You Tube video: Continued Fractions - Professor John Barrow https://www.youtube.com/watch?v=zCFF1l7NzVQ&t=670s The Topsy-Turvy World of Continued Fractions: https://www.math.brown.edu/~jhs/frintonlinechapters.pdf Cube Root of a Number: http://www.geeksforgeeks.org/find-cubic-root-of-a-number/ Gamma Function: http://www.sciencedirect.com/science/article/pii/S0022247X12009274 A Continued Fraction Approximation of the Gamma Function: http://www.sciencedirect.com/science/article/pii/S0022247X12009274 https://ac.els-cdn.com/S0022247X12009274/1-s2.0-S0022247X12009274-main.pdf?_tid=4981f0e4-b07a-11e7-bb6a- 00000aab0f26&acdnat=1507942672_ff44d4811825271fcf37c06314338fe1 Java Code: https://dansesacrale.wordpress.com/2010/07/04/continued-fractions-sqrt-steps/ Continued Fractions: http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/cfCALC.html
REFERENCES
41