LAMC Intermediate Group October 18, Recursive Functions and Fractals

Similar documents
Fractals. Justin Stevens. Lecture 12. Justin Stevens Fractals (Lecture 12) 1 / 14

LAMC Beginners Circle October 6, Oleg Gleizer. A problem solving session. Problem 1 Put the right sign, >, <, or =, between the fractions.

Fractals and Dimension

Chapter 8. Fractals. 8.1 Introduction

CMSC 425: Lecture 11 Procedural Generation: Fractals and L-Systems

Mathematical Modelling Lecture 14 Fractals

Snowflakes. Insight into the mathematical world. The coastline paradox. Koch s snowflake

What means dimension?

AN INTRODUCTION TO FRACTALS AND COMPLEXITY

LAMC Beginners Circle November 10, Oleg Gleizer. Warm-up

LAMC Beginners Circle March 2, Oleg Gleizer. Warm-up

Contents. Counting Methods and Induction

D - E - F - G (1967 Jr.) Given that then find the number of real solutions ( ) of this equation.

RMT 2014 Power Round February 15, 2014

COUNTING AND SYMMETRY

University School of Nashville. Sixth Grade Math. Self-Guided Challenge Curriculum. Unit 2. Fractals

AN INTRODUCTION TO FRACTALS AND COMPLEXITY

THE UNIVERSALITY OF THE HYPERPOLAR IMAGES OF THE SIERPINSKI CARPET AND THE MENGER SPONGE. The Sierpinski Carpet

Distance in the Plane

Series. Definition. a 1 + a 2 + a 3 + is called an infinite series or just series. Denoted by. n=1

MA131 - Analysis 1. Workbook 4 Sequences III

CMSC 425: Lecture 12 Procedural Generation: Fractals

Computing Recursive Functions

Fractals. R. J. Renka 11/14/2016. Department of Computer Science & Engineering University of North Texas. R. J. Renka Fractals

Fractals: How long is a piece of string?

Patterns in Nature 8 Fractals. Stephan Matthiesen

2002 Mu Alpha Theta National Tournament Mu Level Individual Test

Appendix G: Mathematical Induction

CK-12 Geometry: Midsegments of a Triangle

(Infinite) Series Series a n = a 1 + a 2 + a a n +...

From Calculus II: An infinite series is an expression of the form

Department of Computer Sciences Graphics Fall 2005 (Lecture 8) Fractals

CCGPS Frameworks Student Edition. Mathematics. Accelerated CCGPS Analytic Geometry B / Advanced Algebra Unit 6: Polynomial Functions

RMT 2014 Power Round Solutions February 15, 2014

5.5 Deeper Properties of Continuous Functions

A6-1 Sequences. Pre-requisites: A4-9 (Supernatural Powers), C5-3 (Velocity Numerically) Estimated Time: 3 hours. Summary Learn Solve Revise Answers

Pascal s Triangle Introduction!

Stepping stones for Number systems. 1) Concept of a number line : Marking using sticks on the floor. (1 stick length = 1 unit)

2.4 Investigating Symmetry

BREAKING STICKS INTERMEDIATE GROUP - MARCH 12, 2017

A LEVER PLAYING FIELD 2: NEVER SAY LEVER

Organization Team Team ID#

LAMC Intermediate I & II October 12, Oleg Gleizer. Warm-up

UNIVERSITY OF NORTH CAROLINA CHARLOTTE 1995 HIGH SCHOOL MATHEMATICS CONTEST March 13, 1995 (C) 10 3 (D) = 1011 (10 1) 9

LAMC Intermediate I & II March 1, Oleg Gleizer. A natural unit of measuring angles, a radian

Lesson 8: Why Stay with Whole Numbers?

Unconventional Space-filling Curves

MAT100 OVERVIEW OF CONTENTS AND SAMPLE PROBLEMS

INTRODUCTION TO FRACTAL GEOMETRY

2009 Math Olympics Level II

SECTION 9.2: ARITHMETIC SEQUENCES and PARTIAL SUMS

Algebra 2 End of Course Review

UNIT 3. Rational Functions Limits at Infinity (Horizontal and Slant Asymptotes) Infinite Limits (Vertical Asymptotes) Graphing Rational Functions

