Recurrences & Generating Functions

Answer & solution
Official answer: 15.0
Our answer: 15
1. Use the binomial-series identity (1-z)-3=Σ(n≥0)C(n+2,2)zn. Its first coefficients are 1,3,6,10,… .
2. Multiplication by 1+z adds each coefficient to the preceding one. Thus a0=1 and a3=C(5,2)+C(4,2)=10+6=16. Directly, (1+z)(1+3z+6z²+10z³+…)=1+4z+9z²+16z³+… .
3. Therefore a3-a0=16-1=15. More generally an=C(n+2,2)+C(n+1,2)=(n+1)² for n≥1. The numerator shifts coefficients; it cannot simply be ignored when reading a3.