Consider the generating function
f(x)=n=0∑∞anxn. By induction
0<an≤1, thus this series is absolutely convergent for
∣x∣<1, f(0)=1 and the function is positive in the interval
[0,1). The goal is to compute f(21).
By the recurrence formula,
f′(x)=n=0∑∞(n+1)an+1xn=n=0∑∞k=0∑nn−k+2akxn=k=0∑∞akxkn=k∑∞n−k+2xn−k=f(x)m=0∑∞m+2xm.
Then
lnf(x)=lnf(x)−lnf(0)=∫0xff′=m=0∑∞(m+1)(m+2)xm+1==m=0∑∞((m+1)xm+1−(m+2)xm+1)=1+(1−x1)m=0∑∞(m+1)xm+1=1+(1−x1)ln1−x1,
lnf(21)=1−ln2,
and thus f(21)=2e.