Interpret This Function First!

Calculus Level 5

f ( n ) = n ! ( 1 + r = 1 n 2 ( n r ) f ( n r ) ) \large f( n ) =n!-\left( 1+\sum _{ r=1 }^{ n-2 }{ \left( \begin{matrix} n \\ r \end{matrix} \right) } f( n-r ) \right)

Let f ( n ) f(n) be a function defined for positive integers n 2 n \ge 2 such that the equation above is satisfied and f ( 2 ) = 1 f\left( 2 \right) =1 .

Let m = lim n f ( n ) n ! \displaystyle m = \lim_ {n \to\infty} \dfrac{f(n)}{n!} , then find 1000 m \left\lfloor 1000m \right\rfloor .

Notation : ( M N ) \dbinom MN denotes the binomial coefficient , ( M N ) = M ! N ! ( M N ) ! \dbinom MN = \dfrac{M!}{N!(M-N)!} .


The answer is 367.

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.

3 solutions

Mark Hennings
Sep 15, 2016

If we define f ( 0 ) = 1 f(0) = 1 and f ( 1 ) = 0 f(1) = 0 , then the recurrence relation for f ( n ) f(n) can be rewritten as n ! = r = 0 n ( n r ) f ( n r ) n 0 n! \; = \; \sum_{r=0}^n \binom{n}{r}f(n-r) \qquad \qquad n \ge 0 and hence 1 = r = 0 n 1 r ! × f ( n r ) ( n r ) ! n 0 . 1 \; =\; \sum_{r=0}^n \frac{1}{r!} \times \frac{f(n-r)}{(n-r)!} \qquad \qquad n \ge 0 \;. If we consider the generating function of the coefficients f ( n ) f(n) defined by F ( x ) = n = 0 f ( n ) n ! x n F(x) \; = \; \sum_{n=0}^\infty \frac{f(n)}{n!} x^n then the above recurrence relation can be read (compare the coefficients of x n x^n ) as 1 1 x = e x F ( x ) \frac{1}{1-x} \; = \; e^x F(x) and hence F ( x ) = 1 1 x e x x < 1 F(x) \; = \; \frac{1}{1-x}e^{-x} \qquad \qquad |x| < 1 so that f ( n ) n ! = r = 0 n ( 1 ) r r ! \frac{f(n)}{n!} \; = \; \sum_{r=0}^n \frac{(-1)^r}{r!} which makes m = e 1 m = e^{-1} and the answer 367 \boxed{367} .

(+1) Nice solution. Can we find a way to reduce the equation as a recurrence in f ( n ) f(n) , namely f ( n ) = ( n 1 ) ( f ( n 1 ) + f ( n 2 ) ) f(n) = (n-1)(f(n-1) + f(n-2) ) directly from the first equation? (The recurrence is from the derangement definition).

Ishan Singh - 4 years, 9 months ago

Log in to reply

Or maybe to f ( n ) = n f ( n 1 ) + ( 1 ) n f(n) =nf(n-1) + (-1)^n , since all three recurrence give unique solution. I'm trying to find an algebraic method to convert the first sum into either of the two recurrence and solve from there, but not found yet.

Ishan Singh - 4 years, 9 months ago

If the function is only defined for n>=2, how can you define, and use, values for f(0) and f(1).

Kevin Glentworth - 4 years, 8 months ago

Log in to reply

There is nothing to stop me extending the definition of f f to include values for f ( 0 ) f(0) and f ( 1 ) f(1) if I like. The values I chose were particularly useful ones. They made the recurrence relation for f f much neater...

It is always possible to extend the definition of a function. The factorial function n ! n! is only defined for nonnegative integers, but it is nonetheless possible to define the Gamma function for all positive real x x by the formula Γ ( x ) = 0 t x 1 e t d t \Gamma(x) \; = \; \int_0^\infty t^{x-1} e^{-t}\,dt and this function satisfies Γ ( n + 1 ) = n ! \Gamma(n+1) = n! for all nonpositive integers n n . You go on from there and extend the definition of the Gamma function to all complex numbers, excepting the nonpositive integers.

Mark Hennings - 4 years, 8 months ago
Tech Swami
Sep 14, 2016

The following solution is intuitive and not very mathematically rigorous but i believe it is correct.

If there are n n distinct letters and n n corresponding envelopes, the given function can be thought of to represent the number of different ways the letters can be placed in the envelopes (one letter in each envelope) such that no letter is placed in the correct envelope. If ( n r ) f ( n r ) \left( \begin{matrix} n \\ r \end{matrix} \right) f(n-r) is assumed to represent the number of ways r r letters can be selected and placed in their correct envelopes and every other letter in their wrong envelope, then ( 1 + r = 1 n 2 ( n r ) f ( n r ) ) \left( 1+\sum _{ r=1 }^{ n-2 }{ \left( \begin{matrix} n \\ r \end{matrix} \right) f(n-r) } \right) will be the number of ways one or more letters are placed in their correct envelopes, and the function will give the number of ways no letter is placed in the correct envelope, which matches with our initial assumption.

