Discrete Mathematics with Applications 4th Edition

Published by Cengage Learning
ISBN 10: 0-49539-132-8
ISBN 13: 978-0-49539-132-6

Chapter 5 - Sequences, Mathematical Induction, and Recursion - Exercise Set 5.1 - Page 244: 80

Answer

(a) $m-1$, $sum+a[i+1]$ (b) $m+1$, $sum+a[j-1]$

Work Step by Step

(a) We need the following to filling the blanks: for i:=0 to $m-1$ sum:= $sum+a[i+1]$ (b) We need the following to filling the blanks: for j:= 2 to $m+1$ sum:= $sum+a[j-1]$
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.