f ( n ) = n ! − ⎝ ⎛ 1 + r = 1 ∑ n − 2 ( n r ) f ( n − r ) ⎠ ⎞
Let f ( n ) be a function defined for positive integers n ≥ 2 such that the equation above is satisfied and f ( 2 ) = 1 .
Let m = n → ∞ lim n ! f ( n ) , then find ⌊ 1 0 0 0 m ⌋ .
Notation : ( N M ) denotes the binomial coefficient , ( N M ) = N ! ( M − N ) ! M ! .
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.
(+1) Nice solution. Can we find a way to reduce the equation as a recurrence in f ( n ) , namely f ( n ) = ( n − 1 ) ( f ( n − 1 ) + f ( n − 2 ) ) directly from the first equation? (The recurrence is from the derangement definition).
Log in to reply
Or maybe to f ( n ) = n f ( 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.
If the function is only defined for n>=2, how can you define, and use, values for f(0) and f(1).
Log in to reply
There is nothing to stop me extending the definition of f to include values for f ( 0 ) and f ( 1 ) if I like. The values I chose were particularly useful ones. They made the recurrence relation for f much neater...
It is always possible to extend the definition of a function. The factorial function n ! is only defined for nonnegative integers, but it is nonetheless possible to define the Gamma function for all positive real x by the formula Γ ( x ) = ∫ 0 ∞ t x − 1 e − t d t and this function satisfies Γ ( n + 1 ) = n ! for all nonpositive integers n . You go on from there and extend the definition of the Gamma function to all complex numbers, excepting the nonpositive integers.
The following solution is intuitive and not very mathematically rigorous but i believe it is correct.
If there are n distinct letters and 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 ) is assumed to represent the number of ways 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 ) ) 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 + 2 ! 1 − 3 ! 1 + ⋯ + n ! ( − 1 ) n ]
∴ n ! f ( n ) = [ 1 − 1 ! 1 + 2 ! 1 − 3 ! 1 + ⋯ + n ! ( − 1 ) n ]
n → ∞ l im n ! f ( n ) = e 1
(+1) Nice Problem and Solution. I followed similar approach, getting that the function represents the number of derangements for set of size n made the problem easy.
We can define f ( 0 ) = 1 and f ( 1 ) = 0 , so that,
r = 0 ∑ n ( r n ) f ( n − r ) = n !
Substitute r ↦ n − r to get,
r = 0 ∑ n ( r n ) f ( r ) = n !
Now, consider S = k = 0 ∑ n ( − 1 ) k ( k n ) k !
⟹ S = k = 0 ∑ n r = 0 ∑ k ( − 1 ) k ( k n ) ( r k ) f ( r )
= k = 0 ∑ n r = 0 ∑ k ( − 1 ) k ( r n ) ( k − r n − r ) f ( r )
= r = 0 ∑ n ( − 1 ) r k = r ∑ n ( − 1 ) k − r ( r n ) ( k − r n − r ) f ( r )
= r = 0 ∑ n ( − 1 ) r ( r n ) f ( r ) k = r ∑ n ( − 1 ) k − r ( k − r n − r )
Note that the inner sum vanishes unless n = r , thus,
S = ( − 1 ) r ( r n ) ( n − r n − r ) f ( r ) ; r = n
= ( − 1 ) n f ( n )
⟹ f ( n ) = k = 0 ∑ n ( − 1 ) n − k ( k n ) k !
Substitute k ↦ n − k ,
⟹ f ( n ) = k = 0 ∑ n ( − 1 ) k ( k n ) ( n − k ) ! = n ! k = 0 ∑ n k ! ( − 1 ) k
So that n → ∞ lim n ! f ( n ) = e 1 making the answer 3 6 7
In general,
a n = r = 0 ∑ n ( r n ) b r ⟺ b n = r = 0 ∑ n ( − 1 ) n − r ( r n ) a r
Problem Loading...
Note Loading...
Set Loading...
If we define f ( 0 ) = 1 and f ( 1 ) = 0 , then the recurrence relation for f ( n ) can be rewritten as n ! = r = 0 ∑ n ( r n ) f ( n − r ) n ≥ 0 and hence 1 = r = 0 ∑ n r ! 1 × ( n − r ) ! f ( n − r ) n ≥ 0 . If we consider the generating function of the coefficients f ( n ) defined by F ( x ) = n = 0 ∑ ∞ n ! f ( n ) x n then the above recurrence relation can be read (compare the coefficients of x n ) as 1 − x 1 = e x F ( x ) and hence F ( x ) = 1 − x 1 e − x ∣ x ∣ < 1 so that n ! f ( n ) = r = 0 ∑ n r ! ( − 1 ) r which makes m = e − 1 and the answer 3 6 7 .