Question: 1 / / pre: ( a > 1 ) ( M > = 0 ) ( k > = 1 ) 2 int mySum (

1// pre: (a >1)(M >=0)(k >=1)
2 int mySum(int k)
3 if (k ==1)
4 return M
5 else
6 return mySum(k-1)+ M*pow2(a, k-1)
7// post: returns M*(a2k -1)/(a*a -1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!