2. [Sequence] Consider a sequence {an}nez+ satisfying the following conditions: a = 1 an = 1+ + for n > 2 and n e Z+ An-1 2.1. [Golden ratio) The above sequence converges to a, how do you derive the value of a using the sequence? (@3%) 2.2. [Python] Write a Python code using for loop to print an given the input n. (@4%) 2.3. [Python] Write a Python function called seq1) that outputs an given the input n. (@4%) 2.4. [Mathematics] In mathematics, we define a sequence {an} converges to a as follows: For all e > 0, there exists a positive integer N such that for all n > N,lan - al <. consider the following python code: k="1" epsilon="0.0001" while absolute a>= epsilon: #a is the value from 2.1. print (seq1(k), k) #segi() is the function from 2.3. k += 1 print (k) Please write down the output. (Up to 6 decimal points) (@6%) 2.5. [Mathematics] The following is the plot of two functions, f (x) = 1+ and g(x) = x, can you illustrate the sequence {an} using the plot below? Please draw your illustration in answer book. (@3%) f(x)=1+1/x e(x). 2.6. (Python] Consider the following sequence: a >0 1 an = 1+ for n 2 and n e Z+ An-1 By convergent sequence definition in 2.4., we define a function iteration_fn(an, n, epsilon) where an, n corresponds to the values of an, n respectively, epsilon corresponds a value . Please complete the function below and write the output. (Up to 6 decimal points) (@8%) def iteration_fn (an, n, epsilon) : conv = a #conv equals the convergence value a if return an, n, absolute (an - conv) else: print (an, n, absolute (an - conv)) n += 1 return print (iteration_fn (0.5, 1, 0.001)) #a is the value from 2.1. 2.7. According to 2.5. and 2.6., explain your observation of the sequence: (@2%) a> 0 an = 1 + forn 2 2 and n Z+ an-1 2. [Sequence] Consider a sequence {an}nez+ satisfying the following conditions: a = 1 an = 1+ + for n > 2 and n e Z+ An-1 2.1. [Golden ratio) The above sequence converges to a, how do you derive the value of a using the sequence? (@3%) 2.2. [Python] Write a Python code using for loop to print an given the input n. (@4%) 2.3. [Python] Write a Python function called seq1) that outputs an given the input n. (@4%) 2.4. [Mathematics] In mathematics, we define a sequence {an} converges to a as follows: For all e > 0, there exists a positive integer N such that for all n > N,lan - al <. consider the following python code: k="1" epsilon="0.0001" while absolute a>= epsilon: #a is the value from 2.1. print (seq1(k), k) #segi() is the function from 2.3. k += 1 print (k) Please write down the output. (Up to 6 decimal points) (@6%) 2.5. [Mathematics] The following is the plot of two functions, f (x) = 1+ and g(x) = x, can you illustrate the sequence {an} using the plot below? Please draw your illustration in answer book. (@3%) f(x)=1+1/x e(x). 2.6. (Python] Consider the following sequence: a >0 1 an = 1+ for n 2 and n e Z+ An-1 By convergent sequence definition in 2.4., we define a function iteration_fn(an, n, epsilon) where an, n corresponds to the values of an, n respectively, epsilon corresponds a value . Please complete the function below and write the output. (Up to 6 decimal points) (@8%) def iteration_fn (an, n, epsilon) : conv = a #conv equals the convergence value a if return an, n, absolute (an - conv) else: print (an, n, absolute (an - conv)) n += 1 return print (iteration_fn (0.5, 1, 0.001)) #a is the value from 2.1. 2.7. According to 2.5. and 2.6., explain your observation of the sequence: (@2%) a> 0 an = 1 + forn 2 2 and n Z+ an-1