LAMC Beginners Circle January 12, Oleg Gleizer. Warm-up

3) What is the sum of the measures of all of the interior angles of the triangle?

GAUSS CIRCLE PROBLEM

Grade 7/8 Math Circles October 28/29, Series

Estimation of Hausdorff Measure of Fractals Based on Genetic Algorithm

TSP Water Project Report Snowflakes and Fractals

Putnam Pigeonhole Principle October 25, 2005

LAMC Beginners Circle February 23, Oleg Gleizer. Warm-up

Find Sums of Infinite Geometric Series

Investigation Find the area of the triangle. (See student text.)

Hausdorff Measure. Jimmy Briggs and Tim Tyree. December 3, 2016

LAMC Intermediate I March 8, Oleg Gleizer. Theorem 1 Any two inscribed angles subtending the same arc on a circle are congruent.

6.2 Deeper Properties of Continuous Functions

VECTORS IN THE CARTESIAN PLANE WARM-UP

MATH 532, 736I: MODERN GEOMETRY

Pre-Calculus Module 4

We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero

Egyptian Fractions: Part I

Recursive Definitions. Recursive Definition A definition is called recursive if the object is defined in terms of itself.

LEVERS AND BARYCENTRIC COORDINATES (PART 2)

Recursive Definitions. Recursive Definition A definition is called recursive if the object is defined in terms of itself.

9th Bay Area Mathematical Olympiad

Some Results Concerning Uniqueness of Triangle Sequences

Sequence. A list of numbers written in a definite order.

Section 11.1 Sequences

State Math Contest Senior Exam SOLUTIONS

Hanoi attractors and the Sierpiński Gasket

Infinite Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

Franklin Math Bowl 2007 Group Problem Solving Test 6 th Grade

Decimation Technique on Sierpinski Gasket in External Magnetic Field

PROOF WITHOUT WORDS MATH CIRCLE (BEGINNERS) 05/06/2012

INTRODUCTION TO REAL ANALYSIS II MATH 4332 BLECHER NOTES

Please see pages 2 and 3 for the list of problems and contest details

Take a line segment of length one unit and divide it into N equal old length. Take a square (dimension 2) of area one square unit and divide

Key words and phrases. Hausdorff measure, self-similar set, Sierpinski triangle The research of Móra was supported by OTKA Foundation #TS49835

UNIT 3. Recall From Unit 2 Rational Functions

r=1 Our discussion will not apply to negative values of r, since we make frequent use of the fact that for all non-negative numbers x and t

+ ε /2N) be the k th interval. k=1. k=1. k=1. k=1

PHYSICS - CLUTCH CALC-BASED PHYSICS 1E CH 23: ELECTRIC POTENTIAL.

Math Contest, Fall 2017 BC EXAM , z =

Bounds of Hausdorff measure of the Sierpinski gasket

Egyptian Fractions: Part I

COMPSCI 105 S Principles of Computer Science. Recursion 2

Amazing Properties of Fractal Figures Mandrazhy Oksana

Introduction to Induction (LAMC, 10/14/07)

Appendices. Appendix A.1: Factoring Polynomials. Techniques for Factoring Trinomials Factorability Test for Trinomials:

Transcription:

LAMC Intermediate Group October 18, 2015 Oleg Gleizer oleg1140@gmail.com Recursive Functions and Fractals In programming, a function is called recursive, if it uses itself as a subroutine. Problem 1 Give an example of a recursive function different from the one used in Problem 2 below. Problem 2 Use Python to write a function factorial(n) that calls itself recursively to compute n! for non-negative integers n. 1

The limit of the following procedure is known as the Koch curve. The finite steps of the construction are known as the Koch curves of order n = 0, 1, 2,... 2

Assume that the length of the base segment used for the Koch curve construction is a. Problem 3 Let us denote l n the length of the Koch curve or order n. Given l 0 = a, find the following. l 1 = l 2 = l 3 = l 4 = l 5 = The length l of the Koch curve is the limit of the sequence l n as n tends to infinity. l = lim n l n What do you think l is? 3

