Question

In: Statistics and Probability

An elf has a staircase of n stairs to climb. each step it takes can be...

An elf has a staircase of n stairs to climb. each step it takes can be 1 or 3 stairs. Find a recurrence relation for An, the number of different ways for the elf to ascend the n-stair staircase.

Solutions

Expert Solution

SOLUTION :

Given that ,

Total number of stairs = n

The elf can take 1,2 or 3 steps: Number of ways to take each step = 3

Lets say in the process he took

  • A number of 1 steps
  • B number of 2 steps
  • C number of 3 steps

Total steps is equal to :

Hence the number of possible ways is the total number of possible solutions to this equation with A,B,C being whole numbers.

So to find recurrence relation, we can substitute various values for n,

n = 1:

possible solutions:

We should also take the permutations of these solutions : 1

n = 2:

possible solutions:

We should also take the permutations of these solutions : 2

n = 3:

possible solutions:

We should also take the permutations of these solutions : 1+2+1 = 4

n = 4:

possible solutions:

We should also take the permutations of these solutions : 1+1+3+2 = 7

n = 5 :

possible solutions:

We should also take the permutations of these solutions : 1+3+4+3+2 = 13

n = 6 :

possible solutions:

We should also take the permutations of these solutions : 1+5+4+6+6+1+1 = 24

What we should observe that the number of ways is always of the form:

because the number of ways of taking the total steps is just the number of ways of taking previous steps plus number of ways of taking the extra new steps which can be either one two or three.

So we get:

  • a(1) = 1
  • a(2) = 2
  • a(3) = 4
  • a(4) = 7 = 4+3+2
  • a(5) = 13 = 7+4+2
  • a(6) = 24 = 13+7+4
  • a(7) = 24+13+7 =44....

Hence we have discovered and verified the sequence.

--------------------- the end --------------------


Related Solutions

PCR takes advantage of the steps of DNA replication. Match each step of PCR with the...
PCR takes advantage of the steps of DNA replication. Match each step of PCR with the protein that the PCR step has replaced.
Can someone explain to me the program step by step next to each statement in the...
Can someone explain to me the program step by step next to each statement in the program by using comment \\ and do the program using the basic c++ cuz down program looked messy advance? a. Request a five-letter string value from the console. b. If the input string is not a five-letter word, print that the word is not a five-letter word. c. If the input string is a five-letter word,determine if the word is or is not a...
What is each step in meiosis? Are there any examples of what can happen if an...
What is each step in meiosis? Are there any examples of what can happen if an error occurs?
Consider a society of n people. Everybody has access to a common meadow. Each individual can...
Consider a society of n people. Everybody has access to a common meadow. Each individual can choose either a high level of grazing on the meadow H or a low level of grazing L. If an individual chooses H, they receive a private benefit of b and impose a cost of c on each individual in society including themselves (i.e. a cost of c on individual 1, a cost of c on individual 2, etc.). If an individual chooses L,...
Please show all work step by step so i can understand Find and classify each critical...
Please show all work step by step so i can understand Find and classify each critical point (as relative maximum, relative minimum, or saddle point) of f(x,y)=2x^3+3x^2+y^2-36x+8y+1
Step by step solution and explanation, please? State whether each of the following data sets has...
Step by step solution and explanation, please? State whether each of the following data sets has positive or negative linear correlation (or neither). Also calculate the correlation coefficient using the Five steps for Hypothesis testing. The global average temperature (in degrees Celsius), and number of pirates are: Temperature 14.2 14.4 14.5 14.8 15.1 15.5 15.8 Pirates 35000 45000 20000 15000 5000 400 17
Consider a surface that has N sites each of which can adsorb one gas molecule. suppose...
Consider a surface that has N sites each of which can adsorb one gas molecule. suppose that it is in contact with a gas with the chemical potential u. Assume that an adsorbed molecule has energy -e0 compared to one in the gas phase. Show that the surface coverage T (the ratio of adsorbed molecules to adsorbing sites) is given as T=1/(exp(-(u+e0)/kT)+1). (Hint: You can ignore the volume change upon adsorption, which means that the Gibbs free energy is equal...
Each applicant has a score. If there are a total of n applicants then each applicant...
Each applicant has a score. If there are a total of n applicants then each applicant whose score is above sn is accepted, where s1 = .2, s2 = .4, sn = .5,n ≥ 3. Suppose the scores of the applicants are independent uniform (0, 1)random variables and are independent of N, the number of applicants, which is Poisson distributed with mean 2. Let X denote the number of applicants that are accepted. Derive expressions for (a) P(X=0). (b) E[X].
Find the autocorrelation sequence for discrete signal c[n]=[=0.8,1.6,0,2.4,-4]. 0 is the origin. Graph each step and...
Find the autocorrelation sequence for discrete signal c[n]=[=0.8,1.6,0,2.4,-4]. 0 is the origin. Graph each step and the sequence. Write the sequence also.
Can you give me each step of this problem? A researcher would like to evaluate the...
Can you give me each step of this problem? A researcher would like to evaluate the effectiveness of a pain-relief patch designed for lower back pain. Prior to testing the patch, each of n = 8 patients rates the current level of back pain on a scale from 1 to 10. After wearing the patch for 90 minutes, a second pain rating is recorded. The data are as follows:                   Before      After                         6            2                         8            3                         9            4...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT