Sequence
题号:NC202675
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Jack feels good with Rose, as Rose is a master of math. However, Rose sets a higher standard on Jack, to improve Jack's ability of math. So today Rose as usual sets a math question to Jack.
Given an integer and a sequence a_1, a_2, , a_n, one position is if and only if there exists where , and the weight of this sequence F_k(A) is defined as the number of Good positions in this sequence.
Given and , for every between and ( and included), calculate .
Note that is the set of sequences satisfying .
Each output should module .

输入描述:

The only line contains two integers ,  (, ).

输出描述:

Output  integers in one line, as the description above indicated.
示例1

输入

复制
3 3

输出

复制
22 5 0