Ascending subsequences
Let be the sequence defined by for .
The first terms of are:
Consider the subsequences consisting of terms in ascending order. For the part of the sequence shown above, these are:
and
.
Define to be the sum of the terms for all such subsequences within the first terms of . Thus .
You are given that .
Find modulo .
递增子序列
对于任意,序列满足。
该序列的一开始几项为:
考虑该序列长度为的递增子序列。只看上面列出的几项,这样的子序列包括:
记为序列的前项中,此类子序列的各项之和。因此。
已知。
求并对取余。
Gitalking ...