If needed, use the Python Math module to answer the following questions. Problem 4 For what order n of the Koch curve of the base length a = 10 would the length l n exceed 1,000? 1,000,000? 700,984,371? 55,000,000,000? A huge positive number M? Definition 1 If for any positive number M, no matter how huge, there exists a number N, that depends on M, such that for any n N all the elements of the sequence l n exceed M (l n > M), then we say that the limit of the sequence l n as n tends to infinity equals positive infinity. lim l n = + n 4

Problem 5 Generalize your solution of Problem 4 above to any base length a > 0 to prove that any Koch curve has infinite length. Recall that to use the Turtle module commands without the turtle. beginning, we employ the following prompt. >>> from turtle import * Problem 6 In the Turtle module, write a function kochc(n,a) that draws the Koch curve of order n and base length a. Hint: recursion will help! 5

The following equilateral triangle KS 0 of side length a (drawn using the Python s Turtle) is the base step for constructing a beautiful closed curve known as the Koch snowflake. Problem 7 Find the perimeter p 0 and area A 0 of KS 0. 6

The figure KS 1 is the next step of the construction. Problem 8 Find the perimeter p 1 and area A 1 of KS 1. 7

The figure KS 2 below is the next step. Problem 9 Find the perimeter p 2 and area A 2 of KS 2. 8

Continuing the construction steps to infinity, we get the Koch snowflake. KS = lim n KS n Let p = lim n p n and A = lim n A n be the perimeter and the area of the Koch snowflake. Problem 10 Find p and A. 9

Problem 11 In the Turtle module, write a function kochs(n,a) that draws the Koch snowflake of order n and base length a. Hint: use the function kochc(n,a)! Question 1 What do you think is the dimension of the Koch curve and Koch snowflake? 10

Below, we shall construct another famous fractal, called the Sierpinski triangle (a.k.a. the Sierpinski carpet, Sierpinski sieve, and Sierpinski gasket) after its inventor, Waclaw Sierpinski. 1 Step 1 Let us take an equilateral triangle ST 0 of side length a. Problem 12 Find the area A 1 of ST 1. 1 1882 1969, a renown Polish mathematician. 11

Step 2 Let us take ST 1 and connect its midpoints. That splits the triangle into four smaller triangles of equal size. Let us cut out the one in the middle. Let us call ST 2 the resulting triangle with a triangular hole in the center. Problem 13 Find the area A 2 of ST 2. 12

Step 3 Let us take ST 2 and connect the midpoints of the three triangles it is made of. That splits each of the three triangles into four smaller triangles of equal size. Let us cut out the middle ones and call the resulting figure ST 3. Problem 14 Draw ST 3. Shade the triangles we need to cut out. Problem 15 Find the area A 3 of ST 3. 13

Step 4 Let us take ST 3 and connect the midpoints of the nine triangles it is made of. That splits each of the triangles into four smaller triangles of equal size. Let us cut out the middle ones and call the resulting figure ST 4. Problem 16 Find the area A 4 of ST 4. 14

Finishing the construction Imagine that we take Step 5, Step 6, and so on to infinity. The resulting figure is called the Sierpinski triangle, or ST. ST = lim n ST n 15

Problem 17 For what order n of the Sierpinski triangle ST n having the base length a = 10 would the area A n become smaller than 0.001? 0.000,001? 0.000,000,000,055? A tiny positive number ɛ? Definition 2 If for any positive number ɛ, no matter how tiny, there exists a number N, that depends on ɛ, such that for any n N all the elements of the sequence of positive numbers A n are less than ɛ (0 < A n < ɛ), then we say that the limit of the sequence A n as n tends to infinity equals zero. lim A n = 0 n 16

Problem 18 Generalize your solution of Problem 17 above to any base length a > 0 to prove that the area of any Sierpinski triangle is zero. Question 2 What do you think is the dimension of the Sierpinski triangle? How would you define the dimension of a geometric figure in general? Problem 19 In the Turtle module, write a function st(n,a) that draws the Sierpinski triangle of order n and base length a. 17

Problem 20 Use recursion and the Turtle module to draw a beautiful fractal of your own. Next time, we will have a beauty contest among our fractals! To win, you will have not only to show the class a breathtaking picture, but also to present the Python code that generates it and to explain how it does the job. If you are finished doing all the above, but there still remains some time... The following problem was communicated to me by one of our students, Arul Kolla. Problem 21 18