Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C#: A) - Using loops, find the value of f(7) given: f(0)=4, f(n) = 2f(n-1)+4, where n is Natural number Hint: f(1)=2f(0)+4= 2*4+4= 12 f(2)=2f(1)+4=

C#:

A) - Using loops, find the value of f(7) given: f(0)=4, f(n) = 2f(n-1)+4, where n is Natural number

Hint:

f(1)=2f(0)+4= 2*4+4= 12

f(2)=2f(1)+4= 2*12+4=28

f(3)= 2f(2)+4= 2*28+4= 60

B) - Using loops, find f(5) given: f(0)=1, f(1) = 1 f(n) = 3f(n-1)f(n-2) +1, where n is Natural number

Hint:

f(2)=3f(1)f(0)+1= 3*1*1+1= 4

f(3)=3f(2)f(1)+1= 3*4*1+1= 13

f(4)=3f(3)f(2)+1= 3*13*4+1= 157

f(5)=3f(4)f(3)+1= 3*157*13+1= 6124

Been stuck on this for hours on end. Any help is appreciated

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

Discuss the various types of policies ?

Answered: 1 week ago

Question

Briefly explain the various types of leadership ?

Answered: 1 week ago

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

d. What language(s) did they speak?

Answered: 1 week ago