D1 January 2006 Q3

EdexcelOld spec9 marksAlgorithms

3.

Figure 3: flow chart. Start; let n = 0, A = (1 + root 5) / 2 and B = (1 - root 5) / 2 to 3 d.p.; let n = n + 1; let C = A^n, D = B^n to 3 d.p.; let E = (C - D) / root 5 to 1 s.f.; output E; is n > 4? No: back to let n = n + 1; Yes: stop
Figure 3

An algorithm is described by the flow chart shown in Figure 3.

(a) Complete the table in the answer book recording the results of each step as the algorithm is applied.

(Notice that values of \(A\), \(B\), \(C\) and \(D\) are to be given to 3 decimal places, and the values of \(E\) to 1 significant figure.)
\(A\)\(B\)\(n\)\(C\)\(D\)\(E\)
      
      
      
      
      
(8)
(b) Write down the output from the algorithm. (1)