B n = n B n − 1 + 1
Let B n satisfy the recurrence relation above for B = 1 , 2 , 3 , … and B 0 = 1 . What is B 1 0 ?
Bonus :
You can show me how do derive a closed form solution to this recursion sequence. It exists but I do not know how to derive it yet.
You can interpret this question intuitively and give a real world example of when such a sequence would occur/count.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Great job! You deserve some bonus points.
As Rishabh said,
B n = n B n − 1 + 1 = n ( ( n − 1 ) B n − 2 + 1 ) + 1 = n ( n − 1 ) B n − 2 + n + 1 = n ( n − 1 ) ( ( n − 2 ) B n − 3 + 1 ) + n + 1 = n ( n − 1 ) ( n − 2 ) B n − 3 + n ( n − 1 ) + n + 1
And now that we have the first few expressions, we should be able to see a pattern. If we continue the pattern until we have an expression for B n in terms of B 0 , that first term will in fact turn into n!. As for the other terms, set aside the 1 for the moment. The others that are created form a sequence: n, n(n-1), n(n-1)(n-2), etc. Another way to express this sequence is ( n − 1 ) ! n ! , ( n − 2 ) ! n ! , ( n − 3 ) ! n ! ..... Once again, take this sequence out as far as it will go, until the expression for B n is in terms of B 0 . We wind up with the term n(n-1)(n-2)(n-3)......4*3*2= 1 ! n ! . But remember, we're adding up all the terms; so to recap, we are looking at the formula for B n that is at the end of the sequence of formulae above. It has terms n!, ( n − 1 ) ! n ! , ( n − 2 ) ! n ! , ( n − 3 ) ! n ! , all the way down to 1 ! n ! , and 1. Now we can rewrite n! and 1 as 0 ! n ! and n ! n ! , respectively. Now we have a completely consistent pattern:
B n = i = 0 ∑ n i ! n !
Now this is a result certainly, and it's a better than the recurrence relation, but it's still a summation. Can we eliminate it? Well the first thing is to factor out the n! to get
B n = n ! i = 0 ∑ n i ! 1
Now we recall the Taylor Series definition of e:
e = i = 0 ∑ ∞ i ! 1
This suggests that
B n ≈ n ! ∗ e
Now about that "approximately" symbol. A few test cases suggests that we can turn it into a hard equals with the floor function:
B n = ⌊ n ! ∗ e ⌋
The last step is to prove that using the floor function won't ever stab us in the back. How do we know that adding up ALL the terms in the Taylor Series won't ever overwhelm the floor function? Using the full Taylor Series causes us to overestimate, and the floor function only works correctly if the amount of the overestimate is never greater than 1, so we need to prove that in fact, it never is. Take a closer look at the Taylor series expansion of n!*e:
0 ! n ! + 1 ! n ! + 2 ! n ! + . . . + ( n − 2 ) ! n ! + ( n − 1 ) ! n ! + n ! n ! + ( n + 1 ) ! n ! + ( n + 2 ) ! n ! + ( n + 3 ) ! n ! + . . .
I have broken it out into 2 lines; the first one matches our initial sum which we know is a precise expression for B n , and the second one is "the rest of" n!*e. We think, hope, that taking the floor function of this expression for n!*e will neatly remove the second line. For that to happen, the second line must by less than 1 always. Let's simplify it:
n + 1 1 + ( n + 1 ) ( n + 2 ) 1 + ( n + 1 ) ( n + 2 ) ( n + 3 ) 1 + . . .
It will suffice to show that:
1) As n increases, this expression always decreases, and
2) For some (small) n, it is less than 1.
To prove (1), define 2 consecutive elements of the sequence of series as
D n = n + 1 1 + ( n + 1 ) ( n + 2 ) 1 + ( n + 1 ) ( n + 2 ) ( n + 3 ) 1 + . . . D n + 1 = n + 2 1 + ( n + 2 ) ( n + 3 ) 1 + ( n + 2 ) ( n + 3 ) ( n + 4 ) 1 + . . .
This makes it clear that D n + 1 > D n , since the n t h term of D n + 1 is less than the n t h term of D n for all n.
For (2), we recognize that D − 1 = e . Also, the first 2 terms of e sum to 2, which is the whole part of e ≈ 2.71828. This allows us to conclude that D 1 = e − 2 ≈ . 7 1 8 2 8 . . . . . < 1 .
So we have proven that D n > 1 for n ≥ 1 , meaning that B n = ⌊ e ∗ n ! ⌋ for n ≥ 1
This is really great stuff and is a big help to me on some similar problems! Thanks, Steven.
Log in to reply
It might be fun to try reverse this process. For example does C n = ⌊ n ! e + 1 ⌋ have a corresponding closed form summation and can we then use this to make a recurrence relation?
I wonder if all of these have some continuous analogues in trying to solve some differential equations?
One interpretation of the sequence can be given here although I cannot see how to take the sequence and derive the formula without having seen it before! Any insight is welcome :)
The simplest way of deriving the closed formula is to divide the equation by n ! , obtaining n ! B n = ( n − 1 ) ! B n − 1 + n ! 1 It is now a simple induction to solve this recurrence relation for n ! B n , obtaining n ! B n = j = 0 ∑ n j ! 1 so that B n = j = 0 ∑ n j ! n ! and B 1 0 = 9 8 6 4 1 0 1 .
Problem Loading...
Note Loading...
Set Loading...
B n = n B n − 1 + 1 = n ( ( n − 1 ) B n − 2 + 1 ) + 1 = n ( n − 1 ) ( ( n − 2 ) B n − 3 + 1 ) + n ⋯ ⋯ = n ! B 0 + 1 + n + n ( n − 1 ) + ⋯ + n ! = r = 0 ∑ n r ! n ! ( ∵ B 0 = 1 ) B n = r = 0 ∑ n r ! n ! For n = 1 0 . B 1 0 = r = 0 ∑ 1 0 r ! 1 0 ! = 9 8 6 4 1 0 1