The function can therefore be alternatively written as : f ( n ) = n ! [ 1 1 1 ! + 1 2 ! 1 3 ! + + ( 1 ) n n ! ] f(n) =n!\left[ 1-\frac { 1 }{ 1! } +\frac { 1 }{ 2! } -\frac { 1 }{ 3! } +\cdots +\frac { { (-1) }^{ n } }{ n! } \right]

f ( n ) n ! = [ 1 1 1 ! + 1 2 ! 1 3 ! + + ( 1 ) n n ! ] \therefore \frac { f(n) }{ n! } =\left[ 1-\frac { 1 }{ 1! } +\frac { 1 }{ 2! } -\frac { 1 }{ 3! } +\cdots +\frac { { (-1) }^{ n } }{ n! } \right]

l i m n f ( n ) n ! = 1 e \boxed{\underset { n\rightarrow \infty }{ lim } \frac { f(n) }{ n! } =\frac{1}{e}}

(+1) Nice Problem and Solution. I followed similar approach, getting that the function represents the number of derangements for set of size n n made the problem easy.

Karan Siwach - 4 years, 8 months ago
Ishan Singh
Sep 16, 2016

We can define f ( 0 ) = 1 f(0) = 1 and f ( 1 ) = 0 f(1) = 0 , so that,

r = 0 n ( n r ) f ( n r ) = n ! \sum_{r=0}^{n} \dbinom{n}{r} f(n-r) = n!

Substitute r n r r \mapsto n-r to get,

r = 0 n ( n r ) f ( r ) = n ! \sum_{r=0}^{n} \dbinom{n}{r} f(r) = n!

Now, consider S = k = 0 n ( 1 ) k ( n k ) k ! \text{S} = \sum_{k=0}^{n} (-1)^k \dbinom{n}{k} k!

S = k = 0 n r = 0 k ( 1 ) k ( n k ) ( k r ) f ( r ) \implies \text{S} = \sum_{k=0}^{n} \sum_{r=0}^{k} (-1)^k \dbinom{n}{k} \dbinom{k}{r} f(r)

= k = 0 n r = 0 k ( 1 ) k ( n r ) ( n r k r ) f ( r ) = \sum_{k=0}^{n} \sum_{r=0}^{k} (-1)^k \dbinom{n}{r} \dbinom{n-r}{k-r} f(r)

= r = 0 n ( 1 ) r k = r n ( 1 ) k r ( n r ) ( n r k r ) f ( r ) = \sum_{r=0}^{n} (-1)^r \sum_{k=r}^{n} (-1)^{k-r} \dbinom{n}{r} \dbinom{n-r}{k-r} f(r)

= r = 0 n ( 1 ) r ( n r ) f ( r ) k = r n ( 1 ) k r ( n r k r ) = \sum_{r=0}^{n} (-1)^r \dbinom{n}{r} f(r) \sum_{k=r}^{n} (-1)^{k-r} \dbinom{n-r}{k-r}

Note that the inner sum vanishes unless n = r n=r , thus,

S = ( 1 ) r ( n r ) ( n r n r ) f ( r ) ; r = n \text{S} = (-1)^r \dbinom{n}{r} \dbinom{n-r}{n-r} f(r) \quad ; \quad r=n

= ( 1 ) n f ( n ) = (-1)^n f(n)

f ( n ) = k = 0 n ( 1 ) n k ( n k ) k ! \implies f(n) = \sum_{k=0}^{n} (-1)^{n-k} \dbinom{n}{k} k!

Substitute k n k k \mapsto n-k ,

f ( n ) = k = 0 n ( 1 ) k ( n k ) ( n k ) ! = n ! k = 0 n ( 1 ) k k ! \implies f(n) = \sum_{k=0}^{n} (-1)^{k} \dbinom{n}{k} (n-k)! = n! \sum_{k=0}^{n} \dfrac{(-1)^{k}}{k!}

So that lim n f ( n ) n ! = 1 e \displaystyle \lim_{n \to \infty} \dfrac{f(n)}{n!} = \dfrac{1}{e} making the answer 367 \boxed{367}


In general,

a n = r = 0 n ( n r ) b r b n = r = 0 n ( 1 ) n r ( n r ) a r a_{n} = \sum_{r=0}^{n} \dbinom{n}{r} b_{r} \iff b_{n} = \sum_{r=0}^{n} (-1)^{n-r} \dbinom{n}{r} a_{r}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...