Recursion

Answer & solution
Official answer: 51
Step through it (34 steps)
Let F1=1 and Fn=1+sum(Fk F(n−k), k=1..n−1). Then F2=2, F3=5, F4=15, F5=1+15+10+10+15=51. Values fit int in this call.
The function’s accumulator begins at 1 on every call. Its recurrence is F(n)=1+Σ F(k)F(n−k), with F(1)=1. Compute bottom-up: F(2)=1+1=2; F(3)=1+2+2=5; F(4)=1+5+4+5=15. For n=5, the four products are 15, 10, 10, 15, and the initial 1 makes 51. Forgetting the initial 1 would incorrectly substitute a different recurrence.