Discrete Mathematics and Its Applications, Seventh Edition

Published by McGraw-Hill Education
ISBN 10: 0073383090
ISBN 13: 978-0-07338-309-5

Chapter 8 - Section 8.3 - Divide-and-Conquer Algorithms and Recurrence Relations - Exercises - Page 535: 9

Answer

a) 76 b) 48829 c) 30517579

Work Step by Step

We are given $$f(n)=f(n/5)+3n^2$$ and $$f(1)=4$$ a) Apply the recurrence relation when $n=5$ $f(5)=f(1)+ 3\times5^2$ $=1+75$ $=76$ b) Apply the recurrence relation when $n=25$ $f(25)=f(5)+ 3\times25^2$ $=79+1875$ $=1954$ $f(125)=f(25)+ 3\times125^2$ $=1954+46875$ $=48829$ c) Apply the recurrence relation when $n=3125$ First $f(625)=f(125)+ 3 \times 625^2$ $=48829+1171875$ $=1220704$ $f(3125)=f(625)+ 3\times3125^2$ $=1220704+29296875$ $=30517579$
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.