Question: [discrete math] I have this sequence s1 = 1 si = Si=2Si-1+1 input: a positive integer n output: Sn input a positive integer n if

[discrete math] I have this sequence s1 = 1 si = Si=2Si-1+1 input: a positive integer n output: Sn input a positive integer n if n =1 return 1 if not then find 2 (n-1)+1 return Sn please my teacher tells me this is wrong. I need this explained and the answer cannot be in pseudo code

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 Mathematics Questions!