A triangle tower consist of

floors. The ith floor has 2i-1 small triangles, each small triangle has an integer in it.The jth small triangle of ith floor has an integer f(i,j), f(i,j) can be calculated by such rules:
· f(i,1)=f(i,2*i-1)=1 for all i

[1,n]
· f(i,j)=f(i-1,j-1) if j is even for all i

[1,n].
· f(i,j)=f(i,j-1)+f(i,j+1) if j is odd for all i

[1,n].
Hery wants you to help him to caculate
%20%5C%25%2010%5E9%2B7)
.