Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > College/University Maths Help > Discrete Math
Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2008, 07:34 PM
Junior Member
 
Join Date: Sep 2008
Posts: 5
Country:
Thanks: 4
Thanked 0 Times in 0 Posts
Chief65 is on a distinguished road
Default Recursion

We just finished induction and are now starting on Recursive functions. The assigned problem is: How many ways is it possible to climb a staircase if n steps if one is allowed to take either one or two steps at a time?
Reply With Quote
Advertisement
 
  #2  
Old 09-16-2008, 08:24 PM
PaulRS's Avatar
Super Member
 
Join Date: Oct 2007
Posts: 337
Country:
Thanks: 120
Thanked 252 Times in 189 Posts
PaulRS is a jewel in the roughPaulRS is a jewel in the roughPaulRS is a jewel in the roughPaulRS is a jewel in the rough
Default

Quote:
Originally Posted by Chief65 View Post
We just finished induction and are now starting on Recursive functions. The assigned problem is: How many ways is it possible to climb a staircase if n steps if one is allowed to take either one or two steps at a time?
Call a_n the ways of getting to the nth step.

Suppose we want to climb to the nth step, and n\geq{2}.

There are 2 possible ways of getting there:

  1. We are at the n-1 step, and we jump to the next. a_{n-1} ways of doing this, since we have to get to the n-1 step
  2. We are at the n-2 step, and we jump directly to n. a_{n-2} ways of doing this
So we have a_{n}=a_{n-1}+a_{n-2}

Now a_0=1 (there's one way of doing nothing) and a_1=1 and our sequence is determined
__________________
e^{\tfrac{x}{{1 - x}}}  = \prod\limits_{n = 1}^\infty  {\left( {\tfrac{1}{{1 - x^n }}} \right)^{\tfrac{{\phi \left( n \right)}}{n}} }

|x|<1



Reply With Quote
The following users thank PaulRS for this useful post:
Donate to MHF
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 07:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2008 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.