Question: This question concerns the recurrence relation for an = an = the number of ways to climb to the nth stair , if stairs can

This question concerns the recurrence relation foran=an=the number of ways to climb to the nthstair, if stairs can only be climbed two or three at a time.[Assume stairs are numbered1,2,3,....]
Question: What are the initial conditions for the recurrence ?
Question 10Answer
a.
a1=1a2=1,a3=2a1=1a2=1,a3=2
b.
a1=0,a2=1,a3=2a1=0,a2=1,a3=2
c.
a1=0a1=0
d.
a1=0,a2=1,a3=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 Programming Questions!