670 views
2 votes
2 votes
#IITD_2011

there is a frog who could climb either 1 stair or 3 stairs in one shot. In how many ways he could reach at 100th stair ?

2 Answers

0 votes
0 votes

97C1+97C1*94C1/2!+97C1*94C1*91C1/3!+.......+97C1*94C1*91C1*.......*1C1/33!

there are 97 ways where i can take single 3 step,

there are 97 ways for 1st 3 step move and then 94 ways for another 33 step move and division is for removing duplicates.

e.g.  in no of ways where 2 times 3 steps can have a permuation where 3 step move taken at 3rd step and 52nd step counted twice so delete by the x!.

this is tedious job,but simple to understand.please correct me if anyting is wrong 

Related questions

2 votes
2 votes
2 answers
1
Rajesh Pradhan asked Feb 22, 2016
437 views
#IITD_2011If we are give a sorted array and we have to find two elements which sum to a number x.
0 votes
0 votes
0 answers
4
Shubh13m asked May 8, 2018
726 views
How to prepare for Mtech mathematics and computing interview at IITpatna