Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Suppose that f(n)=f(n/3)+1when is a positive integer divisible by 3, and f(1)=1. Find:

a)f(3).

b)f(27).

c)localid="1668607414775" f(729).

Short Answer

Expert verified

The answers are given below;

(a)f3=2

(b)f27=4

(c)f729=7

Step by step solution

01

Recurrence Relation definition

A recurrence relation is an equation that recursively defines a sequence where the next term is a function of the previous terms: f(n) = a f(n / b) + c

02

Apply Recurrence Relation

Given:

f(n)=f(n/3)+1f(1)=1

(a) Repeatedly apply the recurrence relation with n=3:

f(3)=f(1)+1f(1)=1f(3)=1+1f(3)=2

(b) Repeatedly apply the recurrence relation with n=27:

f(27)=f(9)+1f(27)=f(3)+2f(27)=f(1)+3f(1)=1f(27)=1+3f(27)=4

(c) Repeatedly apply the recurrence relation with n=729:

f(729)=f(243)+1f(729)=f(81)+2f(729)=f(27)+3f(729)=f(9)+4f(729)=f(3)+5f(729)=f(1)+6f(729)=1+6f(729)=7

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free