문제3031--[ 재능 ]

3031: [ 재능 ]

[만든사람 : lukanel]
시간제한 : 1.000 sec  메모리제한 : 128 MiB

문제 설명

solved.ac/lukanel ]

This problem is a special problem made by lukanel, the leader of [ 재능 ]

If you solve this problem at any time, you will become a member of [ 재능 ].

When

t=l=1{(1)l1lr=01l2r+1}
and n,k is given, caculate

ϕ(n)i=1n[gcd(Fi,FXi){lcm(i,i+1,,i+k)}t]

But, output it modulo 109+7.

(ϕ is Euler's totient functionϕFn is n’th fibonacci number, Xn is n’th prime.)

(1n1018,0k30)


#math #number_theory





입력 설명

Natural numbers n and k are given.

출력 설명

Output the answer with a single number.

입력 예시 Copy

10 3

출력 예시 Copy

75744 

도움

Do you think you are talented? Then, prove it.

게시판

작성자제목(댓글)
글이 없습니다.

출처/분류