Symbolic computation 2: Linear recurrences

Size: px
Start display at page:

Download "Symbolic computation 2: Linear recurrences"

Transcription

1 Bachelor of Ecole Polytechique Computatioal Mathematics, year 2, semester Lecturer: Lucas Geri (sed mail) Symbolic computatio 2: Liear recurreces Table of cotets Warm-up Solvig liear recurreces with Sympy The fuctio rsolve Applicatios: the towers of Haoi Implemetatio of the towers of Haoi # execute this part to modify the css style from IPytho.core.display import HTML def css_stylig(): styles = ope("./style/custom2.css").read() retur HTML(styles) css_stylig() ## loadig pytho libraries # ecessary to display plots ilie: %matplotlib ilie # load the libraries import matplotlib.pyplot as plt # 2D plottig library import umpy as p # package for scietific computig from pylab import * from math import * import sympy as sympy from sympy import * # package for mathematics (pi, arcta, sqrt, # package for symbolic computatio Warm-up

2 Exercise. Solvig a recurrece (almost) by had Do it yourself. We cosider the sequece de ed by u 0. Use SymPy to d α, a, b, c such that for every 0 3 To solve a system of equatios with SymPy with ukows example =, { u = 2 u ( ). u = α 2 + a 2 + b + c. x, y, write for solve([x-y-2,3*y+x],[x,y]) 0 2. Prove with SymPy that your formula is true for every.

3 # Questio var('',iteger=true) var('alpha a b c') def u(,alpha,a,b,c): retur alpha*2** +a***2 +b* +c Solutios=solve( # Quatities which are to be zero: [u(0,alpha,a,b,c)-, # iitial coditio u(,alpha,a,b,c)-2*u(0,alpha,a,b,c)-3***2, u(2,alpha,a,b,c)-2*u(,alpha,a,b,c)-3*2**2, u(3,alpha,a,b,c)-2*u(2,alpha,a,b,c)-3*3**2, ], # Ukows: [alpha,a,b,c] ) prit(solutios) # Questio c_s=-8 alpha_s=9 b_s=-2 a_s=-3 prit('with these coefficiets the simplificatio of u()-2u(-)-3**2 gives prit('first values : '+str([u(i,alpha_s,a_s,b_s,c_s) for i i rage(0)])) # I order to check our results: def Recurrece(): if ==0: retur else: retur 2*Recurrece(-)+3***2 prit('we compare with : '+str([recurrece() for i rage(0)])) {c: -8, alpha: 9, b: -2, a: -3} With these coefficiets the simplificatio of u()-2u(-)-3**2 gives : 0 First values : [, 5, 22, 7, 90, 455, 08, 283, 4558, 9359] We compare with : [, 5, 22, 7, 90, 455, 08, 283, 4558, 935 9] Aswers.. With the rst values we obtai that if the formula is true the ecessarily 5 2. With the above script we proved that the formula is true: for every that u()-2u(-)-3**2=0. u = we have

4 Exercise 2. A double liear recurrece I Lab 2 we proved that if the a, b are itegers de ed by a + b 2 = ( + 2 ), a ( ) = 2 b ( ) ( ) Do it yourself.. Use SymPy to d a explicit formula for a. (I SymPy matrices are de ed by Matrix([[a,b],[c,d]]).) c, R 2. Use the formula obtaied at Questio to d real umbers such that + a c R. #Questio A=Matrix([[,2],[,]]) var('', iteger=true) Power=A** prit(power) a=latex(simplify(power[0,0]+power[0,])) prit(a) Matrix([[( + sqrt(2))**/2 + (-sqrt(2) + )**/2, sqrt(2)*( + sqrt(2))**/2 - sqrt(2)*(-sqrt(2) + )**/2], [sqrt(2)*( + sqrt (2))**/4 - sqrt(2)*(-sqrt(2) + )**/4, ( + sqrt(2))**/2 + (- sqrt(2) + )**/2]]) \frac{}{2} \left( + \sqrt{2}\right)^{} + \frac{\sqrt{2}}{2} \ left( + \sqrt{2}\right)^{} - \frac{\sqrt{2}}{2} \left(- \sqrt{ 2} + \right)^{} + \frac{}{2} \left(- \sqrt{2} + \right)^{} Aswers.. We export the result i LateX: a = ( + 2) 2 2 ( + 2) 2 2 ( 2 + ) 2 ( 2 + ) 2 + < ( + ( + 2 ). It follows that a = + + o() 2 ( + 2) 2 2 ( + 2) ( + 2) 2. As, we have that 2 ) is eglictible compared to

5 Solvig recurreces with SymPy: rsolve The fuctio rsolve The aim of this lab sessio is to use Sympy to obtai explicit formulas for some sequeces de ed by liear recurreces. More precisely, we will see how to obtai a explicit formula for u i two cases:. Liear recurrece of order oe: this is a sequece (u) 0 is de ed by u 0 = a, { u = α u + f (), ( ), where a, α are some give costats ad f is a arbitrary fuctio. 2. Liear recurrece of order two: this is a sequece (u ) 0 is de ed by u 0 = a, u = b, u = α u + β u 2 + f (), ( 2), where are some give costats ad is a arbitrary fuctio. a,, b, α, β f Some kow examples t i this settigs: u 0 = a, u = ru. Geometric sequeces:. 2. Arithmetic sequeces: u 0 = a, u = u + r. 3. The Fiboacci sequece:. F =, F 2 =, F = F + F 2 The followig script shows how to solve the liear recurrece of a geometric sequece, usig fuctio rsolve :

6 # First example: a geometric sequece u = Fuctio('u') # declares the ame of the sequece = symbols('',iteger=true) # declares the variable f = u()-3*u(-) # the expressio which is to be zero ExplicitFormula=rsolve(f,u(),{u(0):5}) prit('the formula for u() is '+str(explicitformula)+'') # Secod example with a o-liear term prit(' ') v = Fuctio('v') # declares the ame of the sequece = symbols('',iteger=true) # declares the variable f = 2*v()-v(-)-2** # the expressio which is to be zero ExplicitFormula=rsolve(f,v(),{v(0):}) prit('the formula for v() is '+str(explicitformula)+'') The formula for u() is 5*3** The formula for v() is 2*2**/3 + 2**(-)/3 Exercise 3. A rst example with rsolve Do it yourself.. Use SymPy to solve the recurrece of the Fiboacci sequece ad d a explicit formula for F. (To set up two iitial coditios you must write {u():,u(2):}.) 2. Use the formula obtaied at Questio to prove that F lim = φ =. F 2 u = Fuctio('u') # declares the ame of the sequece = symbols('',iteger=true) # declares the variable f = u()-u(-)-u(-2) # the expressio which is to be zero ExplicitFormula=simplify(rsolve(f,u(),{u():,u(2):})) Formula2=latex(simplify(ExplicitFormula)) prit('the formula for u() is '+str(formula2)+'') The formula for u() is \frac{2^{- }}{5} \sqrt{5} \left(\left( + \sqrt{5}\right)^{} - \left(- \sqrt{5} + \right)^{}\right)

7 Aswers.. We put the above aswer i LateX: 2 F 5 2. We obtai (by settig ): F 5 φ ψ 5 =, F 5 φ 5 ψ φ ψ (ψ/φ) 5 5 sice. = ( ). 5 ( + 5) ( 5 + ) ψ = ( 5)/2 =, (we divide everythig by φ.) (ψ/φ) 5 φ, ψ/φ < 5 Remark. The output of rsolve is a expressio which depeds o the symbolic variable. If we wat to evaluate this expressio (for istace for = 0) we must write: Value=ExplicitFormula.subs(,0) prit('0th Fiboacci umber = '+str(value)) prit('after simplificatio : '+str(simplify(value))) 0th Fiboacci umber = sqrt(5)*(-(-sqrt(5) + )**0 + ( + sqrt (5))**0)/520 After simplificatio : 55

8 Applicatio: the Towers of Haoi (This remaider of this sessio is devoted to the study of the Towers of Haoi, which you have studied i "Discrete Mathematics" (Bachelor ).) Exercise 4. The puzzle with three rods Let us recall this mathematical puzzle. We are give a stack of disks arraged from largest o the bottom to smallest o top placed o a rod a, together with two empty rods b, c. The Tower of Haoi puzzle asks for the miimum umber of moves required to move the etire stack, oe disk at a time, from rod a to aother ( b or c). A move is allowed oly if it moves a smaller disk o top of a larger oe. Here is a example which shows that the Tower of Haoi with solvable i moves: 7 = 3 disks is More geerally we use the followig recursive strategy to solve the Tower of Haoi with disks: Assume that you have a strategy for disks; Move the smallest disks from rod to rod with your strategy Move disk from to a b a c b c Move the smallest disks from rod to rod with your strategy As there is a obvious strategy for Haoi of Tower for ay. Let H be the sequece de ed by = Of course H, the above gure gives H 3 = 7. this recursive algorithm allows to solve the H = Number of moves for solvig Haoi with disks, with the recursive strateg =

9 Do it yourself. Fid a recursive formula for the sequece H : write H as a fuctio of H. Aswers. The three steps take respectively H, ad H moves. Therefore H = 2 H +. Do it yourself.. Write a recursive fuctio Haoi() which returs the value of H. 5 H 2. Write a small script which returs the rst values of. Ca you guess a formula? def Haoi(): # iput: positive iteger # output: umber of moves eeded to solve Haoi with disks if ==: retur else: retur 2*Haoi(-)+ # First few values of Haoi() prit('first values of H: '+str([haoi() for i rage(,5)])) First values of H: [, 3, 7, 5, 3, 63, 27, 255, 5, 023, 2 047, 4095, 89, 6383] Aswers. The guess is H = 2.

10 Do it yourself.. Use rsolve to d a explicit formula for the sequece H. 2. Compare with your ow fuctio Haoi() ad with your guess. The output should be like Sympy says the formula for H() is... Sympy says the first values for H() are [, 3, 7,...] Haoi() says the first values for H() are [, 3, 7,...] H = Fuctio('H') # declares the ame of the sequece = symbols('',iteger=true) # declares the variable f = H()-2*H(-)- # the expressio which is to be zero ExplicitFormula=rsolve(f,H(),{H():}) Formula=simplify(ExplicitFormula) prit('sympy says the formula for H() is '+str(formula)+'') FirstValuesofH= [Formula.subs(,i) for i i rage(,5)] prit('sympy says the first values for H() are '+str(firstvaluesofh)) prit('haoi() says the first values for H() are '+str([haoi() for i r Sympy says the formula for H() is 2** - Sympy says the first values for H() are [, 3, 7, 5, 3, 63, 27, 255, 5, 023, 2047, 4095, 89, 6383] Haoi() says the first values for H() are [, 3, 7, 5, 3, 63, 27, 255, 5, 023, 2047, 4095, 89, 6383] Exercise 5. The tower of Haoi with four rods We ow cosider the towers of Haoi with four rods a, b, c, d. I that case, formulas are more di cult to guess ad we will really eed rsolve to obtai exact formulas ad asymptotics.

11 The recursive algorithm for fours rods The recursive strategy is as follows. If or, use the algorithm of Exercise 4 to move the disk(s) to peg (it takes move for, moves for ). If = = 2 d 3 = 3 = 2, use the followig recursio: a, b, c, d 2 a b Use the fours rods to move the smallest disks from. a, c, d a d Use rods to move the two largest disks. a, b, c, d 2 b d Use the fours rods to move the smallest disks from. Let J be the sequece de ed by = Number of moves for solvig Haoi with disks ad 4 rods. J = As before, J, J 2 = 3. Do it yourself. Fid a recursive formula for the sequece J. Aswers. The three steps take respectively J 2, 3 ad J 2 moves. Therefore J = 2 J Do it yourself.. Write a recursive fuctio HaoiFour() which returs the value of J. 2. Write a small script which returs the te rst values of J. Ca you guess a formula? (You ca ask (

12 def HaoiFour(): if ==: retur elif ==2: retur 3 else: retur 2*HaoiFour(-2)+3 # First few values Haoi() prit('first values of J: '+str([haoifour() for i rage(,5)])) First values of J: [, 3, 5, 9, 3, 2, 29, 45, 6, 93, 25, 8 9, 253, 38] Aswers. There is o obvious guess! Do it yourself.. Use rsolve to d a explicit formula for the sequece J. 2. Compare with your ow fuctio HaoiFour(). J = Fuctio('J') # declares the ame of the sequece = symbols('',iteger=true) # declares the variable f = J()-2*J(-2)-3 # the expressio which is to be zero ExplicitFormula=rsolve(f,J(),{J():,J(2):3}) Formula=simplify(ExplicitFormula) prit('sympy says the formula for J() is '+str(formula)+'') FirstValuesofJ= [simplify(formula.subs(,i)) for i i rage(,5)] prit('sympy says the first values for J() are '+str(firstvaluesofj)) prit('haoifour() says the first values for J() are '+str([haoifour() for Sympy says the formula for J() is 2**(/2 - )*(2*sqrt(2) + 3) + (-sqrt(2))***(-sqrt(2) + 3/2) - 3 Sympy says the first values for J() are [, 3, 5, 9, 3, 2, 29, 45, 6, 93, 25, 89, 253, 38] HaoiFour() says the first values for J() are [, 3, 5, 9, 3, 2, 29, 45, 6, 93, 25, 89, 253, 38] Aswers. The explicit formula for J is 2 ( ) + ( 2) ( ) 3. 2

13 Do it yourself. (Theory). Accordig to the formula foud by SymPy, what happes whe J for the sequece? 2 J 0 2. Usig the formula foud by SymPy, prove that. H + Aswers.. We rewrite the above formula as J 2 2 J Therefore oscillates betwee ad. 2 = ( + 3/2 + ( ) ( 2 + 3/2)) We have that J 4 for large eough. Therefore J H 2 2

14 Exercise 6. The recursive algorithm for fours rods: a better variat? We de e a variat of the previous strategy: If or or, use the previous algorithm with rods to move the disk(s) to peg (it takes move for, moves for, moves for If = = 2 = 3 4 = 3 ). 3 d = 3 = 2 5, use the followig recursio: a, b, c, d 3 a b Use the fours rods to move the smallest disks from. a, c, d a d Use rods to move the three largest disks. a, b, c, d 3 b d Use the fours rods to move the smallest disks from. Let K be the sequece de ed by K = Number of moves for solvig Haoi with disks ad 4 rods with that strate = We have, K, K 2 = 3, K 3 = 5. Do it yourself.. Fid a recursive formula for the sequece K. (Do ot try to solve the recurrece with SymPy, it does ot seem to work.) 2. Write a fuctio HaoiFourBis() which returs the value of K. 3. Plot o the same gure the rst values of K ad J. Which algorithm looks faster? Aswers. The three steps take respectively, ad moves. Therefore, for. K 3 7 K 3 4 = K K 3

15 def HaoiFourBis(): if ==: retur elif ==2: retur 3 elif ==3: retur 5 else: retur 2*HaoiFourBis(-3)+7 FirstJ=[HaoiFour() for i rage(,25)] FirstK=[HaoiFourBis() for i rage(,25)] prit('the first values for K() are '+str(firstk)+'') prit('the first values for J() are '+str(firstj)+'') plt.plot(firstk) plt.plot(firstj) plt.show() The first values for K() are [, 3, 5, 9, 3, 7, 25, 33, 4, 5 7, 73, 89, 2, 53, 85, 249, 33, 377, 505, 633, 76, 07, 2 73, 529] The first values for J() are [, 3, 5, 9, 3, 2, 29, 45, 6, 9 3, 25, 89, 253, 38, 509, 765, 02, 533, 2045, 3069, 4093, 6 4, 889, 2285] Do it yourself. We admit that there exist reals + K α R c > 0, α R, R > c. ( ) such that. Fid a sequece which coverges to (ad prove the covergece, assumig that ( ) holds). 2. Write a script which returs a umerical approximatio of R. (As the covergece might be very slow, you should write a o recursive fuctio to compute large values of K.) R

16 Aswers.. If K c the = R. Ideed, K / K lim K / = exp( log( )) = exp( log(c α R + o(c α R ))) = exp( log(c α R ( + o())) = exp( (log(c α R ) + log( + o()))) = exp( (log(c) + α log() + log(r) + o())), (sice log( + o( R. K + / K (Oe could also cosider the sequece.) ( ) Remark: I fact oe ca prove that does ot hold but we have that K = c α R where is a bouded (ad oscillatig) sequece, ad 2 /3 c R = = # Let us compute i a o-recursive way the values of K: HaoiFourBis_orecursive=[,3,5] N=200 for i i rage(4,n): m=haoifourbis_orecursive[-3] HaoiFourBis_orecursive.apped(2*m+7) FirstK_ormalized=[(HaoiFourBis_orecursive[])**(/(+0.0)) for i rage prit('st approximatio of R = limit K_^(/): '+str(firstk_ormalized[-]) prit('2d approximatio of R = limit (K_{+}/K_): '+str(haoifourbis_orec plt.plot(firstk_ormalized) plt.show() st approximatio of R = limit K_^(/): d approximatio of R = limit (K_{+}/K_):.25

17 For fu (ot graded) Exercise 7. Implemetatio for three rods Do it yourself. Write a fuctio SolvigHaoi(,x,y) which prits the x y sequece of displacemets eeded to move disks from rod to rod. For example: SolvigHaoi(3,'a','c') a -> c a -> b c -> b a -> c b -> a b -> c a -> c (Hit: You may begi with a fuctio ThirdRod(x,y) which returs the x, y {a, b, c} complemet rod of i.)

18 def ThirdRod(x,y): # iput: strigs x,y i the set {'a','b','c'} # output: the complemet i {'a','b','c'} if set([x,y])==set(['a','b']): retur 'c' elif set([x,y])==set(['a','c']): retur 'b' else: retur 'a' def SolvigHaoi(,x,y): # iput: iteger (umber of disks) strigs x,y i the set {'a','b','c'} # output: sequece of moves if ==: prit(str(x)+' -> '+str(y)) else: SolvigHaoi(-,x,ThirdRod(x,y)) prit(str(x)+' -> '+str(y)) SolvigHaoi(-,ThirdRod(x,y),y) SolvigHaoi(3,'a','c') a -> c a -> b c -> b a -> c b -> a b -> c a -> c

Arithmetic 1: Prime numbers and factorization (with Solutions)

Arithmetic 1: Prime numbers and factorization (with Solutions) Bachelor of Ecole Polytechique Computatioal Mathematics, year 2, semester 1 Arithmetic 1: Prime umbers ad factorizatio (with Solutios) P. Tchebychev (Russia, 1821-1894). Amog may thigs, he was the rst

More information

Recurrence Relations

Recurrence Relations Recurrece Relatios Aalysis of recursive algorithms, such as: it factorial (it ) { if (==0) retur ; else retur ( * factorial(-)); } Let t be the umber of multiplicatios eeded to calculate factorial(). The

More information

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis Recursive Algorithms Recurreces Computer Sciece & Egieerig 35: Discrete Mathematics Christopher M Bourke cbourke@cseuledu A recursive algorithm is oe i which objects are defied i terms of other objects

More information

4.3 Growth Rates of Solutions to Recurrences

4.3 Growth Rates of Solutions to Recurrences 4.3. GROWTH RATES OF SOLUTIONS TO RECURRENCES 81 4.3 Growth Rates of Solutios to Recurreces 4.3.1 Divide ad Coquer Algorithms Oe of the most basic ad powerful algorithmic techiques is divide ad coquer.

More information

Sums, products and sequences

Sums, products and sequences Sums, products ad sequeces How to write log sums, e.g., 1+2+ (-1)+ cocisely? i=1 Sum otatio ( sum from 1 to ): i 3 = 1 + 2 + + If =3, i=1 i = 1+2+3=6. The ame ii does ot matter. Could use aother letter

More information

Infinite Sequences and Series

Infinite Sequences and Series Chapter 6 Ifiite Sequeces ad Series 6.1 Ifiite Sequeces 6.1.1 Elemetary Cocepts Simply speakig, a sequece is a ordered list of umbers writte: {a 1, a 2, a 3,...a, a +1,...} where the elemets a i represet

More information

2.4 - Sequences and Series

2.4 - Sequences and Series 2.4 - Sequeces ad Series Sequeces A sequece is a ordered list of elemets. Defiitio 1 A sequece is a fuctio from a subset of the set of itegers (usually either the set 80, 1, 2, 3,... < or the set 81, 2,

More information

INFINITE SEQUENCES AND SERIES

INFINITE SEQUENCES AND SERIES 11 INFINITE SEQUENCES AND SERIES INFINITE SEQUENCES AND SERIES 11.4 The Compariso Tests I this sectio, we will lear: How to fid the value of a series by comparig it with a kow series. COMPARISON TESTS

More information

6.3 Testing Series With Positive Terms

6.3 Testing Series With Positive Terms 6.3. TESTING SERIES WITH POSITIVE TERMS 307 6.3 Testig Series With Positive Terms 6.3. Review of what is kow up to ow I theory, testig a series a i for covergece amouts to fidig the i= sequece of partial

More information

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 + 62. Power series Defiitio 16. (Power series) Give a sequece {c }, the series c x = c 0 + c 1 x + c 2 x 2 + c 3 x 3 + is called a power series i the variable x. The umbers c are called the coefficiets of

More information

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture)

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture) CSI 101 Discrete Structures Witer 01 Prof. Lucia Moura Uiversity of Ottawa Homework Assigmet #4 (100 poits, weight %) Due: Thursday, April, at 1:00pm (i lecture) Program verificatio, Recurrece Relatios

More information

Symbolic computing 1: Proofs with SymPy

Symbolic computing 1: Proofs with SymPy Bachelor of Ecole Polytechnique Computational Mathematics, year 2, semester Lecturer: Lucas Gerin (send mail) (mailto:lucas.gerin@polytechnique.edu) Symbolic computing : Proofs with SymPy π 3072 3 + 2

More information

Sequences and Series of Functions

Sequences and Series of Functions Chapter 6 Sequeces ad Series of Fuctios 6.1. Covergece of a Sequece of Fuctios Poitwise Covergece. Defiitio 6.1. Let, for each N, fuctio f : A R be defied. If, for each x A, the sequece (f (x)) coverges

More information

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations ECE-S352 Itroductio to Digital Sigal Processig Lecture 3A Direct Solutio of Differece Equatios Discrete Time Systems Described by Differece Equatios Uit impulse (sample) respose h() of a DT system allows

More information

It is often useful to approximate complicated functions using simpler ones. We consider the task of approximating a function by a polynomial.

It is often useful to approximate complicated functions using simpler ones. We consider the task of approximating a function by a polynomial. Taylor Polyomials ad Taylor Series It is ofte useful to approximate complicated fuctios usig simpler oes We cosider the task of approximatig a fuctio by a polyomial If f is at least -times differetiable

More information

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018 CSE 353 Discrete Computatioal Structures Sprig 08 Sequeces, Mathematical Iductio, ad Recursio (Chapter 5, Epp) Note: some course slides adopted from publisher-provided material Overview May mathematical

More information

Bertrand s Postulate

Bertrand s Postulate Bertrad s Postulate Lola Thompso Ross Program July 3, 2009 Lola Thompso (Ross Program Bertrad s Postulate July 3, 2009 1 / 33 Bertrad s Postulate I ve said it oce ad I ll say it agai: There s always a

More information

Series: Infinite Sums

Series: Infinite Sums Series: Ifiite Sums Series are a way to mae sese of certai types of ifiitely log sums. We will eed to be able to do this if we are to attai our goal of approximatig trascedetal fuctios by usig ifiite degree

More information

MIDTERM 3 CALCULUS 2. Monday, December 3, :15 PM to 6:45 PM. Name PRACTICE EXAM SOLUTIONS

MIDTERM 3 CALCULUS 2. Monday, December 3, :15 PM to 6:45 PM. Name PRACTICE EXAM SOLUTIONS MIDTERM 3 CALCULUS MATH 300 FALL 08 Moday, December 3, 08 5:5 PM to 6:45 PM Name PRACTICE EXAM S Please aswer all of the questios, ad show your work. You must explai your aswers to get credit. You will

More information

is also known as the general term of the sequence

is also known as the general term of the sequence Lesso : Sequeces ad Series Outlie Objectives: I ca determie whether a sequece has a patter. I ca determie whether a sequece ca be geeralized to fid a formula for the geeral term i the sequece. I ca determie

More information

Math 113 Exam 3 Practice

Math 113 Exam 3 Practice Math Exam Practice Exam will cover.-.9. This sheet has three sectios. The first sectio will remid you about techiques ad formulas that you should kow. The secod gives a umber of practice questios for you

More information

CHAPTER 10 INFINITE SEQUENCES AND SERIES

CHAPTER 10 INFINITE SEQUENCES AND SERIES CHAPTER 10 INFINITE SEQUENCES AND SERIES 10.1 Sequeces 10.2 Ifiite Series 10.3 The Itegral Tests 10.4 Compariso Tests 10.5 The Ratio ad Root Tests 10.6 Alteratig Series: Absolute ad Coditioal Covergece

More information

Notes on iteration and Newton s method. Iteration

Notes on iteration and Newton s method. Iteration Notes o iteratio ad Newto s method Iteratio Iteratio meas doig somethig over ad over. I our cotet, a iteratio is a sequece of umbers, vectors, fuctios, etc. geerated by a iteratio rule of the type 1 f

More information

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece 1, 1, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet

More information

CHAPTER 1 SEQUENCES AND INFINITE SERIES

CHAPTER 1 SEQUENCES AND INFINITE SERIES CHAPTER SEQUENCES AND INFINITE SERIES SEQUENCES AND INFINITE SERIES (0 meetigs) Sequeces ad limit of a sequece Mootoic ad bouded sequece Ifiite series of costat terms Ifiite series of positive terms Alteratig

More information

Solutions to Final Exam Review Problems

Solutions to Final Exam Review Problems . Let f(x) 4+x. Solutios to Fial Exam Review Problems Math 5C, Witer 2007 (a) Fid the Maclauri series for f(x), ad compute its radius of covergece. Solutio. f(x) 4( ( x/4)) ( x/4) ( ) 4 4 + x. Sice the

More information

COS 341 Discrete Mathematics. Exponential Generating Functions and Recurrence Relations

COS 341 Discrete Mathematics. Exponential Generating Functions and Recurrence Relations COS 341 Discrete Mathematics Epoetial Geeratig Fuctios ad Recurrece Relatios 1 Tetbook? 1 studets said they eeded the tetbook, but oly oe studet bought the tet from Triagle. If you do t have the book,

More information

Test One (Answer Key)

Test One (Answer Key) CS395/Ma395 (Sprig 2005) Test Oe Name: Page 1 Test Oe (Aswer Key) CS395/Ma395: Aalysis of Algorithms This is a closed book, closed otes, 70 miute examiatio. It is worth 100 poits. There are twelve (12)

More information

Worksheet on Generating Functions

Worksheet on Generating Functions Worksheet o Geeratig Fuctios October 26, 205 This worksheet is adapted from otes/exercises by Nat Thiem. Derivatives of Geeratig Fuctios. If the sequece a 0, a, a 2,... has ordiary geeratig fuctio A(x,

More information

Math 475, Problem Set #12: Answers

Math 475, Problem Set #12: Answers Math 475, Problem Set #12: Aswers A. Chapter 8, problem 12, parts (b) ad (d). (b) S # (, 2) = 2 2, sice, from amog the 2 ways of puttig elemets ito 2 distiguishable boxes, exactly 2 of them result i oe

More information

f(x) dx as we do. 2x dx x also diverges. Solution: We compute 2x dx lim

f(x) dx as we do. 2x dx x also diverges. Solution: We compute 2x dx lim Math 3, Sectio 2. (25 poits) Why we defie f(x) dx as we do. (a) Show that the improper itegral diverges. Hece the improper itegral x 2 + x 2 + b also diverges. Solutio: We compute x 2 + = lim b x 2 + =

More information

Lecture 9: Hierarchy Theorems

Lecture 9: Hierarchy Theorems IAS/PCMI Summer Sessio 2000 Clay Mathematics Udergraduate Program Basic Course o Computatioal Complexity Lecture 9: Hierarchy Theorems David Mix Barrigto ad Alexis Maciel July 27, 2000 Most of this lecture

More information

sin(n) + 2 cos(2n) n 3/2 3 sin(n) 2cos(2n) n 3/2 a n =

sin(n) + 2 cos(2n) n 3/2 3 sin(n) 2cos(2n) n 3/2 a n = 60. Ratio ad root tests 60.1. Absolutely coverget series. Defiitio 13. (Absolute covergece) A series a is called absolutely coverget if the series of absolute values a is coverget. The absolute covergece

More information

INFINITE SEQUENCES AND SERIES

INFINITE SEQUENCES AND SERIES INFINITE SEQUENCES AND SERIES INFINITE SEQUENCES AND SERIES I geeral, it is difficult to fid the exact sum of a series. We were able to accomplish this for geometric series ad the series /[(+)]. This is

More information

Chapter 4. Fourier Series

Chapter 4. Fourier Series Chapter 4. Fourier Series At this poit we are ready to ow cosider the caoical equatios. Cosider, for eample the heat equatio u t = u, < (4.) subject to u(, ) = si, u(, t) = u(, t) =. (4.) Here,

More information

Chapter 10: Power Series

Chapter 10: Power Series Chapter : Power Series 57 Chapter Overview: Power Series The reaso series are part of a Calculus course is that there are fuctios which caot be itegrated. All power series, though, ca be itegrated because

More information

Section 11.8: Power Series

Section 11.8: Power Series Sectio 11.8: Power Series 1. Power Series I this sectio, we cosider geeralizig the cocept of a series. Recall that a series is a ifiite sum of umbers a. We ca talk about whether or ot it coverges ad i

More information

Quantum Computing Lecture 7. Quantum Factoring

Quantum Computing Lecture 7. Quantum Factoring Quatum Computig Lecture 7 Quatum Factorig Maris Ozols Quatum factorig A polyomial time quatum algorithm for factorig umbers was published by Peter Shor i 1994. Polyomial time meas that the umber of gates

More information

Find a formula for the exponential function whose graph is given , 1 2,16 1, 6

Find a formula for the exponential function whose graph is given , 1 2,16 1, 6 Math 4 Activity (Due by EOC Apr. ) Graph the followig epoetial fuctios by modifyig the graph of f. Fid the rage of each fuctio.. g. g. g 4. g. g 6. g Fid a formula for the epoetial fuctio whose graph is

More information

CHAPTER 5. Theory and Solution Using Matrix Techniques

CHAPTER 5. Theory and Solution Using Matrix Techniques A SERIES OF CLASS NOTES FOR 2005-2006 TO INTRODUCE LINEAR AND NONLINEAR PROBLEMS TO ENGINEERS, SCIENTISTS, AND APPLIED MATHEMATICIANS DE CLASS NOTES 3 A COLLECTION OF HANDOUTS ON SYSTEMS OF ORDINARY DIFFERENTIAL

More information

Assignment 5: Solutions

Assignment 5: Solutions McGill Uiversity Departmet of Mathematics ad Statistics MATH 54 Aalysis, Fall 05 Assigmet 5: Solutios. Let y be a ubouded sequece of positive umbers satisfyig y + > y for all N. Let x be aother sequece

More information

Math 312 Lecture Notes One Dimensional Maps

Math 312 Lecture Notes One Dimensional Maps Math 312 Lecture Notes Oe Dimesioal Maps Warre Weckesser Departmet of Mathematics Colgate Uiversity 21-23 February 25 A Example We begi with the simplest model of populatio growth. Suppose, for example,

More information

Northwest High School s Algebra 2/Honors Algebra 2 Summer Review Packet

Northwest High School s Algebra 2/Honors Algebra 2 Summer Review Packet Northwest High School s Algebra /Hoors Algebra Summer Review Packet This packet is optioal! It will NOT be collected for a grade et school year! This packet has bee desiged to help you review various mathematical

More information

Carleton College, Winter 2017 Math 121, Practice Final Prof. Jones. Note: the exam will have a section of true-false questions, like the one below.

Carleton College, Winter 2017 Math 121, Practice Final Prof. Jones. Note: the exam will have a section of true-false questions, like the one below. Carleto College, Witer 207 Math 2, Practice Fial Prof. Joes Note: the exam will have a sectio of true-false questios, like the oe below.. True or False. Briefly explai your aswer. A icorrectly justified

More information

4x 2. (n+1) x 3 n+1. = lim. 4x 2 n+1 n3 n. n 4x 2 = lim = 3

4x 2. (n+1) x 3 n+1. = lim. 4x 2 n+1 n3 n. n 4x 2 = lim = 3 Exam Problems (x. Give the series (, fid the values of x for which this power series coverges. Also =0 state clearly what the radius of covergece is. We start by settig up the Ratio Test: x ( x x ( x x

More information

Applications in Linear Algebra and Uses of Technology

Applications in Linear Algebra and Uses of Technology 1 TI-89: Let A 1 4 5 6 7 8 10 Applicatios i Liear Algebra ad Uses of Techology,adB 4 1 1 4 type i: [1,,;4,5,6;7,8,10] press: STO type i: A type i: [4,-1;-1,4] press: STO (1) Row Echelo Form: MATH/matrix

More information

A recurrence equation is just a recursive function definition. It defines a function at one input in terms of its value on smaller inputs.

A recurrence equation is just a recursive function definition. It defines a function at one input in terms of its value on smaller inputs. CS23 Algorithms Hadout #6 Prof Ly Turbak September 8, 200 Wellesley College RECURRENCES This hadout summarizes highlights of CLRS Chapter 4 ad Appedix A (CLR Chapters 3 & 4) Two-Step Strategy for Aalyzig

More information

Part I: Covers Sequence through Series Comparison Tests

Part I: Covers Sequence through Series Comparison Tests Part I: Covers Sequece through Series Compariso Tests. Give a example of each of the followig: (a) A geometric sequece: (b) A alteratig sequece: (c) A sequece that is bouded, but ot coverget: (d) A sequece

More information

CS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2

CS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2 Geeral remarks Week 2 1 Divide ad First we cosider a importat tool for the aalysis of algorithms: Big-Oh. The we itroduce a importat algorithmic paradigm:. We coclude by presetig ad aalysig two examples.

More information

CS / MCS 401 Homework 3 grader solutions

CS / MCS 401 Homework 3 grader solutions CS / MCS 401 Homework 3 grader solutios assigmet due July 6, 016 writte by Jāis Lazovskis maximum poits: 33 Some questios from CLRS. Questios marked with a asterisk were ot graded. 1 Use the defiitio of

More information

E. Incorrect! Plug n = 1, 2, 3, & 4 into the general term formula. n =, then the first four terms are found by

E. Incorrect! Plug n = 1, 2, 3, & 4 into the general term formula. n =, then the first four terms are found by Calculus II - Problem Solvig Drill 8: Sequeces, Series, ad Covergece Questio No. of 0. Fid the first four terms of the sequece whose geeral term is give by a ( ) : Questio #0 (A) (B) (C) (D) (E) 8,,, 4

More information

10.1 Sequences. n term. We will deal a. a n or a n n. ( 1) n ( 1) n 1 2 ( 1) a =, 0 0,,,,, ln n. n an 2. n term.

10.1 Sequences. n term. We will deal a. a n or a n n. ( 1) n ( 1) n 1 2 ( 1) a =, 0 0,,,,, ln n. n an 2. n term. 0. Sequeces A sequece is a list of umbers writte i a defiite order: a, a,, a, a is called the first term, a is the secod term, ad i geeral eclusively with ifiite sequeces ad so each term Notatio: the sequece

More information

MA131 - Analysis 1. Workbook 3 Sequences II

MA131 - Analysis 1. Workbook 3 Sequences II MA3 - Aalysis Workbook 3 Sequeces II Autum 2004 Cotets 2.8 Coverget Sequeces........................ 2.9 Algebra of Limits......................... 2 2.0 Further Useful Results........................

More information

Please do NOT write in this box. Multiple Choice. Total

Please do NOT write in this box. Multiple Choice. Total Istructor: Math 0560, Worksheet Alteratig Series Jauary, 3000 For realistic exam practice solve these problems without lookig at your book ad without usig a calculator. Multiple choice questios should

More information

Math 155 (Lecture 3)

Math 155 (Lecture 3) Math 55 (Lecture 3) September 8, I this lecture, we ll cosider the aswer to oe of the most basic coutig problems i combiatorics Questio How may ways are there to choose a -elemet subset of the set {,,,

More information

Real Variables II Homework Set #5

Real Variables II Homework Set #5 Real Variables II Homework Set #5 Name: Due Friday /0 by 4pm (at GOS-4) Istructios: () Attach this page to the frot of your homework assigmet you tur i (or write each problem before your solutio). () Please

More information

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece,, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet as

More information

5 Sequences and Series

5 Sequences and Series Bria E. Veitch 5 Sequeces ad Series 5. Sequeces A sequece is a list of umbers i a defiite order. a is the first term a 2 is the secod term a is the -th term The sequece {a, a 2, a 3,..., a,..., } is a

More information

THE INTEGRAL TEST AND ESTIMATES OF SUMS

THE INTEGRAL TEST AND ESTIMATES OF SUMS THE INTEGRAL TEST AND ESTIMATES OF SUMS. Itroductio Determiig the exact sum of a series is i geeral ot a easy task. I the case of the geometric series ad the telescoig series it was ossible to fid a simle

More information

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled 1 Lecture : Area Area ad distace traveled Approximatig area by rectagles Summatio The area uder a parabola 1.1 Area ad distace Suppose we have the followig iformatio about the velocity of a particle, how

More information

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs CSE 1400 Applied Discrete Mathematics Number Theory ad Proofs Departmet of Computer Scieces College of Egieerig Florida Tech Sprig 01 Problems for Number Theory Backgroud Number theory is the brach of

More information

JANE PROFESSOR WW Prob Lib1 Summer 2000

JANE PROFESSOR WW Prob Lib1 Summer 2000 JANE PROFESSOR WW Prob Lib Summer 000 Sample WeBWorK problems. WeBWorK assigmet Series6CompTests due /6/06 at :00 AM..( pt) Test each of the followig series for covergece by either the Compariso Test or

More information

ENGI Series Page 6-01

ENGI Series Page 6-01 ENGI 3425 6 Series Page 6-01 6. Series Cotets: 6.01 Sequeces; geeral term, limits, covergece 6.02 Series; summatio otatio, covergece, divergece test 6.03 Stadard Series; telescopig series, geometric series,

More information

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22 CS 70 Discrete Mathematics for CS Sprig 2007 Luca Trevisa Lecture 22 Aother Importat Distributio The Geometric Distributio Questio: A biased coi with Heads probability p is tossed repeatedly util the first

More information

Additional Notes on Power Series

Additional Notes on Power Series Additioal Notes o Power Series Mauela Girotti MATH 37-0 Advaced Calculus of oe variable Cotets Quick recall 2 Abel s Theorem 2 3 Differetiatio ad Itegratio of Power series 4 Quick recall We recall here

More information

Taylor Series (BC Only)

Taylor Series (BC Only) Studet Study Sessio Taylor Series (BC Oly) Taylor series provide a way to fid a polyomial look-alike to a o-polyomial fuctio. This is doe by a specific formula show below (which should be memorized): Taylor

More information

Kinetics of Complex Reactions

Kinetics of Complex Reactions Kietics of Complex Reactios by Flick Colema Departmet of Chemistry Wellesley College Wellesley MA 28 wcolema@wellesley.edu Copyright Flick Colema 996. All rights reserved. You are welcome to use this documet

More information

Optimally Sparse SVMs

Optimally Sparse SVMs A. Proof of Lemma 3. We here prove a lower boud o the umber of support vectors to achieve geeralizatio bouds of the form which we cosider. Importatly, this result holds ot oly for liear classifiers, but

More information

MA131 - Analysis 1. Workbook 2 Sequences I

MA131 - Analysis 1. Workbook 2 Sequences I MA3 - Aalysis Workbook 2 Sequeces I Autum 203 Cotets 2 Sequeces I 2. Itroductio.............................. 2.2 Icreasig ad Decreasig Sequeces................ 2 2.3 Bouded Sequeces..........................

More information

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3 MATH 337 Sequeces Dr. Neal, WKU Let X be a metric space with distace fuctio d. We shall defie the geeral cocept of sequece ad limit i a metric space, the apply the results i particular to some special

More information

Disjoint set (Union-Find)

Disjoint set (Union-Find) CS124 Lecture 7 Fall 2018 Disjoit set (Uio-Fid) For Kruskal s algorithm for the miimum spaig tree problem, we foud that we eeded a data structure for maitaiig a collectio of disjoit sets. That is, we eed

More information

An alternating series is a series where the signs alternate. Generally (but not always) there is a factor of the form ( 1) n + 1

An alternating series is a series where the signs alternate. Generally (but not always) there is a factor of the form ( 1) n + 1 Calculus II - Problem Solvig Drill 20: Alteratig Series, Ratio ad Root Tests Questio No. of 0 Istructios: () Read the problem ad aswer choices carefully (2) Work the problems o paper as eeded (3) Pick

More information

Analysis of Algorithms. Introduction. Contents

Analysis of Algorithms. Introduction. Contents Itroductio The focus of this module is mathematical aspects of algorithms. Our mai focus is aalysis of algorithms, which meas evaluatig efficiecy of algorithms by aalytical ad mathematical methods. We

More information

Sigma notation. 2.1 Introduction

Sigma notation. 2.1 Introduction Sigma otatio. Itroductio We use sigma otatio to idicate the summatio process whe we have several (or ifiitely may) terms to add up. You may have see sigma otatio i earlier courses. It is used to idicate

More information

SOLUTIONS TO EXAM 3. Solution: Note that this defines two convergent geometric series with respective radii r 1 = 2/5 < 1 and r 2 = 1/5 < 1.

SOLUTIONS TO EXAM 3. Solution: Note that this defines two convergent geometric series with respective radii r 1 = 2/5 < 1 and r 2 = 1/5 < 1. SOLUTIONS TO EXAM 3 Problem Fid the sum of the followig series 2 + ( ) 5 5 2 5 3 25 2 2 This series diverges Solutio: Note that this defies two coverget geometric series with respective radii r 2/5 < ad

More information

Created by T. Madas SERIES. Created by T. Madas

Created by T. Madas SERIES. Created by T. Madas SERIES SUMMATIONS BY STANDARD RESULTS Questio (**) Use stadard results o summatios to fid the value of 48 ( r )( 3r ). 36 FP-B, 66638 Questio (**+) Fid, i fully simplified factorized form, a expressio

More information

Zeros of Polynomials

Zeros of Polynomials Math 160 www.timetodare.com 4.5 4.6 Zeros of Polyomials I these sectios we will study polyomials algebraically. Most of our work will be cocered with fidig the solutios of polyomial equatios of ay degree

More information

OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES

OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES Peter M. Maurer Why Hashig is θ(). As i biary search, hashig assumes that keys are stored i a array which is idexed by a iteger. However, hashig attempts to bypass

More information

Sequences, Series, and All That

Sequences, Series, and All That Chapter Te Sequeces, Series, ad All That. Itroductio Suppose we wat to compute a approximatio of the umber e by usig the Taylor polyomial p for f ( x) = e x at a =. This polyomial is easily see to be 3

More information

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES Read Sectio 1.5 (pages 5 9) Overview I Sectio 1.5 we lear to work with summatio otatio ad formulas. We will also itroduce a brief overview of sequeces,

More information

Read carefully the instructions on the answer book and make sure that the particulars required are entered on each answer book.

Read carefully the instructions on the answer book and make sure that the particulars required are entered on each answer book. THE UNIVERSITY OF WARWICK FIRST YEAR EXAMINATION: Jauary 2009 Aalysis I Time Allowed:.5 hours Read carefully the istructios o the aswer book ad make sure that the particulars required are etered o each

More information

This Lecture. Divide and Conquer. Merge Sort: Algorithm. Merge Sort Algorithm. MergeSort (Example) - 1. MergeSort (Example) - 2

This Lecture. Divide and Conquer. Merge Sort: Algorithm. Merge Sort Algorithm. MergeSort (Example) - 1. MergeSort (Example) - 2 This Lecture Divide-ad-coquer techique for algorithm desig. Example the merge sort. Writig ad solvig recurreces Divide ad Coquer Divide-ad-coquer method for algorithm desig: Divide: If the iput size is

More information

Average-Case Analysis of QuickSort

Average-Case Analysis of QuickSort Average-Case Aalysis of QuickSort Comp 363 Fall Semester 003 October 3, 003 The purpose of this documet is to itroduce the idea of usig recurrece relatios to do average-case aalysis. The average-case ruig

More information

Mathematics review for CSCI 303 Spring Department of Computer Science College of William & Mary Robert Michael Lewis

Mathematics review for CSCI 303 Spring Department of Computer Science College of William & Mary Robert Michael Lewis Mathematics review for CSCI 303 Sprig 019 Departmet of Computer Sciece College of William & Mary Robert Michael Lewis Copyright 018 019 Robert Michael Lewis Versio geerated: 13 : 00 Jauary 17, 019 Cotets

More information

( a) ( ) 1 ( ) 2 ( ) ( ) 3 3 ( ) =!

( a) ( ) 1 ( ) 2 ( ) ( ) 3 3 ( ) =! .8,.9: Taylor ad Maclauri Series.8. Although we were able to fid power series represetatios for a limited group of fuctios i the previous sectio, it is ot immediately obvious whether ay give fuctio has

More information

TR/46 OCTOBER THE ZEROS OF PARTIAL SUMS OF A MACLAURIN EXPANSION A. TALBOT

TR/46 OCTOBER THE ZEROS OF PARTIAL SUMS OF A MACLAURIN EXPANSION A. TALBOT TR/46 OCTOBER 974 THE ZEROS OF PARTIAL SUMS OF A MACLAURIN EXPANSION by A. TALBOT .. Itroductio. A problem i approximatio theory o which I have recetly worked [] required for its solutio a proof that the

More information

Chapter 6 Infinite Series

Chapter 6 Infinite Series Chapter 6 Ifiite Series I the previous chapter we cosidered itegrals which were improper i the sese that the iterval of itegratio was ubouded. I this chapter we are goig to discuss a topic which is somewhat

More information

Solution of Linear Constant-Coefficient Difference Equations

Solution of Linear Constant-Coefficient Difference Equations ECE 38-9 Solutio of Liear Costat-Coefficiet Differece Equatios Z. Aliyazicioglu Electrical ad Computer Egieerig Departmet Cal Poly Pomoa Solutio of Liear Costat-Coefficiet Differece Equatios Example: Determie

More information

1 Generating functions for balls in boxes

1 Generating functions for balls in boxes Math 566 Fall 05 Some otes o geeratig fuctios Give a sequece a 0, a, a,..., a,..., a geeratig fuctio some way of represetig the sequece as a fuctio. There are may ways to do this, with the most commo ways

More information

Math 210A Homework 1

Math 210A Homework 1 Math 0A Homework Edward Burkard Exercise. a) State the defiitio of a aalytic fuctio. b) What are the relatioships betwee aalytic fuctios ad the Cauchy-Riema equatios? Solutio. a) A fuctio f : G C is called

More information

Regent College Maths Department. Further Pure 1. Proof by Induction

Regent College Maths Department. Further Pure 1. Proof by Induction Reget College Maths Departmet Further Pure Proof by Iductio Further Pure Proof by Mathematical Iductio Page Further Pure Proof by iductio The Edexcel syllabus says that cadidates should be able to: (a)

More information

Chapter 2 The Monte Carlo Method

Chapter 2 The Monte Carlo Method Chapter 2 The Mote Carlo Method The Mote Carlo Method stads for a broad class of computatioal algorithms that rely o radom sampligs. It is ofte used i physical ad mathematical problems ad is most useful

More information

Generating Functions II

Generating Functions II Geeratig Fuctios II Misha Lavrov ARML Practice 5/4/2014 Warm-up problems 1. Solve the recursio a +1 = 2a, a 0 = 1 by usig commo sese. 2. Solve the recursio b +1 = 2b + 1, b 0 = 1 by usig commo sese ad

More information

NEW FAST CONVERGENT SEQUENCES OF EULER-MASCHERONI TYPE

NEW FAST CONVERGENT SEQUENCES OF EULER-MASCHERONI TYPE UPB Sci Bull, Series A, Vol 79, Iss, 207 ISSN 22-7027 NEW FAST CONVERGENT SEQUENCES OF EULER-MASCHERONI TYPE Gabriel Bercu We itroduce two ew sequeces of Euler-Mascheroi type which have fast covergece

More information

Math 113, Calculus II Winter 2007 Final Exam Solutions

Math 113, Calculus II Winter 2007 Final Exam Solutions Math, Calculus II Witer 7 Fial Exam Solutios (5 poits) Use the limit defiitio of the defiite itegral ad the sum formulas to compute x x + dx The check your aswer usig the Evaluatio Theorem Solutio: I this

More information

V. Adamchik 1. Recursions. Victor Adamchik Fall of x n1. x n 2. Here are a few first values of the above sequence (coded in Mathematica)

V. Adamchik 1. Recursions. Victor Adamchik Fall of x n1. x n 2. Here are a few first values of the above sequence (coded in Mathematica) V. Adamchik Recursios Victor Adamchik Fall of 2005 Pla. Covergece of sequeces 2. Fractals 3. Coutig biary trees Covergece of Sequeces I the previous lecture we cosidered a cotiued fractio for 2 : 2 This

More information

You may work in pairs or purely individually for this assignment.

You may work in pairs or purely individually for this assignment. CS 04 Problem Solvig i Computer Sciece OOC Assigmet 6: Recurreces You may work i pairs or purely idividually for this assigmet. Prepare your aswers to the followig questios i a plai ASCII text file or

More information

Problem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t =

Problem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t = Mathematics Summer Wilso Fial Exam August 8, ANSWERS Problem 1 (a) Fid the solutio to y +x y = e x x that satisfies y() = 5 : This is already i the form we used for a first order liear differetial equatio,

More information

LINEAR RECURSION RELATIONS - LESSON FOUR SECOND-ORDER LINEAR RECURSION RELATIONS

LINEAR RECURSION RELATIONS - LESSON FOUR SECOND-ORDER LINEAR RECURSION RELATIONS LINEAR RECURSION RELATIONS - LESSON FOUR SECOND-ORDER LINEAR RECURSION RELATIONS BROTHER ALFRED BROUSSEAU St. Mary's College, Califoria Give a secod-order liear recursio relatio (.1) T. 1 = a T + b T 1,

More information

MATH 10550, EXAM 3 SOLUTIONS

MATH 10550, EXAM 3 SOLUTIONS MATH 155, EXAM 3 SOLUTIONS 1. I fidig a approximate solutio to the equatio x 3 +x 4 = usig Newto s method with iitial approximatio x 1 = 1, what is x? Solutio. Recall that x +1 = x f(x ) f (x ). Hece,

More information