0%

Problem 654


Problem 654


Neighbourly Constraints

Let T(m,n) be the number of m-tuples of positive integers such that the sum of any two neighbouring elements of the tuple is n.

For example, T(3,4)=8, via the following eight 4-tuples:
(1,1,1,1)
(1,1,1,2)
(1,1,2,1)
(1,2,1,1)
(1,2,1,2)
(2,1,1,1)
(2,1,1,2)
(2,1,2,1)

You are also given that T(5,5)=246,
T(10,102)862820094(mod1 000 000 007) and
T(102,10)782136797(mod1 000 000 007).

Find T(5000,1012)mod1 000 000 007.


相邻约束

T(m,n)为任意相邻元素之和n的所有m-元正整数组的数目。

例如,T(3,4)=8这八个4元组分别是:
(1,1,1,1)
(1,1,1,2)
(1,1,2,1)
(1,2,1,1)
(1,2,1,2)
(2,1,1,1)
(2,1,1,2)
(2,1,2,1)

已知T(5,5)=246
T(10,102)862820094(mod1 000 000 007)
T(102,10)782136797(mod1 000 000 007)

T(5000,1012)mod1 000 000 007


Gitalking ...