Consider the sequence t(n) defined by the following recurrence.
- t(0)=1
- t(n)=t(0)t(n−1)+t(1)t(n−2)+⋯+t(n−1)t(0) for n≥1
Applying the definition directly gives t(1)=t(0)t(0)=1, t(2)=t(0)t(1)+t(1)t(0)=2, and t(3)=t(0)t(2)+t(1)t(1)+t(2)t(0)=5.
Given an integer n, write a program that prints t(n).