测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A10218. Transforming Sequence

编程题 普及/提高-

题目描述

Let's define the transformation $P$ of a sequence of integers $a_{1},a_{2},...,a_{n}$ as $b_{1},b_{2},...,b_{n}$ , where $b_{i}=a_{1} | a_{2} | ... | a_{i}$ for all $i=1,2,...,n$ , where $|$ is the bitwise OR operation.

Vasya consequently applies the transformation $P$ to all sequences of length $n$ consisting of integers from $1$ to $2^{k}-1$ inclusive. He wants to know how many of these sequences have such property that their transformation is a strictly increasing sequence. Help him to calculate this number modulo $10^{9}+7$ .

输入格式

The only line of the input contains two integers $n$ and $k$ ( $1<=n<=10^{18},1<=k<=30000$ ).

输出格式

Print a single integer — the answer to the problem modulo $10^{9}+7$ .

输入输出样例

输入 #1
1 2
输出 #1
3
输入 #2
2 3
输出 #2
30
输入 #3
3 3
输出 #3
48
上一题 去做题 下一题