IBM Research | Ponder This | September 2006 solutions
Skip to main content

September 2006

<<August September October>>


Answer:

         f(n) is asymptotic to log(n)/n as n -> infinity.
Here is a proof.  Recall
      f(n) = (1 + (n*n-n)*f(n-1))/(n*n+1)                (1)
(1) can be rewritten as
      n*f(n) = ((n*n)/(n*n+1))((1/n) + (n-1)*f(n-1))     (2)
and also as
      (n*n/(n+1))*f(n) = ((n**4)/((n**4)-1))*
      ((n-1)/(n*n)+((n-1)*(n-1)/n)*f(n-1))               (3)
so if we let
      g1(n)=n*f(n)                                       (4)
      g2(n)=((n*n)/(n+1))*f(n)                           (5)
(2) and (3) become
      g1(n) = ((n*n)/(n*n+1))((1/n) + g1(n-1)            (6)
      g2(n) = ((n**4)/((n**4)-1))((n-1)/(n*n) + g2(n-1)) (7)
(6) and (7) imply
      g1(n) < (1/n) + g1(n-1)                            (8)
      g2(n) > (1/n)-(1/(n*n)) + g2(n-1)                  (9)
applying (8) and (9) recursively
      g1(n) < (1+1/2+ ... +1/n)                          (10)
      g2(n) > (1+1/2+ ... +1/n) -(1+1/4+ ...+1/(n*n))    (11)
let
      h1(n) = 1 + 1/2 + ... + 1/n                        (12)
      h2(n) = 1 + 1/4 + ... + 1/(n*n)                    (13)
let c=(pi*pi)/6.  It is well known that h2(n) -> c as n -> infinity.
Therefore
      h2(n) < c                                          (14)
so applying (12) and (14) to (10) and (11)
      g1(n) < h1(n)                                      (15)
      g2(n) > h1(n) - c                                  (16)
using (4) and (5) on (15) and (16)
      f(n) < h1(n)/n                                     (17)
      f(n) > (1/n+1/(n*n))(h1(n)-c)                      (18)
(18) implies
      f(n) > (h1(n)-c)/n                                 (19)
it is well known that h1(n) is asymptotic to log(n) as n -> infinity,
combined with (17) and (19) this implies that f(n) is asymptotic to
log(n)/n as n -> infinity which is what we wanted to show.


If you have any problems you think we might enjoy, please send them in. All replies should be sent to: ponder@il.ibm.com