GATEverse
← GATE CSE 2000

Q3

NATMarks unknown

Consider the following sequence: s1=s2=1s_1 = s_2 = 1 and si=1+min⁡(si−1,si−2) for i>2s_i = 1 + \min \left({s_{i-1}, s_{i-2}}\right) \text{ for } i > 2. Prove by induction on nn that sn=⌈n2⌉s_n=⌈\frac{n}{2}⌉.

Sign in to save attempts.

Loading…