0%

Problem 929


Problem 929


Odd-Run Compositions

A composition of n is a sequence of positive integers which sum to n. Such a sequence can be split into runs, where a run is a maximal contiguous subsequence of equal terms.

For example, 2,2,1,1,1,3,2,2 is a composition of 14 consisting of four runs:

2,21,1,132,2

Let F(n) be the number of compositions of n where every run has odd length.

For example, F(5)=10:
54,13,22,32,1,22,1,1,11,41,3,11,1,1,21,1,1,1,1
Find F(105). Give your answer modulo 1111124111.


奇数长度分段组成

n的一个组成是一个和为n的正整数序列;这一序列可以进一步分成若干,每一段是由相等的数构成的最长连续子序列。

例如,2,2,1,1,1,3,2,214的一个组成,可以分成四段:

2,21,1,132,2

F(n)n的所有组成中,满足每一段长度都为奇数的组成的数目。

例如,F(5)=10
54,13,22,32,1,22,1,1,11,41,3,11,1,1,21,1,1,1,1
F(105),并对1111124111取余作为你的答案。


Gitalking ...