It's all about the Bonus Points

B n = n B n 1 + 1 \large B_n = n B_{n-1} + 1

Let B n B_n satisfy the recurrence relation above for B = 1 , 2 , 3 , B=1,2,3,\ldots and B 0 = 1 B_0 = 1 . What is B 10 B_{10} ?

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.


The answer is 9864101.

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.

4 solutions

Rishabh Jain
Mar 24, 2016

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 n ! r ! ( B 0 = 1 ) \begin{aligned}B_n&=nB_{n-1}+1\\&=n((n-1)B_{n-2}+1)+1\\&=n(n-1)((n-2)B_{n-3}+1)+n\\&\cdots\\&\cdots\\&=n!B_0+1+n+n(n-1)+\cdots +n!\\&\large{=\sum_{r=0}^{n}\dfrac{n!}{r!}}~~\small{(\because ~B_0=1)}\end{aligned} B n = r = 0 n n ! r ! \large B_n=\sum_{r=0}^{n}\dfrac{n!}{r!} For n = 10 n=10 . B 10 = r = 0 10 10 ! r ! = 9864101 \large B_{10}=\sum_{r=0}^{10}\dfrac{10!}{r!}=\boxed{9864101}

Great job! You deserve some bonus points.

Roberto Nicolaides - 5 years, 2 months ago
Steven Brown
Mar 27, 2016

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 B_n = nB_{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 B_n in terms of B 0 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 ! ( n 1 ) ! \frac{n!}{(n-1)!} , n ! ( n 2 ) ! \frac{n!}{(n-2)!} , n ! ( n 3 ) ! \frac{n!}{(n-3)!} ..... Once again, take this sequence out as far as it will go, until the expression for B n B_n is in terms of B 0 B_0 . We wind up with the term n(n-1)(n-2)(n-3)......4*3*2= n ! 1 ! \frac{n!}{1!} . But remember, we're adding up all the terms; so to recap, we are looking at the formula for B n B_n that is at the end of the sequence of formulae above. It has terms n!, n ! ( n 1 ) ! \frac{n!}{(n-1)!} , n ! ( n 2 ) ! \frac{n!}{(n-2)!} , n ! ( n 3 ) ! \frac{n!}{(n-3)!} , all the way down to n ! 1 ! \frac{n!}{1!} , and 1. Now we can rewrite n! and 1 as n ! 0 ! \frac{n!}{0!} and n ! n ! \frac{n!}{n!} , respectively. Now we have a completely consistent pattern:

B n = i = 0 n n ! i ! B_n = \sum\limits_{i=0}^{n}{\frac{n!}{i!}}

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 1 i ! B_n = n!\sum\limits_{i=0}^{n}{\frac{1}{i!}}

Now we recall the Taylor Series definition of e:

e = i = 0 1 i ! e = \sum\limits_{i=0}^{\infty}{\frac{1}{i!}}

This suggests that

B n n ! e B_n \approx 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 B_n = \lfloor n!*e \rfloor

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:

n ! 0 ! + n ! 1 ! + n ! 2 ! + . . . + n ! ( n 2 ) ! + n ! ( n 1 ) ! + n ! n ! + n ! ( n + 1 ) ! + n ! ( n + 2 ) ! + n ! ( n + 3 ) ! + . . . \frac{n!}{0!} + \frac{n!}{1!} + \frac{n!}{2!} + ... + \frac{n!}{(n-2)!} + \frac{n!}{(n-1)!} + \frac{n!}{n!} +\\ \frac{n!}{(n+1)!} + \frac{n!}{(n+2)!} + \frac{n!}{(n+3)!} + ...

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 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:

1 n + 1 + 1 ( n + 1 ) ( n + 2 ) + 1 ( n + 1 ) ( n + 2 ) ( n + 3 ) + . . . \frac{1}{n+1} + \frac{1}{(n+1)(n+2)} + \frac{1}{(n+1)(n+2)(n+3)} + ...

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 = 1 n + 1 + 1 ( n + 1 ) ( n + 2 ) + 1 ( n + 1 ) ( n + 2 ) ( n + 3 ) + . . . D n + 1 = 1 n + 2 + 1 ( n + 2 ) ( n + 3 ) + 1 ( n + 2 ) ( n + 3 ) ( n + 4 ) + . . . D_n\;\;\, = \frac{1}{n+1} + \frac{1}{(n+1)(n+2)} + \frac{1}{(n+1)(n+2)(n+3)} + ... \\ D_{n+1}= \frac{1}{n+2} + \frac{1}{(n+2)(n+3)} + \frac{1}{(n+2)(n+3)(n+4)} + ...

This makes it clear that D n + 1 D_{n+1} > D n D_n , since the n t h n^{th} term of D n + 1 D_{n+1} is less than the n t h n^{th} term of D n D_n for all n.

For (2), we recognize that D 1 = e D_{-1}=e . Also, the first 2 terms of e sum to 2, which is the whole part of e \approx 2.71828. This allows us to conclude that D 1 = e 2 . 71828..... < 1 D_1 = e-2 \approx .71828..... < 1 .

So we have proven that D n > 1 D_n > 1 for n 1 n \ge 1 , meaning that B n = e n ! B_n= \lfloor e*n! \rfloor for n 1 n \ge 1

This is really great stuff and is a big help to me on some similar problems! Thanks, Steven.

Roberto Nicolaides - 5 years, 2 months ago

Log in to reply

It might be fun to try reverse this process. For example does C n = n ! e + 1 C_n = \lfloor n! e + 1 \rfloor 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?

Roberto Nicolaides - 5 years, 2 months ago

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 :)

Mark Hennings
Apr 7, 2016

The simplest way of deriving the closed formula is to divide the equation by n ! n! , obtaining B n n ! = B n 1 ( n 1 ) ! + 1 n ! \frac{B_n}{n!} \; = \; \frac{B_{n-1}}{(n-1)!} + \frac{1}{n!} It is now a simple induction to solve this recurrence relation for B n n ! \frac{B_n}{n!} , obtaining B n n ! = j = 0 n 1 j ! \frac{B_n}{n!} \; = \; \sum_{j=0}^n \frac{1}{j!} so that B n = j = 0 n n ! j ! B_n \; = \; \sum_{j=0}^n \frac{n!}{j!} and B 10 = 9864101 \boxed{B_{10} = 9864101} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...