0%

Problem 743


Problem 743


Window into a Matrix

A window into a matrix is a contiguous sub matrix.

Consider a 2×n matrix where every entry is either 0 or 1.
Let A(k,n) be the total number of these matrices such that the sum of the entries in every 2×k window is k.

You are given that A(3,9)=560 and A(4,20)=1060870.

Find A(108,1016). Give your answer modulo 1 000 000 007.


矩阵窗口

矩阵的窗口是指矩阵中一个连续的子矩阵。

考虑一个2×n的矩阵,其中的元素均为01
若矩阵中任意一个2×k的窗口中元素之和都为k,记所有这样的矩阵数目为A(k,n)

已知A(3,9)=560A(4,20)=1060870

A(108,1016),并将你的答案对1 000 000 007取余。


Gitalking ...