document.write( "Question 1020312: if a cat can climb 1 or 2 steps at a time. in how many ways can she climb a flight of 10 stairs\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #636344 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
if we let a = the cat takes 1 step at a time, and we let b = the cat takes 2 steps at a time, then we will get the following possible combinations.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5b + 0a
\n" ); document.write( "4b + 2a
\n" ); document.write( "3b + 4a
\n" ); document.write( "2b + 6a
\n" ); document.write( "1b + 8a
\n" ); document.write( "0b + 10a\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5b means the cat takes 10 stair steps 2 at a time for a total of 5 cat steps.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "4b + 2a means the cat takes 8 stair steps 2 at a time and 2 stair steps 1 at a time for a total of 6 cat steps.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "order is important because the cat can take 1 stair step at a time and then 2 stair steps at a time, or the cat can take 2 stair steps at a time and then 1 stair step at a time. each of those counts as a different possible way for the cat to climb the stair steps.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5b + 0a can occur in 5! / (5! * 0!) = 1 way.
\n" ); document.write( "4b + 2a can occur in 6! / (4! * 2!) = 15 ways.
\n" ); document.write( "3b + 4a can occur in 7! / (3! * 4!) = 35 ways.
\n" ); document.write( "2b + 6a can occur in 8! / (2! * 6!) = 28 ways.
\n" ); document.write( "1b + 8a can occur in 9! / (1! * 8!) = 9 ways
\n" ); document.write( "0b + 10a can occur in 10! / (0! * 10!) = 1 way.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the total possible number of ways that the cat can climb the stair steps is therefore 1 + 15 + 35 + 28 + 9 + 1 = 89 ways.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "we'll detail 4b + 2a so you can see how it works.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the possible ways are:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "bbbbaa\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "bbbaab
\n" ); document.write( "bbbaba\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "bbaabb
\n" ); document.write( "bbabab
\n" ); document.write( "bbabba\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "baabbb
\n" ); document.write( "bababb
\n" ); document.write( "babbab
\n" ); document.write( "babbba\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "aabbbb
\n" ); document.write( "ababbb
\n" ); document.write( "abbabb
\n" ); document.write( "abbbab
\n" ); document.write( "abbbba\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that's a total of 15 possible ways.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the others work the same way.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5b + 0a can only be bbbbb
\n" ); document.write( "0b + 10a can only be aaaaaaaaaa\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "1b + 8a can be:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "baaaaaaaa
\n" ); document.write( "abaaaaaaa
\n" ); document.write( "aabaaaaaa
\n" ); document.write( "aaabaaaaa
\n" ); document.write( "aaaabaaaa
\n" ); document.write( "aaaaabaaa
\n" ); document.write( "aaaaaabaa
\n" ); document.write( "aaaaaaaba
\n" ); document.write( "aaaaaaaab\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that a total of 9 possible ways.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "if i did this correctly, then the total possible number of ways will be 89.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "i detailed all the possible ways if there were only 6 steps instead of 10 and the method i used looks to be correct. therefore i'm assuming that the same method will work with 10 steps even though i didn't detail all the possible ways, but just some of them.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "it is interesting that the combination formula will provide the same answer.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "for example:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "7! / (3! * 4!)= 35 and c(7,3) will also give you 35.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the combination formula is c(n,x) = n! / (x! * (n-x)!)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "then n = 7 and x = 3, you get c(7,3) = 7! / (3! * 4!).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "they're identical, so you can expect to get the same answer.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the key to solving this problem was not the formulas, but how to set up the problem logically.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that i did up front when i determined the possible combinations were:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5b
\n" ); document.write( "4b + 2a
\n" ); document.write( "etc.....\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "i used the bigger variable as the controlling variable.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "with 1b, you can have 8 a's because 1b takes 2 steps and there are 8 steps remaining.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "with 2b, you can have 6 a's because 2b's take 4 steps and there are 6 steps remaining.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "etc.....\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );