A recursive sequence is defined by - d k = 6 d k − 1 + 3 , for all integers k ≥ 2 and d1 = 2 Use iteration to guess an

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 18PE
icon
Related questions
Question
100%

A recursive sequence is defined by -

d k = 6 d k − 1 + 3 , for all integers k ≥ 2

and d1 = 2

Use iteration to guess an explicit formula for the above sequence.

A recursive sequence is defined by -
d
6dk-1 + 3, for all integers k > 2
and di = 2
Use iteration to guess an explicit formula for the above sequence.
Transcribed Image Text:A recursive sequence is defined by - d 6dk-1 + 3, for all integers k > 2 and di = 2 Use iteration to guess an explicit formula for the above sequence.
Expert Solution
Step 1

The above given question needed little correction as it is not satisfy the recursive function.

dk=2dk-1+3 for all integers k2 and d1=2

solution:

First, we change the subscripts by one because d starts with d starts with d1 and not

d0. Let Dk=dk+1 Then

            Dk=2Dk-1+3, for all integers k1

            D0=2

Then we use iteration and try to guess the explicit formula or D:

            D0=2,D1=7,D2=17, D3=37,D4=77

we observe that the difference of these numbers is a multiple of 5. More specially the above numbers can be rewritten as follows:

            D0=0.5+2,D1=1.5+2,D2=3.5+2,D3=7.5+2 , D4=15.5+2

we can easily see that the sequence of multiplicands 0,1,3,7,15 is described by the formula 2k-1. so we claim that

            Dk=(2k-1)·5+2 for all integers k0

we need to prove that claim by induction

 

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage