问题 G: Guess

内存限制:256 MB 时间限制:5 S
题面:传统 评测方式:文本比较 上传者:
提交:1 通过:1

题目描述

Recently, Stump felt ∑k =1n μ^2 (k∑k = 1n μ(k⌊k 2n with his heart immediately, which shocked Yoshinow2001 for a whole year!!

The above μ is Mo¨bius functionMo¨bius function μ(n): If n contain square factor (i.e. there are positive integers a>1 makes a^2n ) then the μ(n)=0. Otherwise, might as well set decomposition of prime factors of n type n=p1p2pk, then μ(n)=(1)k. For example, μ(1)=1,μ(2)=μ(3)=1.

Recall that ln(n) denotes the logarithm of n with base e=n=0n!12.71828.

Now Yoshinow2001 is furious and pulls out a question! Let

S(n)=dnμ(dn)ln(d)

You need to calculate:

eS(n)mod998244353

Stump was horrified when he saw the formula! Now he asks you to feel it with your heart for him!

输入格式

The first line of input is a positive integer T(1T2000) representing the number of data cases.

The next line has a total of T integers, each of which corresponds to n as described in the problem, where 1n10^18.

输出格式

For each testcase, output an integer representing the answer mod 998244353mod 998244353, separated by a space.

输入样例 复制

3
1 2 3

输出样例 复制

1 2 3