#Lutece0478. Counting Binary Trees
Counting Binary Trees
Migrated from Lutece 478 Counting Binary Trees
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
There are distinct binary trees of nodes
.
Let be the number of distinct non-empty binary trees of no more than nodes, your task is to calculate
Input
The input contains at most test cases. Each case contains two integers and (, ) on a single line. The input ends with .
Output
For each test case, print .
Samples
3 100
4 10
0 0
8
2
Resources
2011 UESTC ACM Training for Math