#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } #include using mint = atcoder::modint998244353; int main() { fast_io(); int n, m, k; cin >> n >> m >> k; vector cnt(n + 1); for (int i = 0; i < m; i++) { int a; cin >> a; if (a <= n) { cnt[a]++; } } vector cum(n + 1); for (int i = 1; i <= n; i++) { for (int j = i; j <= n; j += i) { cum[j] += cnt[i]; } } mint inv_m = mint(m).inv(); mint ans = 0; for (int i = 1; i <= n; i++) { mint p = (m - cum[i]) * inv_m; ans += 1 - p.pow(k); } cout << ans.val() << endl; }