#define MD 998244353 ll@N,@M,@K,@A[M]; Mint ans = 0; ll cnt[N+1]; rep(i,N+1)cnt[i]=0; rep(i, M) rep(j, A[i], N + 1, A[i]) cnt[j]++; rep(i, 1, N+1) { ans += 1; Mint t = M-cnt[i]; Mint s = M; ans -= (t/s).pw(K); } wt(ans);