#d11007. 平衡二叉树
平衡二叉树
Balanced Binary Tree
Problem Description
A balanced binary tree (AVL tree) is a binary tree in which the height difference between the left and right subtrees is at most , and both the left and right subtrees are themselves AVL trees. Given the number of nodes , count how many distinct AVL tree shapes have exactly nodes.
Input Format
One line containing an integer (), the number of test cases.
The next lines each contain an integer ().
Output Format
For each test case, output one number — the result. Since the result may be huge, output it modulo .
Sample Input
1
10
Sample Output
60